[Debconf-devel] Bug#478409: Bug#478409: debconf: dpkg-preconfigure --apt segfaults during upgrade to lenny (after perl unpacked)

Daniel Kahn Gillmor dkg-debian.org at fifthhorseman.net
Tue Apr 29 03:46:26 UTC 2008


On Mon 2008-04-28 22:11:38 -0400, Joey Hess wrote:

> What happens if you dpkg --configure locales ? Does the problem then
> stop happening? Your strace shows that it's just finished loading
> Encode.so when it crashes, which looks suspiciously like a problem
> involving locales. You might also try forcing your locale to C and
> seeing if that prevents the crash.

A bit more debugging around locales (still no joy): 

My local console ("squeak") uses en_US.UTF-8, but the system that's
having trouble ("clam") was set to en_US.ISO-8859-1.  Since i was
doing the upgrade via ssh, i thought there might be some weird
interaction between my local unicode terminal emulator and the remote
iso-8859-1 ssh session.   So to try to re-align them, i:

 * switched clam back to etch, and force-downgraded by pinning etch to
   priority 1001 in /etc/apt/preferences

 * ran dpkg-reconfigure locales on clam, switched clam to en_US.UTF-8
   for the default, and opted to not even generate en_US.ISO-8859-1

 * logged out of clam, and then back in (dunno if this was necessary
   to clean up the locale situation for the shell).

 * removed /etc/apt/preferences, switched sources.list to use lenny
   instead of etch

 * ran aptitude dist-upgrade, which had the same problematic result.
   I did manage to capture a transcript of the failed dist-upgrade,
   though, which i've included below.

So now i'm back in the same boat as before, where the segfault bites
me even as a non-root user:

0 rtguest at clam:~$ perl -e 'use Debconf::ConfModule'
Segmentation fault
139 rtguest at clam:~$ 

Anyway, i think this rules out a locale interaction between my
terminal emulator and the remote shell as the source of the problem.

Is it obvious yet that i don't understand locales very well? ;)

        --dkg

0 clam:~# aptitude dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information       
Initializing package states... Done
Reading task descriptions... Done  
Building tag database... Done    
The following packages are unused and will be REMOVED:
  libflac7 liboggflac3 
The following NEW packages will be automatically installed:
  bsd-mailx cpp-4.2 dbus dbus-x11 gcc-4.2-base gcc-4.3-base libasyncns0 
  libavahi-client3 libavahi-common-data libavahi-common3 libavc1394-0 
  libcwidget3 libdb4.5 libdb4.6 libdbus-1-3 libdevmapper1.02.1 libept0 
  libexpat1 libfaad0 libflac8 libfreebob0 libgnutls26 libgssglue1 libice6 
  libiec61883-0 libjack0 libkeyutils1 libldap-2.4-2 liblzo2-2 libopencdk10 
  libpulse0 libraw1394-8 libsamplerate0 libsm6 libx11-6 libx11-data 
  libxapian15 libxau6 libxdmcp6 libxml2 linux-image-2.6.24-1-powerpc 
  sgml-base x11-common xml-core 
The following packages will be automatically REMOVED:
  libgssapi2 modutils 
The following NEW packages will be installed:
  bsd-mailx cpp-4.2 dbus dbus-x11 gcc-4.2-base gcc-4.3-base libasyncns0 
  libavahi-client3 libavahi-common-data libavahi-common3 libavc1394-0 
  libcwidget3 libdb4.5 libdb4.6 libdbus-1-3 libdevmapper1.02.1 libept0 
  libexpat1 libfaad0 libflac8 libfreebob0 libgnutls26 libgssglue1 libice6 
  libiec61883-0 libjack0 libkeyutils1 libldap-2.4-2 liblzo2-2 libopencdk10 
  libpulse0 libraw1394-8 libsamplerate0 libsm6 libx11-6 libx11-data 
  libxapian15 libxau6 libxdmcp6 libxml2 linux-image-2.6.24-1-powerpc 
  sgml-base x11-common xml-core 
The following packages will be REMOVED:
  libgssapi2 lvm-common modutils 
The following packages will be upgraded:
  adduser alsaplayer-alsa alsaplayer-common alsaplayer-text apt apt-utils 
  aptitude at base-files base-passwd bash binutils bsdmainutils bsdutils 
  busybox bzip2 ca-certificates console-common console-data console-tools 
  coreutils cpio cpp cpp-4.1 cron dash debconf debconf-i18n 
  debian-archive-keyring debianutils dialog dictionaries-common diff 
  dmsetup dpkg dselect e2fslibs e2fsprogs eject emacs21-bin-common 
  emacs21-common emacs21-el emacs21-nox exim4 exim4-base exim4-config 
  exim4-daemon-light file findutils gcc-4.1-base gettext-base gnupg gpgv 
  grep groff-base gzip hostname iamerican ibritish initramfs-tools 
  initscripts iproute iptables iputils-ping ispell klibc-utils 
  laptop-detect less libacl1 libao2 libasound2 libatm1 libattr1 
  libaudiofile0 libblkid1 libbz2-1.0 libc6 libcomerr2 libconsole libdb4.2 
  libdb4.3 libdb4.4 libedit2 libevent1 libgc1c2 libgcc1 libgcrypt11 
  libglib2.0-0 libgnutls13 libgpg-error0 libgpmg1 libidn11 libklibc 
  libkrb53 libldap2 liblocale-gettext-perl liblockfile1 libmad0 libmagic1 
  libncurses5 libncursesw5 libnewt0.52 libnfsidmap2 libogg0 libpam-modules 
  libpam-runtime libpam0g libpcap0.8 libpcre3 libreadline5 librpcsecgss3 
  libsasl2-2 libselinux1 libsepol1 libshout3 libsigc++-2.0-0c2a libslang2 
  libsndfile1 libss2 libssl0.9.8 libstdc++6 libtasn1-3 
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl 
  libtheora0 libusb-0.1-4 libuuid1 libvolume-id0 libvorbis0a libvorbisenc2 
  libvorbisfile3 libwrap0 linux-image-2.6-powerpc locales login lsb-base 
  lsof lvm2 mac-fdisk mailx makedev man-db manpages menu mime-support 
  mktemp mkvmlinuz module-init-tools mount mpd mtr-tiny mutt nano 
  ncurses-base ncurses-bin net-tools netbase nfs-common ntp ntpdate 
  openssh-client openssh-server openssl passwd perl perl-base perl-modules 
  portmap powerpc-utils ppp procps psmisc python python-central 
  python-minimal python2.4 python2.4-minimal readline-common reportbug 
  runit runit-services screen sed smartmontools socklog strace sysv-rc 
  sysvinit sysvinit-utils tar tasksel tasksel-data tcpd ucf udev 
  update-inetd util-linux w3m wamerican wget whiptail whois zlib1g 
The following packages are RECOMMENDED but will NOT be installed:
  aptitude-doc-cs aptitude-doc-en aptitude-doc-fi aptitude-doc-fr 
  aptitude-doc-ja bash-completion fgetty ipsvd libfribidi0 libglib2.0-data 
  libparse-debianchangelog-perl libpng12-0 libsasl2-modules perl-doc 
  socklog-run uuid-runtime wbritish xauth 
204 packages upgraded, 44 newly installed, 5 to remove and 0 not upgraded.
Need to get 0B/130MB of archives. After unpacking 99.5MB will be used.
Do you want to continue? [Y/n/?] 
Writing extended state information... Done
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 17824 files and directories currently installed.)
Preparing to replace perl-modules 5.8.8-7etch3 (using .../perl-modules_5.8.8-12_all.deb) ...
Unpacking replacement perl-modules ...
Selecting previously deselected package libdb4.6.
Unpacking libdb4.6 (from .../libdb4.6_4.6.21-6_powerpc.deb) ...
Preparing to replace perl 5.8.8-7etch3 (using .../perl_5.8.8-12_powerpc.deb) ...
Unpacking replacement perl ...
Preparing to replace locales 2.3.6.ds1-13etch5 (using .../locales_2.7-10_all.deb) ...
Unpacking replacement locales ...
Preparing to replace libc6 2.3.6.ds1-13etch5 (using .../libc6_2.7-10_powerpc.deb) ...
dpkg: error processing /var/cache/apt/archives/libc6_2.7-10_powerpc.deb (--unpack):
 subprocess pre-installation script killed by signal (Segmentation fault)
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.7-10_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of locales:
 locales depends on glibc-2.7-1; however:
  Package glibc-2.7-1 is not installed.
dpkg: error processing locales (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libdb4.6:
 libdb4.6 depends on libc6 (>= 2.7-1); however:
  Version of libc6 on system is 2.3.6.ds1-13etch5.
dpkg: error processing libdb4.6 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of perl:
 perl depends on perl-base (= 5.8.8-12); however:
  Version of perl-base on system is 5.8.8-7etch3.
 perl depends on libc6 (>= 2.6.1-1); however:
  Version of libc6 on system is 2.3.6.ds1-13etch5.
 perl depends on libdb4.6; however:
  Package libdb4.6 is not configured yet.
dpkg: error processing perl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of perl-modules:
 perl-modules depends on perl (>= 5.8.8-8); however:
  Package perl is not configured yet.
dpkg: error processing perl-modules (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 locales
 libdb4.6
 perl
 perl-modules
255 clam:~# 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 826 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debconf-devel/attachments/20080428/f6f5af70/attachment-0001.pgp 


More information about the Debconf-devel mailing list