32-bit DMD compiled programs prints "segmentation fault"
Walter Bright
newshound2 at digitalmars.com
Sat Nov 2 00:04:27 UTC 2019
On 11/1/2019 4:03 PM, Seb wrote:
> On Friday, 1 November 2019 at 21:16:23 UTC, Gilmar Júnior wrote:
>> Hello, D programs compiled with 32-bit DMD are not working. I compiled with
>> dmd and also tested rdmd using version 2.086.0-0 for both 32-bit and the
>> 64-bit with -m32 directive, and it didn't work. I also tested the nightly
>> version I downloaded today and the execution continues to print "segmentation
>> fault (core dumped)". The same error does NOT occur when using LDC.
>
> This unfortunately is a well-known issue:
>
> https://issues.dlang.org/show_bug.cgi?id=19116
>
> tl;dr: use LDC. It's better maintained, faster, has support for tons of
> architectures etc.
>
> Alternatively, you could also switch to ld.gold which you probably want to do
> anyhow if you can (faster link times!) or x86_64.
>
Why does the PIE code gen work fine on Linux but not Debian?
(It passes all the 32 bit tests on the autotester.)
More information about the Digitalmars-d
mailing list