[Issue 21488] Bundled 32-bit dlang tools (ddemangle, dustmite, rdmd) segfault on startup
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 1 21:59:22 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21488
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Seems like it's just a bootstrap issue with the druntime/phobos library.
---
$ cat reduce.d
extern(C) int main()
{
static int* x = null;
if (x is null)
return 1;
else
return 0;
}
$ ./dmd2/linux/bin64/dmd -m32 -betterC reduce.d
$ ./reduce
Segmentation fault (core dumped)
$ ./dmd2/linux/bin64/dmd -m32 -betterC reduce.d -fPIC
$ ./reduce
$
---
If all object files were compiled with -fPIC, then it's fine.
--
More information about the Digitalmars-d-bugs
mailing list