Bug 8359 – std.stdio.write(ln) segmentation faults

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2012-07-08T04:36:00Z
Last change time
2013-11-26T18:30:56Z
Assigned to
nobody
Creator
mihai.dumitresq

Comments

Comment #0 by mihai.dumitresq — 2012-07-08T04:36:24Z
Seemingly okay segmentation faults when compiled with dmd and run. (But no problems with gdmd). File: import std.stdio; float foo(float p) { writeln(p); return 0; } void main() { float p = 10.35f; writeln(p, " ", foo(p)); } Issue: $ dmd foo.d && ./foo Segmentation fault (core dumped) $ gdmd foo.d && ./foo 10.35 10.35 0 $ dmd DMD64 D Compiler v2.059 My guess: is write(ln) not reentrant? Maybe it should be?
Comment #1 by yebblies — 2013-11-26T07:37:27Z
Can anyone reproduce this?
Comment #2 by monarchdodra — 2013-11-26T13:48:56Z
I can reproduce for version <= 2.061, but it seems to have been fixed spontaneously for versions >= 2.062. (linux64). How do we close these once valid reports, but now working 2 release later? WORKSFORME or FIXED?
Comment #3 by yebblies — 2013-11-26T18:30:56Z
(In reply to comment #2) > I can reproduce for version <= 2.061, but it seems to have been fixed > spontaneously for versions >= 2.062. (linux64). > > How do we close these once valid reports, but now working 2 release later? > WORKSFORME or FIXED? WORKSFORME