dmd memory usage/static lib/algorithm bug?

Marek Janukowicz marek at janukowicz.net
Wed Aug 28 15:45:05 PDT 2013


H. S. Teoh wrote:

> On Wed, Aug 28, 2013 at 11:02:17PM +0200, Marek Janukowicz wrote:
>> I was finally able to create simple test case that probably reproduces
>> the bug (probably, because the stack trace is completely different,
>> but the code that is there is similar). This requires 2 source code
>> files:
> [...]
>> Run with:
>> 
>> dmd -unittest main.d sorter.d && ./main
>> 
>> For me this results in a segfault. Changing one of many seemingly
>> unrelated details (eg. moving offending code directly to main,
>> commenting out std.stdio import in main.d) makes the problem
>> disappear.
>> 
>> Can anyone try to reproduce that? Again, I'm on DMD 2.063.2.
> 
> It doesn't seem to happen on git HEAD. I'm going to try 2.063.2 and see
> what happens.
> 
> Oh, and BTW, are you on Linux 32-bit or 64-bit? Don't know if that makes
> a difference, but just in case.

64-bit


-- 
Marek Janukowicz


More information about the Digitalmars-d-learn mailing list