DMD 2.063 produces broken binaries

Walter Bright newshound2 at digitalmars.com
Mon Jun 10 14:56:31 PDT 2013


On 6/10/2013 2:38 PM, nazriel wrote:
> On Monday, 10 June 2013 at 21:33:20 UTC, Walter Bright wrote:
>> On 6/10/2013 2:28 PM, nazriel wrote:
>>>> program was compiled with dmd (2.063) using the following flags: -g -debug
>>>> -unittest
>>>
>>> I suspected it may be the problem with shared libraries.
>>> Can you try compiling that hello world with static libphobos?
>>> Or can you attach your segfaulting binary?
>>
>> Statically linking with libphobos2.a is the default.
>
> Brandon's back-trace mentions libphobos2.so.0.63
>
> OP's backtrace shows that SIGSEGV occurs in _d_dso_registry()
>
> My guess would be to check that first.

linking with -g -debug -unittest will statically link, it will not link with the .so


More information about the Digitalmars-d mailing list