Re: Still can't figure out this overrelease bug
Re: Still can't figure out this overrelease bug
- Subject: Re: Still can't figure out this overrelease bug
- From: Steven Kramer <email@hidden>
- Date: Sat, 11 Jun 2005 23:41:55 +0200
In my executable pane in Xcode, I have the environment variable
"NSZombieEnabled" enabled with a value of "1".
You need to set it to YES, not 1.
OK. I tried that just now. I get this:
[Session started at 2005-06-10 20:16:33 +0100.]
GNU gdb 6.1-20040303 (Apple version gdb-384) (Mon Mar 21 00:05:26 GMT
2005)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "powerpc-apple-darwin".
Loading program into debugger…
tty /dev/ttyp1
Program loaded.
Function "-[NSException raise]" not defined.
Function "-[_NSZombie methodSignatureForSelector:]" not defined.
run
[Switching to process 1221 local thread 0xf03]
Running…
=resolve-pending-breakpoint,new_bp="34",pended_bp="34"
Pending breakpoint 34 - "-[NSException raise]" resolved
=resolve-pending-breakpoint,new_bp="35",pended_bp="35"
Pending breakpoint 35 - "-[_NSZombie methodSignatureForSelector:]"
resolved
Program received signal: "EXC_BAD_ACCESS".
Unable to disassemble objc_msgSend_rtp.
Theodore,
The breakpoints are not your problem. Regardless of the breakpoint, you
should see text in the log similar to
'[NSZombie release] was called for deallocated instance of
<TheodoresClass>'
Really, this should not be hard and is the first thing you need to get
working. Test if zombies are enabled by doing something like
[[[[NSObject alloc] init] release] release];
early on in you program. This should be trapped by NSZombie, if you
have all the settings correct. I use this in main.mm
NSZombieEnabled = YES;
NSDeallocateZombies = NO;
Regards,
Steven Kramer
--
email@hidden
http://www.sprintteam.nl/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden