Attached example works on Mac OS 32bit and crashes on Linux 64bit:
---------------------------
% ./teststruct
a: I'm Foo
[email protected](9): null this
---------------------------
When changing
int x;
int[] a;
int[] b;
to, e.g.
int x;
int[] a;
or
int[] a;
int[] b;
problem disappears.
Comment #1 by rk3dov — 2011-08-30T03:19:11Z
Created attachment 1020
Test code
Comment #2 by bus_dbugzilla — 2011-11-21T07:58:48Z
This may be related to issue 6047
Comment #3 by bus_dbugzilla — 2011-11-21T08:47:00Z
I think the root cause of this might be issue 6983.
Comment #4 by clugdbug — 2012-05-23T00:14:38Z
I thought this was a duplicate of bug 6758, but it isn't. Although 6758 is fixed, and even the wrong-code bug 6189, this still remains.
std.format.doFormat around line 4845 has enough version(X86_64) stuff that it looks like a Phobos bug. I find it a bit scary that it bypasses core.stdarg, and there are not enough comments in that code for me to trust it.
Comment #5 by maxim — 2013-02-10T22:16:54Z
I cannot reproduce on linux 64 with git head (2.062 beta)