Hello everyone, I have a Debian machine that's mostly woody (just a few packages from testing like quagga and associated libs) but dpkg seems terminally broken. Running any dpkg command (except help) results in a Bus Error.
I don't know of any odd occurances (disk/mem failure) that could be causing this, and the machine (which is a VPN and OSPF router) has been rock solid. strace's output as well as a backtrace from gdb are included below - any help on this would be greatly appreciated; the machine could use the security patches that just came out. Thanks for any suggestions! # gdb /usr/bin/dpkg core /root/gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking GNU gdb 2002-04-01-cvs Copyright 2002 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 "i386-linux"...(no debugging symbols found)... Core was generated by `dpkg -i tcpdump_3.6.2-2.8_i386.deb'. Program terminated with signal 7, Bus error. Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 #0 0x0805d2ea in strcpy () (gdb) bt #0 0x0805d2ea in strcpy () #1 0x00000004 in ?? () #2 0x08059f06 in strcpy () #3 0x0804f98e in strcpy () #4 0x0804ac4b in strcpy () #5 0x40030da6 in __libc_start_main () from /lib/libc.so.6 (gdb) # strace /usr/bin/dpkg -i tcpdump_3.6.2-2.8_i386.deb execve("/usr/bin/dpkg", ["dpkg", "-i", "tcpdump_3.6.2-2.8_i386.deb"], [/* 13 vars */]) = 0 uname({sys="Linux", node="redwood", ...}) = 0 brk(0) = 0x807ad70 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=10034, ...}) = 0 old_mmap(NULL, 10034, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`^\1\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1243076, ...}) = 0 old_mmap(NULL, 1253316, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001b000 old_mmap(0x40142000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x126000) = 0x40142000 old_mmap(0x4014b000, 8132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014b000 close(3) = 0 munmap(0x40018000, 10034) = 0 brk(0) = 0x807ad70 brk(0x809bd70) = 0x809bd70 brk(0) = 0x809bd70 brk(0x809c000) = 0x809c000 umask(022) = 022 open("/etc/dpkg/dpkg.cfg", O_RDONLY) = -1 ENOENT (No such file or directory) brk(0) = 0x809c000 brk(0) = 0x809c000 brk(0x809b000) = 0x809b000 brk(0) = 0x809b000 getuid32() = 0 geteuid32() = 0 access("/var/lib/dpkg", W_OK) = 0 open("/var/lib/dpkg/lock", O_RDWR|O_CREAT|O_TRUNC, 0660) = 3 fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 open("/var/lib/dpkg/status", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=135380, ...}) = 0 old_mmap(NULL, 135380, PROT_READ, MAP_SHARED, 4, 0) = 0x4014d000 brk(0) = 0x809b000 brk(0x80bd000) = 0x80bd000 munmap(0x4014d000, 135380) = 0 close(4) = 0 open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory) open("/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 getdents64(4, /* 2 entries */, 4096) = 48 getdents64(4, /* 0 entries */, 4096) = 0 close(4) = 0 open("/var/lib/dpkg/available", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=7147105, ...}) = 0 old_mmap(NULL, 7147105, PROT_READ, MAP_SHARED, 4, 0) = 0x4014d000 brk(0) = 0x80bd000 brk(0x80df000) = 0x80df000 brk(0) = 0x80df000 brk(0x8101000) = 0x8101000 brk(0) = 0x8101000 brk(0x8123000) = 0x8123000 brk(0) = 0x8123000 brk(0x8145000) = 0x8145000 brk(0) = 0x8145000 brk(0x8167000) = 0x8167000 brk(0) = 0x8167000 brk(0x8189000) = 0x8189000 brk(0) = 0x8189000 brk(0x81ab000) = 0x81ab000 brk(0) = 0x81ab000 brk(0x81cd000) = 0x81cd000 brk(0) = 0x81cd000 brk(0x81ee000) = 0x81ee000 brk(0) = 0x81ee000 brk(0x8210000) = 0x8210000 brk(0) = 0x8210000 brk(0x8232000) = 0x8232000 brk(0) = 0x8232000 brk(0x8254000) = 0x8254000 brk(0) = 0x8254000 brk(0x8276000) = 0x8276000 brk(0) = 0x8276000 brk(0x8298000) = 0x8298000 brk(0) = 0x8298000 brk(0x82ba000) = 0x82ba000 brk(0) = 0x82ba000 brk(0x82dc000) = 0x82dc000 brk(0) = 0x82dc000 brk(0x82fe000) = 0x82fe000 brk(0) = 0x82fe000 brk(0x8320000) = 0x8320000 brk(0) = 0x8320000 brk(0x8342000) = 0x8342000 brk(0) = 0x8342000 brk(0x8364000) = 0x8364000 brk(0) = 0x8364000 brk(0x8386000) = 0x8386000 brk(0) = 0x8386000 brk(0x83a8000) = 0x83a8000 brk(0) = 0x83a8000 brk(0x83ca000) = 0x83ca000 brk(0) = 0x83ca000 brk(0x83ec000) = 0x83ec000 brk(0) = 0x83ec000 brk(0x840e000) = 0x840e000 --- SIGBUS (Bus error) @ 0 (0) --- +++ killed by SIGBUS (core dumped) +++ -- Ross Vandegrift [EMAIL PROTECTED] A Pope has a Water Cannon. It is a Water Cannon. He fires Holy-Water from it. It is a Holy-Water Cannon. He Blesses it. It is a Holy Holy-Water Cannon. He Blesses the Hell out of it. It is a Wholly Holy Holy-Water Cannon. He has it pierced. It is a Holey Wholly Holy Holy-Water Cannon. He makes it official. It is a Canon Holey Wholly Holy Holy-Water Cannon. Batman and Robin arrive. He shoots them. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]