[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb output (Re: Segmentfault storm with libc.so etc ..)



>                                            千葉市中央区長洲
>                                                    藤原  誠
gdb ですが、例えば次のようになっています。

ttyp0:root@quick  9:27:28/020801(/)# gdb /usr/bin/cmp cmp.core
GNU gdb 5.0nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc--netbsd"...(no debugging symbols found)...
Core was generated by `cmp'.
Program terminated with signal 11, Segmentation fault.
#0  0x4181a0a8 in ?? ()
(gdb) 

objump で見ると、ずうっと同じような行が続いている中の一行です。
 objdump -d cron.core |less
 41818af4:       41 90 89 c4     blt     cr4,0x418114b8
         ...
 41818b00:       41 90 b5 f8     blt     cr4,0x418140f8
 41818b04:       00 00 00 00     .long 0x0
 41818b08:       41 90 89 c8     blt     cr4,0x418114d0
 41818b0c:       ff ff ff ff     fnmadd. f31,f31,f31,f31
 41818b10:       00 00 00 00     .long 0x0
 41818b14:       ff ff ff ff     fnmadd. f31,f31,f31,f31
 41818b18:       00 00 00 00     .long 0x0
 41818b1c:       4e 80 00 21     blrl
 41818b20:       00 0b e5 74     .long 0xbe574
 41818b24:       00 00 00 00     .long 0x0
 41818b28:       41 8f b9 60     bso     cr3,0x41814488
 ....(中略)...
 4181a0a4:       41 8d 99 cc     bgt     cr3,0x41813a70
>4181a0a8:       41 8d 9a 30     bgt     cr3,0x41813ad8
 4181a0ac:       41 8d 9e 84     bgt     cr3,0x41813f30
 4181a0b0:       41 8d 98 1c     bgt     cr3,0x418138cc

こういう部分は libc.so.85-tsubai にはないですね。
これって飛んだ先で、PC としては直接は意味がないのでしょうか ?
(Program Counter って古典的 ?)

しかし少なくとも cron, cmp, inetd, install, mountd, nfsd
は gdb でいずれも同じ address が表示されます。

objdump で *core を見てはいけないのでしょうか
---
(藤原)