Re: dmd memory usage/static lib/algorithm bug?

2013-08-29 Thread H. S. Teoh
On Thu, Aug 29, 2013 at 01:46:03AM +0200, Marek Janukowicz wrote: > H. S. Teoh wrote: > > > On Thu, Aug 29, 2013 at 12:45:05AM +0200, Marek Janukowicz wrote: > >> H. S. Teoh wrote: > > [...] > >> > Oh, and BTW, are you on Linux 32-bit or 64-bit? Don't know if > >> > that makes a difference, but ju

Re: dmd memory usage/static lib/algorithm bug?

2013-08-28 Thread Marek Janukowicz
H. S. Teoh wrote: > On Thu, Aug 29, 2013 at 12:45:05AM +0200, Marek Janukowicz wrote: >> H. S. Teoh wrote: > [...] >> > 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 > [...] > > Maybe try compiling with -m32 and see if

Re: dmd memory usage/static lib/algorithm bug?

2013-08-28 Thread H. S. Teoh
On Thu, Aug 29, 2013 at 12:45:05AM +0200, Marek Janukowicz wrote: > H. S. Teoh wrote: [...] > > 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 [...] Maybe try compiling with -m32 and see if it makes a difference? If so, it m

Re: dmd memory usage/static lib/algorithm bug?

2013-08-28 Thread Marek Janukowicz
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 c

Re: dmd memory usage/static lib/algorithm bug?

2013-08-28 Thread H. S. Teoh
On Wed, Aug 28, 2013 at 02:10:34PM -0700, 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

Re: dmd memory usage/static lib/algorithm bug?

2013-08-28 Thread H. S. Teoh
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

Re: dmd memory usage/static lib/algorithm bug?

2013-08-28 Thread Marek Janukowicz
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: main.d: module main; // This line must be there - import any module from std cau

Re: dmd memory usage/static lib/algorithm bug?

2013-08-28 Thread H. S. Teoh
On Wed, Aug 28, 2013 at 05:29:40PM +0200, Marek Janukowicz wrote: > This is really a cross-domain issue, but I didn't feel like splitting > it into separate posts would make sense. > > I use DMD 2.063.2 on Linux 64-bit. > > I have some code in my (non-trivial) application that basically > corresp

dmd memory usage/static lib/algorithm bug?

2013-08-28 Thread Marek Janukowicz
This is really a cross-domain issue, but I didn't feel like splitting it into separate posts would make sense. I use DMD 2.063.2 on Linux 64-bit. I have some code in my (non-trivial) application that basically corresponds to this: import std.stdio, std.algorithm, std.array; void main () { s