[Bug 152664] Re: update-rc.d segmentation fault on upgrade from clean feisty to gutsy

Steve Langasek steve.langasek at canonical.com
Fri May 17 21:22:39 UTC 2013


** Changed in: sysvinit (Ubuntu)
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/152664

Title:
  update-rc.d segmentation fault on upgrade from clean feisty to gutsy

Status in “sysvinit” package in Ubuntu:
  Invalid

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/update-rc.d module-init-tools start 15 S .
  [SKIP]
  [SKIP]
  open("/usr/sbin/update-rc.d", O_RDONLY|O_LARGEFILE) = 3
  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=S_IFREG|0755, st_size=5573, ...}) = 0
  rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
  readlink("/proc/self/exe", "/usr/bin/perl", 4095) = 13
  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("/etc/init.d/module-init-tools", {st_mode=S_IFREG|0755, st_size=1399, ...}) = 0
  stat64("/etc/rcS.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
  chdir("/etc/rc0.d")                     = 0
  open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
  fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
  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="S60umountroot"} {d_ino=14849, d_off=818700213, d_type=DT_DIR, d_reclen=24, d_name="."} {d_ino=14853, d_off=1128720051, d_type=DT_LNK, d_reclen=40, d_name="S31umountnfs.sh"} {d_ino=14856, d_off=1223729123, d_type=DT_LNK, d_reclen=32, d_name="S90halt"} {d_ino=14850, d_off=1253351180, d_type=DT_LNK, d_reclen=40, d_name="S15wpa-ifupdown"} {d_ino=14693, d_off=1327966852, d_type=DT_DIR, d_reclen=24, d_name=".."} {d_ino=15408, d_off=1669929854, d_type=DT_LNK, d_reclen=40, d_name="K59mountoverflowtmp"} {d_ino=17550, d_off=1859411755, d_type=DT_REG, d_reclen=32, d_name="README"} {d_ino=14852, d_off=1927655235, d_type=DT_LNK, d_reclen=32, d_name="S30urandom"} {d_ino=14854, d_off=1971293165, d_type=DT_LNK, d_reclen=32, d_name="S40umountfs"} {d_ino=14851, d_off=2082333935, d_type=DT_LNK, d_reclen=32, d_name="S20sendsigs"} {d_ino=14743, d_off=2147483647, d_type=DT_LNK, d_reclen=40, d_name="K25hwclock.sh"}}, 4096) = 408
  getdents64(3, {}, 4096)                 = 0
  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
  +++ killed by SIGSEGV +++
  Process 6838 detached

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/152664/+subscriptions




More information about the foundations-bugs mailing list