Your message dated Mon, 5 Jan 2009 23:48:22 +0200
with message-id <[email protected]>
and subject line Re: Bug#247189: dpkg: segfault when trying to update 
xserver-xfree86
has caused the Debian Bug report #247189,
regarding dpkg: segfault when trying to update xserver-xfree86
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
247189: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=247189
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
Version: 1.13.2

Hi!

On Mon, 2004-05-03 at 19:50:38 +0100, Paul Walker wrote:
> Package: dpkg
> Version: 1.10.21
> Severity: normal
> Tags: sid
> 
> 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

This got fixed in commit 00e5640a99be03aba40c9e08a663b90d8f8aa797,
for dpkg 1.13.2. The ChangeLog entry was:

2005-03-18  Scott James Remnant  <[email protected]>

        * src/help.c (preexecscript): The first member of argv is always
        NULL because it's filled in by the return value of this function,
        so increment argv first when debug-outputting maintainer script
        arguments.

Thus closing, and thanks for the report!

regards,
guillem


--- End Message ---

Reply via email to