On 10/ 6/08 05:11 PM, Chet Ramey wrote:
2.  What library installs the `sigacthandler'?  It's not a function in
    bash.  It is a symbol in libc, but there's no indication which
    library installs it as a signal handler.

I have just tried psig on on running bash (in another config), and see that the function that set signals handler for SIGV is indeed:

bash-3.2# pgrep bash
16384
bash-3.2# psig 16384 | grep "^SEGV"
SEGV blocked,caught termsig_sighandler 0 HUP,INT,ILL,TRAP,ABRT,EMT,FPE,BUS,SEGV,SYS,PIPE,ALRM,TERM,USR1,USR2,VTALRM,XCPU,XFSZ,LOST
bash-3.2#

termsig_sighandler() is part bash source code (sig.c) if I am not mistaken.

It is, but that's not what shows up in the call trace.  Is `sigacthandler'
part of the Solaris signal trampoline code?

it's part of libc, sigaction() related code as far as I can tell:

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/threads/sigaction.c#283

I am not very familiar with this part of Solaris code to be honest.

Serge


Chet



Reply via email to