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

[debian-users:23466] Segmentation fault on whois



こんにちは。松田陽一@三鷹です。

[Q]
あるマシンだけ、whois が "Segmentation fault." で異常終了するように
なってしまいました。
ファイルのサイズやタイムスタンプ、ダイナミックリンクされているライブ
ラリファイルも調べてみたのですが、どこも異なっているように見えません。
唯一違うのは、問題のマシン(hoge)がSMP で、他の正常なマシン(fuga)は単
一CPU である位です。

以下に、実行結果を添付します。
他に調べるべき点はありますでしょうか?

# gdb は使ったこともなく、取り敢えず見よう見真似で実行してみましたが、
# 本来の使い方がわかりません。

hoge:~$ gdb whois
GNU gdb 19990928
Copyright 1998 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 "i686-pc-linux-gnu"...
(no debugging symbols found)...
(gdb) run whois debian.or.jp
Starting program: /usr/bin/whois whois debian.or.jp
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x40067a4f in malloc () from /lib/libc.so.6
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Mon Aug  7 14:39:37
hoge:~$ ldd /usr/bin/whois
        libc.so.6 => /lib/libc.so.6 (0x40018000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Mon Aug  7 14:41:06
hoge:~$ ls -l /lib/libc.so.6 /lib/ld-linux.so.2
lrwxrwxrwx    1 root     root           11 May  6 18:55 /lib/ld-linux.so.2 -> ld-2.1.3.so
lrwxrwxrwx    1 root     root           13 May  6 18:55 /lib/libc.so.6 -> libc-2.1.3.so
Mon Aug  7 14:41:24
hoge:~$ ls -l /lib/libc-2.1.3.so /lib/ld-2.1.3.so  
-rwxr-xr-x    1 root     root        83971 May  2 03:26 /lib/ld-2.1.3.so
-rwxr-xr-x    1 root     root       888596 May  2 03:26 /lib/libc-2.1.3.so
Mon Aug  7 14:41:40
hoge:~$ 


fuga:~$ gdb whois
GNU gdb 19990928
Copyright 1998 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 "i686-pc-linux-gnu"...
(no debugging symbols found)...
(gdb) run whois debian.or.jp
Starting program: /usr/bin/whois whois debian.or.jp
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
[ JPNIC database provides information on network administration. Its use is   ]
[ restricted to network administration purposes. For further information, use ]
[ 'whois -h whois.nic.ad.jp help'. To suppress Japanese output, add '/e' at   ]
[ the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'.                  ]

No match!!


(no debugging symbols found)...
Program exited normally.
(gdb) quit
fuga:~$ ldd /usr/bin/whois 
        libc.so.6 => /lib/libc.so.6 (0x40018000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
fuga:~$ ls -l /lib/libc.so.6 /lib/ld-linux.so.2
lrwxrwxrwx    1 root     root           11 May 26 14:08 /lib/ld-linux.so.2 -> ld-2.1.3.so*
lrwxrwxrwx    1 root     root           13 May 26 14:08 /lib/libc.so.6 -> libc-2.1.3.so*
fuga:~$ ls -l /lib/libc-2.1.3.so /lib/ld-2.1.3.so
-rwxr-xr-x    1 root     root        83971 May  2 03:26 /lib/ld-2.1.3.so*
-rwxr-xr-x    1 root     root       888596 May  2 03:26 /lib/libc-2.1.3.so*
fuga:~$ 

--
かまきりっ てつぼうっ とうふっ♪
松田陽一(yoh)
mailto:yoh@xxxxxxxxxxxx
http://www2.palnet.or.jp/~matsuda/index.htm