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

sarge package installation segfaults



I reported Bug#301912, consisting of repeated perl warnings and
segfaults during package installation.  It seems to have been
reported before, but I wasn't sure, and if so it's an old bug,
so I filed it as a new bugreport as a bebconf bug.  I've hit the
same bug several times since, and now think it's it's more likely
to be a dpkg or apt bug.  I'm not sure how to proceed from here.
I'm using debian testing and downgrading doesn't seem to be an
option.  I'm am inclined at this point to refile the bug as belonging
to dpkg, in hopes of a resolution to get my system stable again.

As noted in the bug report, my system is a 486 with 100% stock debian
sarge. Although my system is old it has run apt and debconf since
these packages were introduced, and never failed before running dpkg.
It's been upgraded from every version of debian since Buz, which may
be the problem, since dist upgrades were not well supported in the
early days.  Due to the slowness of the box, however, doing a clean
reinstall now would be a major undertaking, with unsure prospects of
resolving this bug.

I've made some recent hardware upgrades on the system, but if it's
a hardware bug this is it's only symptom so far, which seems unlikely.

In addition to the information in Bug#301912 I have the following
new information, part of which I sent to the debconf maintainer.
Based on the new information, besides suspecting a different package,
I now believe the bug is intermittent and could be related to
system load, possibly swapping-related.  There's even a slight chance
it's kernel related (I'll have to test for that).  Note the last install
operation posted below succeeds by simply repeating an apt-get command
and letting it run alone by abstaining from further interaction with the
system, while the installation is running.

A side concern here is that the base debian packages are outgrowing
old, slow systems.  I hope that's not the case.  Besides this failure,
from a practical standpoint running dselect, for example, is becoming
infeasible on my 30MB 486 (100MHz) because it's so slow.

Here's my latest results which can be appended to Bug#301912:

silurian:/etc/apcupsd# dselect
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
   lpr
The following NEW packages will be installed:
   cupsys cupsys-bsd cupsys-client cupsys-pt gs-esp libcupsimage2 libgimpprint1 libkrb53 samba-common smbclient xpdf-common xpdf-utils
0 upgraded, 12 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B/18.5MB of archives.
After unpacking 45.1MB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ... 42830 files and directories currently installed.)
Removing lpr ...
Stopping printer spooler: lpd [not running]
(Reading database ... 42806 files and directories currently installed.)
Unpacking libcupsimage2 (from .../libcupsimage2_1.1.23-7_i386.deb) ...
Unpacking xpdf-common (from .../xpdf-common_3.00-12_all.deb) ...
Unpacking xpdf-utils (from .../xpdf-utils_3.00-12_i386.deb) ...
Unpacking cupsys (from .../cupsys_1.1.23-7_i386.deb) ...
Unpacking cupsys-client (from .../cupsys-client_1.1.23-7_i386.deb) ...
Unpacking cupsys-pt (from .../cupsys-pt_1.2.4-3_i386.deb) ...
Unpacking libgimpprint1 (from .../libgimpprint1_4.2.7-5_i386.deb) ...
Unpacking gs-esp (from .../gs-esp_7.07.1-9_i386.deb) ...
Unpacking libkrb53 (from .../krb5/libkrb53_1.3.6-1_i386.deb) ...
Unpacking samba-common (from .../samba-common_3.0.10-1_i386.deb) ...
Unpacking smbclient (from .../smbclient_3.0.10-1_i386.deb) ...
Unpacking cupsys-bsd (from .../cupsys-bsd_1.1.23-7_i386.deb) ...
Setting up libcupsimage2 (1.1.23-7) ...

Setting up xpdf-common (3.00-12) ...

