apt-get segfaults!!
Eray 'exa' Ozkural
erayo at cs.bilkent.edu.tr
Fri Jan 19 12:44:16 CET 2001
Hi,
We're trying to debug FAI for sid distribution.
In the course of installation, install_packages
dies with a segfault. Here is the log for rcS
for your examination.
We haven't been able to find the cause of the bug
but we think it's an apt bug when it's given
many packages for an install run.
Thanks,
-------------- next part --------------
Fri Jan 19 13:01:03 2001
Kernel parameters:
/fai mounted from 10.0.0.241:/usr/local/share/fai
FAI_FLAGS: debug=1
Now defining classes
Executing S00hostname.sh
newclasses= node04 ALL
Executing S01alias.sh
newclasses= REMOVE
BASE
NETWORK
BOOT
MBR
NOTFPD
NOFTPD
NODE
NTP
MINI_SOFT
HOME_CLIENT
PRIVATE_NET
USR_LOCAL_MOUNT
COMPILE
PARALLEL_NODE
KEYBOARD_US
Executing S05modules.sh
newclasses=
Executing S07disk.pl
newclasses= 6GB
Executing S24nis.sh
newclasses= NIS
BORG_NIS
Executing S90partitions.sh
newclasses= NFS_SERVER SCRATCH
TMP_PARTITION
Executing S91global.source
#! /bin/sh
# these variabel are used by cfengine
force=true
backup=true
liloappend=''
kernelimage=2.2.17 # default kernel
hserver=''
bserver=''
newclasses=
Executing S98rootpw.source
#! /bin/sh
case $HOSTNAME in
faiserver)
rootpw="!!!"
;;
node??)
rootpw=""
;;
esac
newclasses=
Executing S98variables.source
#! /bin/sh
# only variables that are used in a shell command inside cfengine must be exported
# default kernel
kernelimage=2.2.14
case $HOSTNAME in
kueppers)
time_zone=Europe/Berlin
liloappend='append="mem=320M ramdisk=20000"'
# rootpw='56hNVqht51tzc'
# TFTPLINK=kueppers_local_disk
kernelimage=2.2.14
;;
# borg)
# time_zone=Europe/Istanbul
# liloappend='append="mem=512M ramdisk=20000"'
# rootpw='!!!'
# kernelimage=kernel-image-2.2.15_kueppers1_i386.deb
# ;;
node??)
time_zone=Europe/Istanbul
kernelimage=kernel-image-2.2.14_node.1.0_i386.deb
;;
esac
bserver=borg
hserver=borg
newclasses=
Executing S99last.sh
newclasses= LAST
cfclass: node04.ALL.REMOVE.BASE.NETWORK.BOOT.MBR.NOTFPD.NOFTPD.NODE.NTP.MINI_SOFT.HOME_CLIENT.PRIVATE_NET.USR_LOCAL_MOUNT.COMPILE.PARALLEL_NODE.KEYBOARD_US.6GB.NIS.BORG_NIS.NFS_SERVER.SCRATCH.TMP_PARTITION.LAST
Partitioning local harddisks
Unpacking Debian base: /tmp/target//mnt//debian/dists/stable/main/disks-i386/current/base2_2.tgz
Installing software may take a while
Reading Package Lists...
Building Dependency Tree...
Reading Package Lists...
Building Dependency Tree...
** prepare_apt: begin
Reading Package Lists...
Building Dependency Tree...
The following packages will be REMOVED:
pcmcia-cs*
0 packages upgraded, 0 newly installed, 1 to remove and 60 not upgraded.
Need to get 0B of archives. After unpacking 546kB will be freed.
(Reading database ... 5249 files and directories currently installed.)
Removing pcmcia-cs ...
dpkg - warning: while removing pcmcia-cs, directory `/etc/pcmcia/cis' not empty so not removed.
dpkg - warning: while removing pcmcia-cs, directory `/etc/pcmcia' not empty so not removed.
dpkg - warning: while removing pcmcia-cs, directory `/etc/apm/event.d' not empty so not removed.
dpkg - warning: while removing pcmcia-cs, directory `/etc/apm' not empty so not removed.
depmod: Can't open /lib/modules/2.2.14/modules.dep for writing
Purging configuration files for pcmcia-cs ...
depmod: Can't open /lib/modules/2.2.14/modules.dep for writing
Reading Package Lists...
Building Dependency Tree...
The following packages have been kept back
adduser dpkg netbase
The following packages will be upgraded
base-config base-files base-passwd bash bsdutils console-data console-tools
console-tools-libs debianutils diff e2fsprogs elvis-tiny fileutils findutils
ftp gettext-base isapnptools ldso libc6 libdb2 libgdbmg1 libncurses5 libnewt0
libpam-modules libpam-runtime libpam0g libpopt0 libreadline4 libstdc++2.10
libwrap0 lilo locales login makedev mbr modconf modutils mount ncurses-base
ncurses-bin passwd pciutils ppp procps psmisc pump sed setserial shellutils
slang1 tar tcpd telnet textutils update util-linux whiptail
57 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B/14.2MB of archives. After unpacking 3380kB will be used.
(Reading database ... 5136 files and directories currently installed.)
Preparing to replace locales 2.1.3-13 (using .../glibc/locales_2.2.1-1_all.deb) ...
Unpacking replacement locales ...
Preparing to replace libc6 2.1.3-13 (using .../g/glibc/libc6_2.2.1-1_i386.deb) ...
Unpacking replacement libc6 ...
Replacing files in old package ldso ...
Setting up libc6 (2.2.1-1) ...
Checking for services that may need to be restarted...done.
Name Service Switch has changed in the C Library.
Running programs may not be able to do NSS lookups until they are
restarted (for services such as ssh, this can affect your ability to
login).
Note: restarting sshd should not affect any existing connections.
The services detected are:
If other services begin to fail mysteriously after this upgrade,
it may be necessary to restart them too.
Do you wish to Restart Services? [Y/n]
Current default timezone: 'UTC'.
Local time is now: Fri Jan 19 11:02:27 UTC 2001.
Universal Time is now: Fri Jan 19 11:02:27 UTC 2001.
Run 'tzconfig' if you wish to change it.
(Reading database ... 5039 files and directories currently installed.)
Preparing to replace base-passwd 3.1.10 (using .../base/base-passwd_3.2.0.deb) ...
Unpacking replacement base-passwd ...
Setting up base-passwd (3.2.0) ...
(Reading database ... 5039 files and directories currently installed.)
Preparing to replace base-files 2.2.0 (using .../base-files_2.2.6_i386.deb) ...
Unpacking replacement base-files ...
Setting up base-files (2.2.6) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/motd ...
(Reading database ... 5035 files and directories currently installed.)
Preparing to replace bash 2.03-6 (using .../base/bash_2.04-9.deb) ...
Unpacking replacement bash ...
Setting up bash (2.04-9) ...
Installing new version of config file /etc/skel/.bash_profile ...
Installing new version of config file /etc/skel/.bash_logout ...
(Reading database ... 5035 files and directories currently installed.)
Preparing to replace bsdutils 1:2.10f-5.1 (using .../base/bsdutils_2.10q-1.deb) ...
Unpacking replacement bsdutils ...
Setting up bsdutils (2.10q-1) ...
(Reading database ... 5035 files and directories currently installed.)
Preparing to replace debianutils 1.13.3 (using .../base/debianutils_1.14.deb) ...
Unpacking replacement debianutils ...
Setting up debianutils (1.14) ...
(Reading database ... 5035 files and directories currently installed.)
Preparing to replace diff 2.7-21 (using .../d/diff/diff_2.7-22_i386.deb) ...
Unpacking replacement diff ...
Setting up diff (2.7-22) ...
(Reading database ... 5035 files and directories currently installed.)
Preparing to replace e2fsprogs 1.18-3 (using .../base/e2fsprogs_1.19-3.deb) ...
Unpacking replacement e2fsprogs ...
Setting up e2fsprogs (1.19-3) ...
(Reading database ... 5032 files and directories currently installed.)
Preparing to replace fileutils 4.0l-8 (using .../fileutils_4.0.35-3_i386.deb) ...
Unpacking replacement fileutils ...
Setting up fileutils (4.0.35-3) ...
(Reading database ... 5033 files and directories currently installed.)
Preparing to replace findutils 4.1-40 (using .../base/findutils_4.1.6-2.deb) ...
Unpacking replacement findutils ...
Setting up findutils (4.1.6-2) ...
Installing new version of config file /etc/updatedb.conf ...
(Reading database ... 5045 files and directories currently installed.)
Preparing to replace libdb2 2:2.4.14-2.7.7.1.c (using .../libs/libdb2_2.7.7-2.2.deb) ...
Unpacking replacement libdb2 ...
Preparing to replace libpam-runtime 0.72-9 (using .../libpam-runtime_0.72-12.deb) ...
Unpacking replacement libpam-runtime ...
Preparing to replace libpam0g 0.72-9 (using .../base/libpam0g_0.72-12.deb) ...
Unpacking replacement libpam0g ...
Setting up libpam-runtime (0.72-12) ...
Setting up libpam0g (0.72-12) ...
(Reading database ... 5045 files and directories currently installed.)
Preparing to replace libpam-modules 0.72-9 (using .../libpam-modules_0.72-12.deb) ...
Unpacking replacement libpam-modules ...
Setting up libdb2 (2.7.7-2.2) ...
Setting up libpam-modules (0.72-12) ...
(Reading database ... 5045 files and directories currently installed.)
Preparing to replace login 19990827-20 (using .../base/login_20000902-1.deb) ...
Unpacking replacement login ...
Setting up login (20000902-1) ...
Installing new version of config file /etc/securetty ...
(Reading database ... 5045 files and directories currently installed.)
Preparing to replace mount 2.10f-5.1 (using .../base/mount_2.10q-1.deb) ...
Unpacking replacement mount ...
Setting up mount (2.10q-1) ...
(Reading database ... 5045 files and directories currently installed.)
Preparing to replace sed 3.02-5 (using .../base/sed_3.02-6.deb) ...
Unpacking replacement sed ...
Setting up sed (3.02-6) ...
(Reading database ... 5045 files and directories currently installed.)
Preparing to replace shellutils 2.0-7 (using .../shellutils_2.0.11-1_i386.deb) ...
Unpacking replacement shellutils ...
Setting up shellutils (2.0.11-1) ...
(Reading database ... 5050 files and directories currently installed.)
Preparing to replace tar 1.13.17-2 (using .../t/tar/tar_1.13.18-2_i386.deb) ...
Unpacking replacement tar ...
Setting up tar (1.13.18-2) ...
(Reading database ... 5043 files and directories currently installed.)
Preparing to replace textutils 2.0-2 (using .../base/textutils_2.0-3.deb) ...
Unpacking replacement textutils ...
Setting up textutils (2.0-3) ...
(Reading database ... 5050 files and directories currently installed.)
Preparing to replace update 2.11-1 (using .../update/update_2.11-2_i386.deb) ...
Unpacking replacement update ...
Setting up update (2.11-2) ...
(Reading database ... 5050 files and directories currently installed.)
Preparing to replace util-linux 2.10f-5.1 (using .../base/util-linux_2.10q-1.deb) ...
Unpacking replacement util-linux ...
Setting up util-linux (2.10q-1) ...
Installing new version of config file /etc/init.d/hwclock.sh ...
(Reading database ... 5034 files and directories currently installed.)
Preparing to replace ncurses-base 5.0-6 (using .../base/ncurses-base_5.0-8.deb) ...
Unpacking replacement ncurses-base ...
Setting up ncurses-base (5.0-8) ...
Installing new version of config file /etc/terminfo/m/mach-color ...
(Reading database ... 5034 files and directories currently installed.)
Preparing to replace libncurses5 5.0-6 (using .../base/libncurses5_5.0-8.deb) ...
Unpacking replacement libncurses5 ...
Setting up libncurses5 (5.0-8) ...
(Reading database ... 5034 files and directories currently installed.)
Preparing to replace ncurses-bin 5.0-6.0potato1 (using .../base/ncurses-bin_5.0-8.deb) ...
Unpacking replacement ncurses-bin ...
Setting up ncurses-bin (5.0-8) ...
(Reading database ... 5034 files and directories currently installed.)
Preparing to replace ldso 1.9.11-9 (using .../base/ldso_1.9.11-12.deb) ...
Unpacking replacement ldso ...
Setting up ldso (1.9.11-12) ...
(Reading database ... 5032 files and directories currently installed.)
Preparing to replace elvis-tiny 1.4-9 (using .../base/elvis-tiny_1.4-11.deb) ...
Unpacking replacement elvis-tiny ...
Preparing to replace libpopt0 1.4-1.1 (using .../libs/libpopt0_1.5-0.1.deb) ...
Unpacking replacement libpopt0 ...
Preparing to replace lilo 1:21.4.3-2 (using .../l/lilo/lilo_21.6-2_i386.deb) ...
preserving boot.b
preserving chain.b
preserving os2_d.b
Unpacking replacement lilo ...
Preparing to replace console-data 1999.08.29-11.2 (using .../console-data_1999.08.29-12.1.1_all.deb) ...
Unpacking replacement console-data ...
Preparing to replace console-tools 1:0.2.3-10.3 (using .../console-tools_0.2.3-14.deb) ...
Unpacking replacement console-tools ...
Preparing to replace console-tools-libs 1:0.2.3-10.3 (using .../console-tools-libs_0.2.3-14.deb) ...
Unpacking replacement console-tools-libs ...
Preparing to replace libgdbmg1 1.7.3-26.2 (using .../libgdbmg1_1.7.3-27_i386.deb) ...
Unpacking replacement libgdbmg1 ...
Preparing to replace libreadline4 4.1-1 (using .../base/libreadline4_4.1-4.deb) ...
Unpacking replacement libreadline4 ...
Setting up libreadline4 (4.1-4) ...
(Reading database ... 5037 files and directories currently installed.)
Preparing to replace makedev 2.3.1-46.2 (using .../makedev_2.3.1-50.1_all.deb) ...
Unpacking replacement makedev ...
Preparing to replace mbr 1.1.2-1 (using .../base/mbr_1.1.2-2.deb) ...
Unpacking replacement mbr ...
Preparing to replace modutils 2.3.11-13.1 (using .../modutils_2.4.1-1_i386.deb) ...
Removing obsoleted files:
Unpacking replacement modutils ...
Preparing to replace passwd 19990827-20 (using .../base/passwd_20000902-1.deb) ...
Unpacking replacement passwd ...
Preparing to replace procps 1:2.0.6-5 (using .../procps/procps_2.0.7-1_i386.deb) ...
Unpacking replacement procps ...
Preparing to replace setserial 2.17-16 (using .../base/setserial_2.17-18.deb) ...
Unpacking replacement setserial ...
Preparing to replace slang1 1.3.9-1 (using .../base/slang1_1.4.1-1.deb) ...
Unpacking replacement slang1 ...
Setting up slang1 (1.4.1-1) ...
(Reading database ... 5037 files and directories currently installed.)
Preparing to replace ftp 0.10-3.1 (using .../binary-i386/net/ftp_0.17-4.deb) ...
Unpacking replacement ftp ...
Preparing to replace gettext-base 0.10.35-13 (using .../gettext-base_0.10.35-16.deb) ...
Unpacking replacement gettext-base ...
Preparing to replace libwrap0 7.6-4 (using .../libwrap0_7.6-7_i386.deb) ...
Unpacking replacement libwrap0 ...
Preparing to replace ppp 2.3.11-1.4 (using .../base/ppp_2.4.0f-1.deb) ...
Unpacking replacement ppp ...
Preparing to replace tcpd 7.6-4 (using .../tcpd_7.6-7_i386.deb) ...
Unpacking replacement tcpd ...
Preparing to replace telnet 0.16-4potato.1 (using .../net/telnet_0.17-6.deb) ...
Unpacking replacement telnet ...
Preparing to replace base-config 0.33.2 (using .../base-config_0.51_i386.deb) ...
Unpacking replacement base-config ...
Preparing to replace libnewt0 0.50-7 (using .../base/libnewt0_0.50.8-2.deb) ...
Unpacking replacement libnewt0 ...
Preparing to replace whiptail 0.50-7 (using .../base/whiptail_0.50.8-2.deb) ...
Unpacking replacement whiptail ...
Preparing to replace modconf 0.2.26.14 (using .../base/modconf_0.2.27.deb) ...
Unpacking replacement modconf ...
Preparing to replace pciutils 1:2.1.2-2 (using .../admin/pciutils_2.1.8-2.deb) ...
Unpacking replacement pciutils ...
Preparing to replace psmisc 19-2 (using .../p/psmisc/psmisc_19-3_i386.deb) ...
Unpacking replacement psmisc ...
Preparing to replace pump 0.7.3-2 (using .../net/pump_0.8.3-1.deb) ...
Unpacking replacement pump ...
Preparing to replace isapnptools 1.21-2 (using .../base/isapnptools_1.23-0.3.deb) ...
Unpacking replacement isapnptools ...
Preparing to replace libstdc++2.10 1:2.95.2-13 (using .../libstdc++2.10_2.95.2-14.deb) ...
Unpacking replacement libstdc++2.10 ...
Setting up libstdc++2.10 (2.95.2-14) ...
Setting up locales (2.2.1-1) ...
Installing new version of config file /etc/locale.alias ...
WARNING: The locales package no longer supplies precompiled versions of
the locale definitions. Instead, you must uncomment the definitions you
want in /etc/locale.gen, and run the `locale-gen' program as root. Each
time the locales package is upgraded, these definitions will automatically
be regenerated. If you wish, you can type ^Z (CTRL+Z) now to background
this install, edit /etc/locale.gen, and type `fg' when done, so that
locales will be generated now.
Press [ENTER] to continue: Generating locales...
en_US.ISO-8859-1... done
Generation complete.
Setting up elvis-tiny (1.4-11) ...
Setting up libpopt0 (1.5-0.1) ...
Setting up lilo (21.6-2) ...
Running /usr/sbin/liloconfig
This program only reinstall LiLO with the already given options.
You can reconfigure LiLO with the dpkg-reconfigure lilo or you can use
the old configuration tool, which is now named oldliloconfig.
Here we will run lilo, but now for security reasons we won't do it!
Please verify lilo.conf by hand and send comments to russell at coker.com.au!
Thanks, and sorry about the data loss ;)
Setting up console-data (1999.08.29-12.1.1) ...
Setting up console-tools-libs (0.2.3-14) ...
Setting up libgdbmg1 (1.7.3-27) ...
Setting up makedev (2.3.1-50.1) ...
Installing new version of config file /etc/init.d/makedev ...
Setting up mbr (1.1.2-2) ...
Setting up modutils (2.4.1-1) ...
Installing new version of config file /etc/init.d/modutils ...
Configuration file `/etc/modules'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** modules (Y/I/N/O/D/Z) [default=N] ? Installing new version of config file /etc/modutils/aliases ...
Installing new version of config file /etc/modutils/paths ...
Setting up passwd (20000902-1) ...
Setting up procps (2.0.7-1) ...
Setting kernel variables.
Setting up setserial (2.17-18) ...
Installing new version of config file /etc/init.d/setserial ...
Setting up ftp (0.17-4) ...
Setting up gettext-base (0.10.35-16) ...
Setting up libwrap0 (7.6-7) ...
Setting up ppp (2.4.0f-1) ...
Installing new version of config file /etc/init.d/ppp ...
Setting up tcpd (7.6-7) ...
Setting up telnet (0.17-6) ...
Setting up base-config (0.51) ...
Setting up libnewt0 (0.50.8-2) ...
Setting up whiptail (0.50.8-2) ...
Setting up modconf (0.2.27) ...
Setting up pciutils (2.1.8-2) ...
Setting up psmisc (19-3) ...
Setting up pump (0.8.3-1) ...
Setting up isapnptools (1.23-0.3) ...
Setting up console-tools (0.2.3-14) ...
Installing new version of config file /etc/console-tools/config ...
/sbin/install_packages: read config file /fai/package_config/REMOVE
/sbin/install_packages: read config file /fai/package_config/NTP
/sbin/install_packages: read config file /fai/package_config/MINI_SOFT
/sbin/install_packages: read config file /fai/package_config/COMPILE
/sbin/install_packages: read config file /fai/package_config/PARALLEL_NODE
/sbin/install_packages: read config file /fai/package_config/NIS
/sbin/install_packages: read config file /fai/package_config/NFS_SERVER
nice yes ''| chroot /tmp/target apt-get -y --fix-missing install ntp bootpc util-linux debianutils rstat-client rstatd rusers rusersd rsh-server rsh-client pciutils sysutils time strace ldso libpam-cracklib tcsh tcsh-i18n file less cfengine psmisc jove most tmpreaper zile m4 libc6-dev libg++2.8.1.3 libstdc++2.10-dev libstdc++2.10 g77 bison flex lam-runtime pvm blacs1-lam scalapack1-lam atlas2 fping tcpdump ntop netpipe-lam netpipe-tcp nis nscd nfs-user-server
Reading Package Lists...
Building Dependency Tree...
Sorry, util-linux is already the newest version
Sorry, debianutils is already the newest version
Sorry, pciutils is already the newest version
Sorry, ldso is already the newest version
Sorry, psmisc is already the newest version
Sorry, libstdc++2.10 is already the newest version
The following extra packages will be installed:
binutils cpp cpp-2.95 cracklib-runtime cracklib2 g++-2.95 g77-2.95 gcc-2.95
lam2 libncurses4 libpcap0 libpvm3 libstdc++2.10-glibc2.2 make perl-5.6
perl-5.6-base portmap
The following NEW packages will be installed:
atlas2 binutils bison blacs1-lam bootpc cfengine cpp cpp-2.95
cracklib-runtime cracklib2 file flex fping g++-2.95 g77 g77-2.95 gcc-2.95
jove lam-runtime lam2 less libc6-dev libg++2.8.1.3 libncurses4
libpam-cracklib libpcap0 libpvm3 libstdc++2.10-dev libstdc++2.10-glibc2.2 m4
make most netpipe-lam netpipe-tcp nfs-user-server nis nscd ntop ntp perl-5.6
perl-5.6-base portmap pvm rsh-client rsh-server rstat-client rstatd rusers
rusersd scalapack1-lam strace sysutils tcpdump tcsh tcsh-i18n time tmpreaper
zile
0 packages upgraded, 58 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B/19.7MB of archives. After unpacking 62.1MB will be used.
Selecting previously deselected package perl-5.6-base.
(Reading database ... 5050 files and directories currently installed.)
Unpacking perl-5.6-base (from .../perl-5.6-base_5.6.0-6.2_i386.deb) ...
Selecting previously deselected package perl-5.6.
Unpacking perl-5.6 (from .../perl-5.6_5.6.0-6.2_i386.deb) ...
Selecting previously deselected package lam2.
Unpacking lam2 (from .../libs/lam2_6.3.2-7.deb) ...
Selecting previously deselected package rsh-client.
Unpacking rsh-client (from .../rsh-client_0.17-1_i386.deb) ...
Selecting previously deselected package rsh-server.
Unpacking rsh-server (from .../rsh-server_0.17-1_i386.deb) ...
Selecting previously deselected package lam-runtime.
E: Sub-process /usr/bin/dpkg recieved a segmentation fault.
/sbin/install_packages ERROR: 25600 25600 at /sbin/install_packages line 68, <FILE> chunk 41.
nice yes ''| chroot /tmp/target apt-get -y --purge remove ppp pppconfig
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
/sbin/install_packages ERROR: 25600 25600 at /sbin/install_packages line 68, <FILE> chunk 41.
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
lam2 Enables parallel processing across multiple processors
perl-5.6-base The Pathologically Eclectic Rubbish Lister
perl-5.6 Larry Wall's Practical Extracting and Report Language.
rsh-client rsh clients.
rsh-server rsh servers.
Executing shell: ALL
Executing cfengine: BASE
Executing cfengine: NETWORK
Executing cfengine: BOOT
Executing cfengine: NIS
Executing cfengine: LAST
Fri Jan 19 13:06:16 EET 2001
FAI finished.
More information about the linux-fai
mailing list