- [root@tlinux /]# gdb dump core.89056
- GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-110.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 /dump...(no debugging symbols found)...done.
- [New LWP 89056]
Core was generated by `./dump'.
Program terminated with signal 6, Aborted.
- #0 0x00007f2c4e1a8277 in raise () from /lib64/libc.so.6
- Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.el7.x86_64 libgcc-4.8.5-36.el7.x86_64
- (gdb) bt
- #0 0x00007f2c4e1a8277 in raise () from /lib64/libc.so.6
- #1 0x00007f2c4e1a9968 in abort () from /lib64/libc.so.6
- #2 0x00007f2c4e1ead37 in __libc_message () from /lib64/libc.so.6
- #3 0x00007f2c4e1f3499 in _int_free () from /lib64/libc.so.6
- #4 0x0000000000400539 in dumpCrash ()
- #5 0x0000000000400549 in main ()
- (gdb) f 4
- #4 0x0000000000400539 in dumpCrash ()
- (gdb) disassemble
- Dump of assembler code for function dumpCrash:
- 0x000000000040051d <+0>: push %rbp
- 0x000000000040051e <+1>: mov %rsp,%rbp
- 0x0000000000400521 <+4>: sub $0x10,%rsp
- 0x0000000000400525 <+8>: movq $0x4005e0,-0x8(%rbp)
- 0x000000000040052d <+16>: mov -0x8(%rbp),%rax
- 0x0000000000400531 <+20>: mov %rax,%rdi
- 0x0000000000400534 <+23>: callq 0x400400 <free@plt>
- => 0x0000000000400539 <+28>: leaveq
- 0x000000000040053a <+29>: retq
End of assembler dump.
(gdb)
来源: http://www.bubuko.com/infodetail-2998419.html