← Back to index
|
Original Bugzilla link
Bug 8391 – Segmentation fault (core dumped) with std.write
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2012-07-15T12:30:00Z
Last change time
2013-01-01T10:31:21Z
Assigned to
nobody
Creator
iteronvexor
Comments
Comment #0
by iteronvexor — 2012-07-15T12:30:25Z
---------------8<---------------8<--------------- double f2(double[double] data) { writeln(data); return 1.0; } void f1(double[double] data) { writef("%s %s", 1.5, f2(data)); } void main() { f1([1:10]); } --------------->8--------------->8--------------- compiling and running this on 64-bit GNU/Linux with DMD 2.060beta gives: Segmentation fault (core dumped)
Comment #1
by lovelydear — 2012-12-31T13:21:39Z
http://dpaste.dzfl.pl/ccb126fe
Interestingly, the code runs on LDC and GDC in 32/64 bits as well as on DMD 32 bits, but segfaults in 64 bits.
Comment #2
by maxim — 2013-01-01T10:31:21Z
Seems to be fixed in beta
http://dpaste.dzfl.pl/abae4757