Re: locating default signal handler for SIGSEGV

From: npguy (npguy_at_websurfer.com.np)
Date: 12/09/03

  • Next message: Valdis.Kletnieks_at_vt.edu: "Re: locating default signal handler for SIGSEGV"
    Date: Tue, 9 Dec 2003 12:14:17 +0545
    To: Devrat Mittal <u02113@cs.unipune.ernet.in>
    
    

    Hi Devrat,

    Monday, December 8, 2003, 6:06:32 PM, you wrote:

    DM> hi ppl,
    DM> Can anyone tell me how can I locate the signal handler for SIGSEGV,

    simply call

       sighandler_t signal(int signum, sighandler_t sighd);

    where signum is SIGSEGV,
    in sighd use one of this

    SIG_IGN to ignore the signal
    SIG_DFL for default.
    typedef void (*sighandler_t)(int); of use your

           npguy npguy at websurfer.com.np


  • Next message: Valdis.Kletnieks_at_vt.edu: "Re: locating default signal handler for SIGSEGV"

    Relevant Pages

    • Re: How to handle the same signal multiple times
      ... why the second SIGSEGV is not handled by the signal handler as the first ... And if I put a fprintfinto the signal handler it shows ... If setjmp/longjmp do save and restore the mask, ... void sigH(int sigNum) { ...
      (comp.os.linux.development.system)
    • Re: how to print instr ptr from stack in signal handler?
      ... > Want to catch SIGSEGV in a signal handler, print some meaningful info, then ... version, is to spawn a child process in the signal handler, which ...
      (comp.os.linux.development.apps)
    • Re: how to print instr ptr from stack in signal handler?
      ... > Want to catch SIGSEGV in a signal handler, print some meaningful info, then ... version, is to spawn a child process in the signal handler, which ...
      (comp.unix.programmer)
    • Re: 2.6.x signal handler bug
      ... > - Blocking a signal in its signal handler is explicitly allowed. ... > - The SIGSEGV that occurs during a stack overflow is of the GodFather kind. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: dlopen and SIGSEGV
      ... > function of the library send a SIGSEGV signal. ... You got a loop in your signal handler, ... handler will simply restart the instruction that caused SIGSEGV, ... In order to understand recursion you must first understand recursion. ...
      (comp.unix.programmer)