2010年4月7日

Coresump Analysis (arm-linux-uclibc-gdb)

[root@porter tmp]# arm-linux-uclibc-gdb /tftpboot/web_httpd
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "--host=i386-redhat-linux --target=arm-linux-uclibc"...
(gdb) set solib-search-path /tmp/libs
(gdb) core-file /tftpboot/coredump
warning: exec file is newer than core file.
warning: .dynamic section for "/lib/libpthread.so.0" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/libgcc_s.so.1" is not at the expected address (wrong library or version mismatch?)
Reading symbols from /tmp/libs/libm.so.0...done.
Loaded symbols for /tmp/libs/libm.so.0
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /tmp/libs/libssl.so.0.9.8...done.
Loaded symbols for /tmp/libs/libssl.so.0.9.8
Reading symbols from /tmp/libs/libcrypto.so.0.9.8...done.
Loaded symbols for /tmp/libs/libcrypto.so.0.9.8
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /tmp/libs/libc.so.0...done.
Loaded symbols for /tmp/libs/libc.so.0
Reading symbols from /tmp/libs/librt.so.0...done.
Loaded symbols for /tmp/libs/librt.so.0
Reading symbols from /tmp/libs/libdl.so.0...done.
Loaded symbols for /tmp/libs/libdl.so.0
Reading symbols from /tmp/libs/ld-uClibc.so.0...done.
Loaded symbols for /tmp/libs/ld-uClibc.so.0
Core was generated by `web_httpd -h /web'.
Program terminated with signal 11, Segmentation fault.
[New process 1555]
[New process 1554]
[New process 1528]
#0 0x40210444 in select () from /tmp/libs/libc.so.0
(gdb) where
#0 0x40210444 in select () from /tmp/libs/libc.so.0
#1 0x40012358 in sys_wait_for_event_msg (n=15, readfds=0x81c0, writefds=0x0,
exceptfds=0x0, timeout=0x0, msg=0x0) at libsys.c:2665
#2 0x00012cec in web_mgr_mainloop () at web_mgr.c:336
#3 0x40081394 in ?? ()
Backtrace stopped: frame did not save the PC
(gdb)

0 意見: