dmd memory usage/static lib/algorithm bug?

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Aug 28 14:10:34 PDT 2013


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.


> H. S. Teoh - thanks for your detailed description, but this test case
> probably sheds some more light and invalidates some of your
> hyphotheses. As for building static library - I thought it would be
> easier, so if the bug remains unresolved I'll probably just rebuild
> the whole phobos. The problem is definitely not some old version of
> libphobos2.a stuck around, because the problem could be reproduced
> exactly the same way on 3 machines I tried.
[...]

I'll give it a try on 2.063.2 to see if I can reproduce the problem.


T

-- 
Ruby is essentially Perl minus Wall.


More information about the Digitalmars-d-learn mailing list