[lucid] wait-for-root: early segmentation fault in libc during startup

Bug #499422 reported by Per Ångström
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have upgraded to Lucid Lynx Alpha 1+ and now I see "Segmentation fault" almost immediately on startup. The following is an excerpt from dmesg:

[ 0.996583] alloc kstat_irqs on node -1
[ 0.996599] r8169 0000:02:00.0: irq 29 for MSI/MSI-X
[ 0.997085] eth0: RTL8168c/8111c at 0xffffc90000674000, 00:e0:91:22:df:c0, XI
D 1c2000c0 IRQ 29
[ 1.570051] usb 6-1: new full speed USB device using uhci_hcd and address 2
[ 1.577237] wait-for-root[302]: segfault at 0 ip 00007f52856877c2 sp 00007fffeebc9ac8 error 4 in libc.so.6[7f5285608000+166000]
[ 1.660098] EXT4-fs (sda7): mounted filesystem with ordered data mode
[ 1.818293] usb 6-1: configuration #1 chosen from 1 choice
[ 10.982471] udev: starting version 149

My kernel is 2.6.32-9-generic. It happens every time I boot up. I have updated this system several times since I first saw this, so I it's not a temporary inconsistence.

ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC262 Analog [ALC262 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: pang 1724 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfef00000 irq 22'
   Mixer name : 'Realtek ALC262'
   Components : 'HDA:10ec0262,18540120,00100002'
   Controls : 20
   Simple ctrls : 12
Date: Tue Dec 22 12:40:47 2009
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=2a4d2eac-9fba-4760-849b-e366ea52a359
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MachineType: LG Electronics P300-T.APE4V
Package: linux-image-2.6.32-9-generic 2.6.32-9.13
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-9-generic root=UUID=01ebab7a-379c-48c8-87d6-a2800f6dccfd ro quiet splash
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-9.13-generic
Regression: Yes
RelatedPackageVersions: linux-firmware 1.28
Reproducible: Yes
SourcePackage: linux
Tags: lucid needs-upstream-testing regression-potential
TestedUpstream: No
Uname: Linux 2.6.32-9-generic x86_64
WifiSyslog: Dec 22 12:33:13 barbaren kernel: [ 360.586271] CE: hpet increasing min_delta_ns to 15000 nsec
dmi.bios.date: 06/30/2008
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: ELGNSF18
dmi.board.name: ELGON
dmi.board.vendor: LG Electronics
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LG Electronics
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvrELGNSF18:bd06/30/2008:svnLGElectronics:pnP300-T.APE4V:pvrNotApplicable:rvnLGElectronics:rnELGON:rvrNotApplicable:cvnLGElectronics:ct10:cvrN/A:
dmi.product.name: P300-T.APE4V
dmi.product.version: Not Applicable
dmi.sys.vendor: LG Electronics

Revision history for this message
Per Ångström (autark) wrote :
Revision history for this message
Russell Green (r.green) wrote :

Other people who have confirmed this bug are reporting that this is KMS issue.

Forum thread for reference: http://ubuntuforums.org/showthread.php?t=1359040

Revision history for this message
Andy Whitcroft (apw) wrote :

wait-for-root is a new helper for waiting for the device which represents the root partition to appear. This could easily be a bug in that. The various scenarios mentioned in the forum tends to imply its timing related.

Revision history for this message
Steve Magoun (smagoun) wrote :

I see the "Segmentation fault" error immediately on boot. It's relatively new, started happening right around the time I fixed the UUIDs of my swap partition in /etc/initramfs-tools/conf.d/resume and /etc/fstab for bug 498485.

I'm running an ancient (2001/2002) SiS graphics card that, to the best of my knowledge, doesn't have any KMS support.

Revision history for this message
Greg A (etulfetulf) wrote :

Dec 22 18:56:51 greg-desktop kernel: [ 4.172391] usbhid: v2.6:USB HID core driver
Dec 22 18:56:51 greg-desktop kernel: [ 4.373211] 0000:00:19.0: eth0: (PCI Express:2.5GB/s:Width x1) 00:16:76:ca:3b:a8
Dec 22 18:56:51 greg-desktop kernel: [ 4.373214] 0000:00:19.0: eth0: Intel(R) PRO/1000 Network Connection
Dec 22 18:56:51 greg-desktop kernel: [ 4.373236] 0000:00:19.0: eth0: MAC: 6, PHY: 6, PBA No: 1021ff-0ff
Dec 22 18:56:51 greg-desktop kernel: [ 4.558320] wait-for-root[310]: segfault at 0 ip 00007fb2549237c2 sp 00007fff158abe58 error 4 in libc.so.6[7fb2548a4000+166000]
Dec 22 18:56:51 greg-desktop kernel: [ 4.858427] EXT4-fs (sda4): mounted filesystem with ordered data mode
Dec 22 18:56:51 greg-desktop kernel: [ 9.140620] usb-storage: device scan complete

Changed in linux (Ubuntu):
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.92bubuntu62

---------------
initramfs-tools (0.92bubuntu62) lucid; urgency=low

  * src/wait-for-root.c:
    - device records we obtain from udev may not have a device node name
      yet, check to avoid strcmp between NULL and our path. LP: #499422.
    - device records from the queue may not exist at all, check to avoid
      calling udev_device_unref on NULL (which should be safe anyway).
    - eliminate a race condition; by checking the filesystem before the
      queue, there was a small chance that udev could finish processing
      between our calls
 -- Scott James Remnant <email address hidden> Tue, 22 Dec 2009 19:30:01 +0000

Changed in initramfs-tools (Ubuntu):
status: New → Fix Released
Andy Whitcroft (apw)
summary: - [lucid] early segmentation fault in libc during startup
+ [lucid] wait-for-root: early segmentation fault in libc during startup
Revision history for this message
Tom Pino (metalsmith-rangeweb) wrote :

I get this too. It is a little starnge because sometimes if I restart at the login and boot again it is gone. Sometimes it is the same.

I have 5 different flavors of 10.04 installed, some clean installs and most upgrades.

Per Ångström (autark)
tags: removed: amd64 needs-upstream-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.