• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[newbie] SIGSEGV and GDB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Follow-Ups:
    • Re: [newbie] SIGSEGV and GDB
      • From: Nick Zitzmann <email@hidden>
References: 
 >Asymmetrical behavior in NSMutableArray (From: Serge Meynard <email@hidden>)

  • Prev by Date: Asymmetrical behavior in NSMutableArray
  • Next by Date: Re: NSWindow setTitle not affecting displayed title
  • Previous by thread: Asymmetrical behavior in NSMutableArray
  • Next by thread: Re: [newbie] SIGSEGV and GDB
  • Index(es):
    • Date
    • Thread