Setting up xpdf-utils (3.00-12) ...
Setting up cupsys (1.1.23-7) ...
Adding group `lpadmin' (104)...
Done.
Starting printing system service: cupsd.

Setting up cupsys-client (1.1.23-7) ...

Setting up cupsys-pt (1.2.4-3) ...

Setting up libgimpprint1 (4.2.7-5) ...

Setting up gs-esp (7.07.1-9) ...

Setting up libkrb53 (1.3.6-1) ...

Setting up samba-common (3.0.10-1) ...
Setting up cupsys-bsd (1.1.23-7) ...

Do you want to erase any previously downloaded .deb files? [Y/n]
Press enter to continue.

Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
   foomatic-db foomatic-db-engine foomatic-filters netcat wget
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1375kB of archives.
After unpacking 13.2MB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ... 44063 files and directories currently installed.)
Unpacking foomatic-filters (from .../foomatic-filters_3.0.2-20050114-1_all.deb) ...
Unpacking foomatic-db (from .../foomatic-db_20050218-1_all.deb) ...
Unpacking wget (from .../w/wget/wget_1.9.1-8_i386.deb) ...
Unpacking foomatic-db-engine (from .../foomatic-db-engine_3.0.2-20050218-1_i386.deb) ...
Unpacking netcat (from .../netcat/netcat_1.10-27_i386.deb) ...
Setting up foomatic-filters (3.0.2-20050114-1) ...
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 83, <GEN1> line 8.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 83, <GEN1> line 16.

Creating config file /etc/foomatic/filter.conf with new version
Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 72, <GEN6> line 7.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 73, <GEN6> line 7.
Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 72, <GEN6> line 7.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 73, <GEN6> line 7.
dpkg: error processing foomatic-filters (--configure):
  subprocess post-installation script killed by signal (Segmentation fault)
dpkg: dependency problems prevent configuration of foomatic-db:
  foomatic-db depends on foomatic-filters; however:
   Package foomatic-filters is not configured yet.
dpkg: error processing foomatic-db (--configure):
  dependency problems - leaving unconfigured
Setting up wget (1.9.1-8) ...

dpkg: dependency problems prevent configuration of foomatic-db-engine:
  foomatic-db-engine depends on foomatic-db; however:
   Package foomatic-db is not configured yet.
  foomatic-db-engine depends on foomatic-filters; however:
   Package foomatic-filters is not configured yet.
dpkg: error processing foomatic-db-engine (--configure):
  dependency problems - leaving unconfigured
Setting up netcat (1.10-27) ...
../../lib/dump.c:191: internal error `unknown verrel'
E: Sub-process /usr/bin/dpkg exited unexpectedly
Some errors occurred while unpacking. I'm going to configure the
packages that were installed. This may result in duplicate errors
or errors caused by missing dependencies. This is OK, only the errors
above this message are important. Please fix them and run [I]nstall again
Press enter to continue.

Setting up foomatic-filters (3.0.2-20050114-1) ...
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 83, <GEN1> line 10.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 83, <GEN1> line 15.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 83, <GEN1> line 18.
Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 72, <GEN6> line 7.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 73, <GEN6> line 7.
Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 72, <GEN6> line 7.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 73, <GEN6> line 7.
Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 72, <GEN6> line 7.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 73, <GEN6> line 7.

Setting up foomatic-db (20050218-1) ...
Setting up foomatic-db-engine (3.0.2-20050218-1) ...
../../lib/dump.c:191: internal error `unknown verrel'
/usr/lib/dpkg/methods/apt/install: line 107:  6828 Aborted                 $DPKG "$DPKG_OPTS" --configure -a

installation script returned error exit status 100.
Press <enter> to continue.

Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Do you want to erase any previously downloaded .deb files? [Y/n]
Press enter to continue.

running dpkg --pending --configure ...

dpkg --configure was terminated by a signal: Segmentation fault.
Press <enter> to continue.

running dpkg --pending --configure ...
running dpkg --pending --remove ...
dpkg: ../../lib/dump.c:180: varbufdependency: Assertion `dop->up == dep' failed.

dpkg --remove was terminated by a signal: Aborted.
Press <enter> to continue.

running dpkg --pending --remove ...
silurian:/etc/apcupsd#

Later I ran apt-get alone and got the following results:

silurian:/etc/apt# apt-get install cupsys-driver-gimpprint
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  cupsys-driver-gimpprint-data
Suggested packages:
  gimpprint-doc
The following NEW packages will be installed:
  cupsys-driver-gimpprint cupsys-driver-gimpprint-data
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2339kB of archives.
After unpacking 3138kB of additional disk space will be used.
Do you want to continue? [Y/n]


E: Sub-process /usr/bin/dpkg received a segmentation fault.
silurian:/etc/apt#
silurian:/etc/apt# apt-get install cupsys-driver-gimpprint   <---just repeating the command here
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  cupsys-driver-gimpprint-data
Suggested packages:
  gimpprint-doc
The following NEW packages will be installed:
  cupsys-driver-gimpprint cupsys-driver-gimpprint-data
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2339kB of archives.
After unpacking 3138kB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously deselected package cupsys-driver-gimpprint-data.
(Reading database ... 46152 files and directories currently installed.)
Unpacking cupsys-driver-gimpprint-data (from .../cupsys-driver-gimpprint-data_4.2.7-5_all.deb) ...
Selecting previously deselected package cupsys-driver-gimpprint.
Unpacking cupsys-driver-gimpprint (from .../cupsys-driver-gimpprint_4.2.7-5_i386.deb) ...
Setting up cupsys-driver-gimpprint-data (4.2.7-5) ...
Setting up cupsys-driver-gimpprint (4.2.7-5) ...
No Gimp-Print PPD files to update.
Reloading printing system service: cupsd.

