coredump: Support signal number

Change-Id: If220bcd0865569a566e08aa53cae748fdc6317d0
Refs: #1340
This commit is contained in:
Ken Sato
2019-07-26 12:50:58 +09:00
committed by Masamichi Takagi
parent 11ef2f8092
commit 0c1cae45fe
15 changed files with 622 additions and 11 deletions

View File

@ -0,0 +1,126 @@
*** C1340T01 start *******************************
** Check signal in coredump. GPE
Terminate by signal 11
./C1340.sh: line 37: 14591 Segmentation fault (core dumped) ${MCEXEC} ./segv
[ OK ] core for McKernel process found
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/satoken/mck_srcs/kyokaIII/mckernel/test/issues/1340/segv...done.
[New LWP 14591]
Core was generated by `'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000400504 in main (argc=1, argv=0x547ffffffd08) at segv.c:8
8 *ptr = 0xdead;
*** C1340T01 PASSED ******************************
*** C1340T02 start *******************************
** Check signal in coredump. raise 3
Terminate by signal 3
./C1340.sh: line 65: 14633 Quit (core dumped) ${MCEXEC} ./raise_sig ${signum}
[ OK ] core for McKernel process found
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/satoken/mck_srcs/kyokaIII/mckernel/test/issues/1340/segv...done.
[New LWP 14633]
Core was generated by `'.
Program terminated with signal 3, Quit.
#0 0x00002aaaaaa50277 in raise () from /lib64/libc.so.6
*** C1340T02 PASSED ******************************
*** C1340T03 start *******************************
** Check signal in coredump. raise 4
Terminate by signal 4
./C1340.sh: line 65: 14675 Illegal instruction (core dumped) ${MCEXEC} ./raise_sig ${signum}
[ OK ] core for McKernel process found
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/satoken/mck_srcs/kyokaIII/mckernel/test/issues/1340/segv...done.
[New LWP 14675]
Core was generated by `'.
Program terminated with signal 4, Illegal instruction.
#0 0x00002aaaaaa50277 in raise () from /lib64/libc.so.6
*** C1340T03 PASSED ******************************
*** C1340T04 start *******************************
** Check signal in coredump. raise 6
Terminate by signal 6
./C1340.sh: line 65: 14717 Aborted (core dumped) ${MCEXEC} ./raise_sig ${signum}
[ OK ] core for McKernel process found
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/satoken/mck_srcs/kyokaIII/mckernel/test/issues/1340/segv...done.
[New LWP 14717]
Core was generated by `'.
Program terminated with signal 6, Aborted.
#0 0x00002aaaaaa50277 in raise () from /lib64/libc.so.6
*** C1340T04 PASSED ******************************
*** C1340T05 start *******************************
** Check signal in coredump. raise 8
Terminate by signal 8
./C1340.sh: line 65: 14759 Floating point exception(core dumped) ${MCEXEC} ./raise_sig ${signum}
[ OK ] core for McKernel process found
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/satoken/mck_srcs/kyokaIII/mckernel/test/issues/1340/segv...done.
[New LWP 14759]
Core was generated by `'.
Program terminated with signal 8, Arithmetic exception.
#0 0x00002aaaaaa50277 in raise () from /lib64/libc.so.6
*** C1340T05 PASSED ******************************
*** C1340T06 start *******************************
** Check signal in coredump. raise 11
Terminate by signal 11
./C1340.sh: line 65: 14801 Segmentation fault (core dumped) ${MCEXEC} ./raise_sig ${signum}
[ OK ] core for McKernel process found
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/satoken/mck_srcs/kyokaIII/mckernel/test/issues/1340/segv...done.
[New LWP 14801]
Core was generated by `'.
Program terminated with signal 11, Segmentation fault.
#0 0x00002aaaaaa50277 in raise () from /lib64/libc.so.6
*** C1340T06 PASSED ******************************