Bug 6576 – std.string.format for struct crash on Linux 64bit

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2011-08-30T03:04:00Z
Last change time
2013-02-12T11:51:03Z
Assigned to
nobody
Creator
rk3dov
Depends on
6983

Attachments

IDFilenameSummaryContent-TypeSize
1020teststruct.dTest codetext/plain323

Comments

Comment #0 by rk3dov — 2011-08-30T03:04:54Z
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)
Comment #6 by maxim — 2013-02-12T11:51:03Z
Ok, mark it as WORKSFORME