• 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: Jonas Maebe <email@hidden>
  • Date: Sat, 31 Jan 2009 10:29:19 +0100


On 31 Jan 2009, at 08:33, 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.From other terminal I tried to launch the gdb and attach it
but still there I am not able to proceed.Only in the signal handler if I
give some print statement that way I am able to debug.

The only way I know of to debug signal handlers triggered by "hardware" signals such as SIGBUS, SIGSEGV and SIGFPZ, is to put a sleep call inside the signal handler (possibly preceded by a write/ printf), start the program without gdb, and then attach gdb to the process after the signal has been triggered and the process is waiting in the sleep loop.



Jonas _______________________________________________ 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
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: Debugging a process that received Signal
  • 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