[Issue 8359] New: std.stdio.write(ln) segmentation faults
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 8 04:36:26 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8359
Summary: std.stdio.write(ln) segmentation faults
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: mihai.dumitresq at gmail.com
--- Comment #0 from Mihai <mihai.dumitresq at gmail.com> 2012-07-08 04:36:24 PDT ---
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?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list