[newbie] SIGSEGV and GDB
[newbie] SIGSEGV and GDB
- Subject: [newbie] SIGSEGV and GDB
- From: Julien Palmas <email@hidden>
- Date: Thu, 10 Mar 2005 14:21:24 +0900
I am trying to debug my app but i am now really used to using GDB.
What i mostly do in my app is add some points (NSValue) in an array
thanks to mouse clics in a view and do some calculations with those
points. To do these calculations, i realloc some double *foo with the
new number of points. these double *foo were malloced at the beginning
of my app.
everything goes fine when i run the app, and then, when i quit, once in
while, i get a SIGSEGV.
But the strange thing is that i never get this SIGSEGV when i run the
app in GDB. GDB always tells me that my app exited nicely, which is not
always true !!
i looked at "info signals" in GDB to verify that the SIGSEGV was
supposed to stop the app and to print and that's actually the case.
Then, why don't I see anything in GDB ? I can't seem to find my bug if
i don't know where this SIGSEGV come from.
_______________________________________________
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