DMD 2.063 produces broken binaries

Jerry jlquinn at optonline.net
Mon Jun 10 15:10:26 PDT 2013


Walter Bright <newshound2 at digitalmars.com> writes:

> On 6/10/2013 2:56 PM, Walter Bright wrote:
>> 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

His code appears to die after main() is in progress.

>>> 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

Yes, strace on dmd shows that I'm linking with libphobos2.a.

...
[pid 23169] open("/home/jlquinn/dmd2/linux/bin64/../lib64/libphobos2.a", O_RDONLY|O_CLOEXEC) = 11



More information about the Digitalmars-d mailing list