Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'EXC_BAD_ACCESS' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
EXC_BAD_ACCESS
Authored by: almond on Dec 31, '01 11:34:59AM

I tried this and I got (after the NSLog($o)) a EXC_BAD_ACCESS error
I was running on Mail.app just like the sample.

(gdb) p $o = (unsigned int) objc_msgSend($o, $s)
$7 = 41072272
(gdb) p (void) NSLog($o)

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x7016a130 in _CFStringAppendFormatAndArgumentsAux ()
The program being debugged was signaled while in a function called from GDB.

Any ideas about what was going on?

I was really looking forward to being able to set extra default headers
in Mail.app (I use a forwarding email service, so I need to set the
reply-to header in my email; having to do it manually each time is
just a pain.)



[ Reply to This | # ]
EXC_BAD_ACCESS
Authored by: hagbard on Feb 03, '02 10:53:38AM

here's why you can't access the memory, it's because of protected memory. Try sudo gdb instead of gdb, now you can acces any process' memory !

(the only problem, with mail, is that it will open with root as the user, and probably not your personal mailbox, but this won't be a problem with other apps...)



[ Reply to This | # ]