[Issue 4854] writefln Segmentation fault if no globals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 15 16:52:21 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4854


wresch <wresch at drgang.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wresch at drgang.net


--- Comment #1 from wresch <wresch at drgang.net> 2010-10-15 16:51:44 PDT ---
I have the exact same issue.  In the code below the segfault happens in
writefln.

Setup:
Digital Mars D Compiler v2.049
OS X 10.5.3
2.26 MHz Core2 duo (macbook pro)

[510]dmd2 >  cat hello.d
import std.stdio;
//int x;

void main() {
    writeln("hello world!");
    writefln("foo = %d", 10);
}
[511]dmd2 >  ./hello
Segmentation fault
[515]dmd2 >  cat hello2.d
import std.stdio;
int x;

void main() {
    writeln("hello world!");
    writefln("foo = %d", 10);
}
[
[514]dmd2 >  ./hello2
hello world!
foo = 10

-- 
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