silurian:/etc/apt#

Here is a snapshot of top showing the typical level of swapping on the
system when I ran the first install seesion listed above:


top - 04:13:12 up 10:17,  3 users,  load average: 1.37, 1.12, 1.03
Tasks:  48 total,   1 running,  47 sleeping,   0 stopped,   0 zombie
Cpu(s): 50.6% us, 17.5% sy,  0.0% ni,  0.0% id, 21.2% wa,  1.7% hi,  9.0% si
Mem:     29168k total,    28184k used,      984k free,      120k buffers
Swap:   131000k total,    54748k used,    76252k free,     1988k cached

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  6886 root      18   0 31460  19m 1484 D 46.9 67.9   0:43.44 dpkg
  6887 root      18   0  2060 1048 1844 R  9.8  3.6   0:00.97 top
     8 root      16   0     0    0    0 S  8.5  0.0   4:31.89 kswapd0
  1178 root      15   0 36060  224 3056 S  3.4  0.8   0:27.88 apcupsd
  6269 root      16   0  6980  240 6404 S  1.9  0.8   0:48.02 sshd
     5 root       5 -10     0    0    0 S  1.6  0.0   0:35.72 kblockd/0
  6684 root      15   0     0    0    0 D  0.8  0.0   0:03.36 pdflush
  1169 root      15   0  2256  256 2084 S  0.3  0.9   0:06.18 syslogd
     1 root      16   0  1500   72 1344 S  0.0  0.2   0:06.60 init
     2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
     3 root       5 -10     0    0    0 S  0.0  0.0   0:00.40 events/0
     4 root      15 -10     0    0    0 S  0.0  0.0   0:00.00 khelper
     9 root      15 -10     0    0    0 S  0.0  0.0   0:00.00 aio/0
    10 root      15   0     0    0    0 S  0.0  0.0   0:00.00 kseriod
   771 daemon    15   0  1608   20 1432 S  0.0  0.1   0:00.04 portmap
   778 root      15   0     0    0    0 S  0.0  0.0   0:04.00 rpciod
   779 root      18   0     0    0    0 S  0.0  0.0   0:00.00 lockd
  1172 root      15   0  1504  196 1336 S  0.0  0.7   0:01.56 klogd
  1183 nobody    20   0  1744   32 1580 S  0.0  0.1   0:00.06 dnsmasq
  1196 root      20   0  2236   24 2076 S  0.0  0.1   0:00.09 inetd
  1209 root      16   0  3408   32 3024 S  0.0  0.1   0:27.92 sshd
  1217 root      17   0  4640   36 2144 S  0.0  0.1   0:03.18 xfs
  1222 root      18   0  2372   32 2196 S  0.0  0.1   0:00.17 rpc.statd
  1230 root      16   0  2644  100 2284 S  0.0  0.3   0:02.02 rpc.nfsd
  1232 root      16   0  2644   96 2300 S  0.0  0.3   0:01.41 rpc.mountd
  1235 daemon    17   0  1680   32 1512 S  0.0  0.1   0:00.04 atd
  1238 root      15   0  1760  188 1568 S  0.0  0.6   0:04.32 cron
  1245 root      16   0  4508   76 3996 S  0.0  0.3   0:02.68 apache
  1252 root      17   0  1496   32 1328 S  0.0  0.1   0:00.05 getty
  1253 root      17   0  1496   32 1328 S  0.0  0.1   0:00.04 getty
  1254 root      16   0  1496   32 1328 S  0.0  0.1   0:00.05 getty
  1255 root      16   0  1496   32 1328 S  0.0  0.1   0:00.05 getty
  1256 root      16   0  1496   32 1328 S  0.0  0.1   0:00.05 getty
  1257 root      16   0  1496   32 1328 S  0.0  0.1   0:00.05 getty
  1258 marty     16   0  2568   24 2372 S  0.0  0.1   0:01.08 bash
  3797 root      16   0  6984  144 6404 S  0.0  0.5   0:40.42 sshd
  3799 root      16   0  2612   24 2372 S  0.0  0.1   0:01.48 bash
  5765 www-data  16   0  4644   52 3996 S  0.0  0.2   0:03.66 apache
  5823 www-data  16   0  4644   52 3996 S  0.0  0.2   0:02.94 apache



Reply to: