[Issue 4854] Regression(2.047, Mac only) writefln Segmentation fault if no globals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 8 01:53:09 PST 2010


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



--- Comment #5 from Alex Burton <alexibu at mac.com> 2010-11-08 01:51:46 PST ---
(In reply to comment #4)
> Can somebody please help to track this down further?
> Does it crash with: import std.stdio;  void main() { writeln("abc", 0);}   ?
YES
> Does it crash with: import std.string; void main() { format("%d", 0); } ?
NO
> Does it crash with: import std.string; void main() { writefln("abc"); } ?
assume you meant import std.stdio: YES
> 
> If it crashes with writeln, it's probably a compiler code generation bug,
> related to varargs.
> 
> And can you get a stack trace?

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x00000000
0x0000a7b9 in __tls_get_addr ()
(gdb) bt    
#0  0x0000a7b9 in __tls_get_addr ()
#1  0x000073a1 in _moduleTlsCtor ()
#2  0x0000fbfd in D2rt6dmain24mainUiPPaZi6runAllMFZv ()
#3  0x0000fb06 in D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv ()
#4  0x0000fa93 in main ()

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