PDA

View Full Version : malloc error: double free




elronaldo
Sep 30, 2008, 09:10 AM
What would cause the following error? Rather what would be the best way to pinpoint this issue? I have tried using malloc_history however that dumps a huge output in the Terminal and is hard to pinpoint the issue.

TestApp(2582,0xa068afa0) malloc: *** error for object 0x4d060f0: double free
*** set a breakpoint in malloc_error_break to debug

Thanks!



lawicko
Sep 30, 2008, 09:40 AM
I remember having similar error some time a go. From what I remember - debugger should show exact line where 2nd free is called. Did you try to debug?

elronaldo
Sep 30, 2008, 10:11 AM
I remember having similar error some time a go. From what I remember - debugger should show exact line where 2nd free is called. Did you try to debug?

Hmm. Yes, the debugger is not breaking for these or showing any further information.