Re: *** malloc[]: error for object: Double free: How to Debug?
Re: *** malloc[]: error for object: Double free: How to Debug?
- Subject: Re: *** malloc[]: error for object: Double free: How to Debug?
- From: Jim Ingham <email@hidden>
- Date: Tue, 13 Jan 2004 17:17:54 -0800
Try breaking on malloc_printf. The malloc functions don't actually
call printf (well, free did call printf before Panther, but all the
other malloc functions correctly used malloc_printf, and the bug in
free was fixed in Panther.)
Jim
On Jan 13, 2004, at 3:48 PM, Philip Mvtteli wrote:
Hi
I have a program, that fetches in regular intervals (NSTimer) some
data from the Internet (NSUrl).
Everytime, this happens, I have this error message:
*** malloc[12604]: error for object 0x16e2e50: Double free
I try to debug it by setting a breakpoint on fprintf(), printf and on
[NSException raise]. But no breakpoint is ever hit:
(gdb) info b
Num Type Disp Enb Address What
1 breakpoint keep y 0x90a5c9d8 <-[NSException raise]>
2 breakpoint keep y 0x2d22d59c in printf at printf-fbsd.c:52
3 breakpoint keep y 0x2d1ffd14 in fprintf at fprintf-fbsd.c:52
If I try to step into the methods called, the program crashes with a
bus error somewhere in NSUrl.
Is there a way, to debug this problem?
Thanks!
Phil
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
--
Jim Ingham email@hidden
Developer Tools
Apple Computer
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.