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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 20 03:15:57 PST 2010


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



--- Comment #11 from Jacob Carlborg <doob at me.com> 2010-11-20 03:14:21 PST ---
Created an attachment (id=823)
Patch

I'm adding my patch here as well so it doesn't get lost.

I've created a patch but I'm not completely sure if it solves the problem or
not. I don't get an error in __tls_get_addr now but instead I get this:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x97655133 in strncmp ()
(gdb) bt
#0  0x97655133 in strncmp ()
#1  0x0000101c in ?? ()
Previous frame inner to this frame (gdb could not unwind past this frame)
(gdb)

Maybe someone else can look at the patch and see if I did something wrong or
maybe the solution we thought of couldn't fix the problem.

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