• 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
Re: Debugging a process that received Signal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging a process that received Signal


  • Subject: Re: Debugging a process that received Signal
  • From: Joel Reymont <email@hidden>
  • Date: Sat, 31 Jan 2009 08:42:02 +0000


On Jan 31, 2009, at 7:33 AM, Arnab Ganguly wrote:

Initially from gdb it is being debugged.Once the SIGNAL like SEGMENTATION
FAULT is received the gdb gets halted.Even going for "continue" I am not
able to proceed.

You cannot proceed from a SEGFAULT. What you do is type "where" in gdb once the fault happens and you get the gdb prompt. This will show you the call stack and the function where the fault is happening. You should get line numbers as well.


More likely than not, you have a null pointer reference or some such. Take a look at your code and set a breakpoint about the line number in the gdb stack trace. Run your program again.

Once you get to the breakpoint, proceed carefully, step line by line and inspect your variables until you figure out what is wrong. Fix, recompile and re-run.

---
http://tinyco.de
--- Mac & iPhone











_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Debugging a process that received Signal
      • From: Arnab Ganguly <email@hidden>
References: 
 >Debugging a process that received Signal (From: Arnab Ganguly <email@hidden>)
 >Re: Debugging a process that received Signal (From: Joel Reymont <email@hidden>)
 >Re: Debugging a process that received Signal (From: Arnab Ganguly <email@hidden>)

  • Prev by Date: Re: search gone sour at developer.apple.com?
  • Next by Date: Re: Debugging a process that received Signal
  • Previous by thread: Re: Debugging a process that received Signal
  • Next by thread: Re: Debugging a process that received Signal
  • Index(es):
    • Date
    • Thread