RFR(M): 8020775: PPC64 (part 12): posix signal printing

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Wed Aug 14 01:08:08 PDT 2013


Sorry for the long delay, I had off some time.

For an examle output I forced a SIGSEGV in chaitin.

In hs_err you get for STEP 90:

new:   siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000018
old:     siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000018

si_errno is skipped in the new output, as it's 0.  

STEP 255:

Signal Handlers:
SIGSEGV: [libjvm.so+0xc03f0d], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xc03f0d], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0xa54a30], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0xa54a30], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0xa54a30], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0xa54a30], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=0, sa_flags=none
SIGUSR2: [libjvm.so+0xa57167], sa_mask[0]=0, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: [libjvm.so+0xa593d5], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGINT: [libjvm.so+0xa593d5], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGTERM: [libjvm.so+0xa593d5], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO
SIGQUIT: [libjvm.so+0xa593d5], sa_mask[0]=1, sa_flags=SA_RESTART|SA_SIGINFO

Signal Handlers:
SIGSEGV: [libjvm.so+0xc0450d], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0xc0450d], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0xa54cf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0xa54cf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0xa54cf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0xa54cf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0xa57427], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0xa599d7], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0xa599d7], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0xa599d7], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0xa599d7], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

I'll include a link to an old and new hs_err file in the next webrev I'll make.

Best regards,

-----Original Message-----
From: Christian Thalinger [mailto:christian.thalinger at oracle.com] 
Sent: Freitag, 26. Juli 2013 18:21
To: Lindenmaier, Goetz
Cc: 'hotspot-dev at openjdk.java.net'; 'ppc-aix-port-dev at openjdk.java.net'; 'Vladimir Kozlov'
Subject: Re: RFR(M): 8020775: PPC64 (part 12): posix signal printing

Could you paste an example output?

-- Chris

On Jul 25, 2013, at 4:11 PM, "Lindenmaier, Goetz" <goetz.lindenmaier at sap.com> wrote:

> Hi,
> we'd like to contribute our posix signal printing.
> We implemented some routines to print signal and sa_flags information
> in the os/posix files, and call them from
> os::print_siginfo and print_signal_handler() in the various unix
> variant directories.
> The output is a bit more verbose than the existing version.
> We contribute this here, as our aix code uses this too.
> Please review this and test it if you think we should add this.
> We'd appreciate it.
> http://cr.openjdk.java.net/~goetz/webrevs/8020775-print_sig/
> Thanks and best regards,
>  Goetz.

More information about the hotspot-dev mailing list