update-rc.d segmentation fault on upgrade from clean feisty to gutsy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: sysv-rc
Host is a xen host - with a clean feisty image.
Logged into console, followed instructions for clean server image upgrade
apt-get install update-manager-core
do-release-upgrade
A whole chunk of packages won't complete their postinst because update-rc.d is seg faulting
I can install other packages , and remove packages - but apt-get --configure -a fails
all the time with this set of packages
Some of the packages fail because update-rc.d seg faults in the postinst, and the rest
are failing because they have dependencies on the first set.
Examining the postinst for the packages that are failing , I pulled a full command, and
running strace against it -- gives :
# strace /usr/sbin/
[SKIP]
[SKIP]
open("/
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfc6ca98) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=
rt_sigaction(
readlink(
brk(0x8194000) = 0x8194000
getppid() = 6835
read(3, "#! /usr/bin/perl\n#\n# update-rc.d"..., 4096) = 4096
read(3, "= \'S\'; }\n\telsif ($ARGV[0] eq \'st"..., 4096) = 1477
read(3, "", 4096) = 0
close(3) = 0
stat64(
stat64(
chdir("/etc/rc0.d") = 0
open(".", O_RDONLY|
fstat64(3, {st_mode=
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 12 entries */, 4096) = 408
getdents64(3, /* 0 entries */, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 6836 detached
strace -v gives
getdents64(3, {{d_ino=14855, d_off=691923886, d_type=DT_LNK, d_reclen=40, d_name=
getdents64(3, {}, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 6838 detached
Changed in sysvinit: | |
status: | New → Confirmed |
Changed in sysvinit (Ubuntu): | |
status: | Confirmed → Invalid |
Oh... really strange..
Left the machine for a while, came back - tried again - and got the same issue.
Tried to dig in further - so the following activities made the problem go away ( but I have no idea why )
# deborphan
libdbus-1-3
libgc1c2
libasound2
liblzo1
klibc-utils
libdb4.3
libiw28
libc6-i686
root@lump:~# deborphan | xargs apt-get -y remove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
alsa-utils console-setup initramfs-tools klibc-utils libasound2 libc6-i686
libdb4.3 libdbus-1-3 libgc1c2 libiw28 liblzo1 pcmciautils ubuntu-minimal
ubuntu-standard udev volumeid w3m wpasupplicant
0 upgraded, 0 newly installed, 18 to remove and 0 not upgraded.
30 not fully installed or removed.
Need to get 0B of archives.
After unpacking 13.5MB disk space will be freed.
(Reading database ... 12875 files and directories currently installed.)
Removing ubuntu-minimal ...
Removing alsa-utils ...
Removing console-setup ...
Removing pcmciautils ...
Removing volumeid ...
Removing initramfs-tools ...
Removing udev ...
Removing ubuntu-standard ...
Removing w3m ...
Segmentation fault
dpkg: error processing w3m (--remove):
subprocess post-removal script returned error exit status 139
Removing wpasupplicant ...
Removing klibc-utils ...
Removing libasound2 ...
Removing libc6-i686 ...
Removing libdb4.3 ...
Removing libdbus-1-3 ...
Removing libgc1c2 ...
Removing libiw28 ...
Removing liblzo1 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@lump:~# apt-get install dbus nl.archive. ubuntu. com gutsy/main x11-common 1:7.2-5ubuntu13 [358kB] nl.archive. ubuntu. com gutsy/main libxau6 1:1.0.3-2 [11.9kB] nl.archive. ubuntu. com gutsy/main libxdmcp6 1:1.0.2-2 [16.9kB] nl.archive. ubuntu. com gutsy/main libx11-data 2:1.1.1-1ubuntu4 [190kB] nl.archive. ubuntu. com gutsy/main libx11-6 2:1.1.1-1ubuntu4 [607kB] nl.archive. ubuntu. com gutsy/main dbus 1.1.1-3ubuntu4 [217kB] common_ 1%3a7.2- 5ubuntu13_ i386.deb) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdbus-1-3 libx11-6 libx11-data libxau6 libxdmcp6 x11-common
The following packages will be REMOVED:
w3m
The following NEW packages will be installed:
dbus libdbus-1-3 libx11-6 libx11-data libxau6 libxdmcp6 x11-common
0 upgraded, 7 newly installed, 1 to remove and 0 not upgraded.
22 not fully installed or removed.
Need to get 1400kB/1529kB of archives.
After unpacking 3248kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Fetched 1400kB in 0s (6045kB/s)
Preconfiguring packages ...
/dev/mem: mmap: Bad address
(Reading database ... 12204 files and directories currently installed.)
Removing w3m ...
Selecting previously deselected package x11-common.
(Reading database ... 12204 files and directories currently installed.)
Unpacking x11-common (from .../x11-
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
Selecting previously deselected package ...