Written by Jakub2025-04-20
gdb – looking at core dump
So an application gave up the ghost and you finde a “corpse”. At least you can learn a signal it caught – see Program terminated with signal 11, Segmentation fault.
$ gdb core.614.1636347290
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.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/…
[New LWP 614]
[New LWP 627]
[New LWP 616]
[New LWP 630]
[New LWP 635]
[New LWP 636]
[New LWP 632]
[New LWP 629]
[New LWP 617]
[New LWP 615]
[New LWP 637]
[New LWP 631]
[New LWP 628]
Missing separate debuginfo for the main executable file
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/76/03db6a43923a7d74173941d35f828b03220099
Core was generated by `/opt/swift/SNL/Swiftnet/bin/ftla_rmc -c /opt/swift/SNL/snl50849d1/config/rmc_co'.
Program terminated with signal 11, Segmentation fault.
0 0x00007fc7abf3443a in ?? ()
"/Alliance/Gateway/core.614.1636347290" is a core file.
Please specify an executable to debug.
(gdb)
# gdb -ex "set height 1" -ex "thread apply all bt" --batch \ ftla_rmc \ core.614.1636347290 \ >/tmp/gdb_core.614.1636347290.out
You can learn about signals from man/info documentation: `$ info signal`
(or LLM of your choice 😉 ):
Signal numbering for standard signals
The numeric value for each signal is given in the table below. As shown in the table, many signals have different numeric values on
different architectures.(…)
Signal x86/ARM Alpha/ MIPS PARISC Notes
most others SPARC
─────────────────────────────────────────────────────────────────
SIGHUP 1 1 1 1
(…)
SIGKILL 9 9 9 9
SIGUSR1 10 30 16 16
SIGSEGV 11 11 11 11
(…)
~ The end ~
Archives
Calendar
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |