Bug#247189: dpkg: segfault when trying to update xserver-xfree86
Package: dpkg
Version: 1.10.21
Severity: normal
Tags: sid
(Apologies for line-wraps.)
When trying to upgrade xserver-xfree86 4.1.0-2 to 4.3.0.dfsg.1-1, it fails
with the following message:
Preconfiguring packages ...
(Reading database ... 153429 files and directories currently installed.)
Preparing to replace xserver-xfree86 4.1.0-2 (using
.../xserver-xfree86_4.3.0.dfsg.1-1_i386.deb) ...
dpkg: error processing
/var/cache/apt/archives/xserver-xfree86_4.3.0.dfsg.1-1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 10
Errors were encountered while processing:
/var/cache/apt/archives/xserver-xfree86_4.3.0.dfsg.1-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
This message being exceedingly unhelpful to try and work out what the
problem is, I tried unpacking with -D3:
> dpkg --unpack -D3 xserver-xfree86_4.3.0.dfsg.1-1_i386.deb
(Reading database ... 153429 files and directories currently installed.)
Preparing to replace xserver-xfree86 4.1.0-2 (using
xserver-xfree86_4.3.0.dfsg.1-1_i386.deb) ...
D000001: process_archive oldversionstatus=broken due to postinst failure
D000002: fork/exec /var/lib/dpkg/info/xserver-xfree86.prerm (dpkg: error
processing xserver-xfree86_4.3.0.dfsg.1-1_i386.deb (--unpack):
dpkg: warning - old pre-removal script killed by signal (Segmentation fault)
D000002: fork/exec /var/lib/dpkg/info/xserver-xfree86.postinst (dpkg: error
while cleaning up:
subprocess post-installation script killed by signal (Segmentation fault)
Errors were encountered while processing:
xserver-xfree86_4.3.0.dfsg.1-1_i386.deb
The core-dump gives a rather alarming trace:
Core was generated by `dpkg --unpack -D3 xserver-xfree86_4.3.0.dfsg.1-1_i386.deb'.
Program terminated with signal 11, Segmentation fault.
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
Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libnss_files.so.2
#0 0x4108ea8f in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x4108ea8f in strlen () from /lib/libc.so.6
#1 0x41062075 in vfprintf () from /lib/libc.so.6
#2 0x41063bae in vfprintf () from /lib/libc.so.6
#3 0x4105faf0 in vfprintf () from /lib/libc.so.6
#4 0x410685cf in fprintf () from /lib/libc.so.6
#5 0x0805868d in ?? ()
#6 0x41141e00 in _IO_2_1_stdout_ () from /lib/libc.so.6
#7 0x0806fbcb in _IO_stdin_used ()
#8 0x6c69662f in ?? ()
#9 0x0819ad40 in ?? ()
#10 0x00000004 in ?? ()
#11 0x080f2640 in stdin ()
#12 0xbffff8e8 in ?? ()
#13 0x08058a73 in ?? ()
#14 0x0819ad40 in ?? ()
#15 0x09d2b2bc in ?? ()
#16 0x4103cc6f in dcgettext () from /lib/libc.so.6
Previous frame inner to this frame (corrupt stack?)
(gdb)
status and available files from /var/lib/dpkg available shortly from
http://www.black-sun.demon.co.uk/tmp/ - same directory also contains the
xserver-xfree86.* files from .../info directory.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=C, LC_CTYPE=C
Versions of packages dpkg depends on:
ii dselect 1.10.9 a user tool to manage Debian packa
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
-- no debconf information
Reply to: