Bug#549393: grub-pc: update-grub segfaults every time

Zoe Parsons zoe at zarp.org.uk
Sat Oct 3 00:03:38 UTC 2009


Package: grub-pc
Version: 1.97~beta3-1
Severity: important

On every run update-grub segfaults in grub-probe:

rockhopper:~# update-grub
Generating grub.cfg ...
Segmentation fault
rockhopper:~# dpkg --configure grub-pc
Setting up grub-pc (1.97~beta3-1) ...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)	/dev/sda
(hd1)	/dev/sdb
(hd2)	/dev/sdc
(hd3)	/dev/sdd
(hd4)	/dev/sde
(hd5)	/dev/sdf
(hd6)	/dev/sdg
Generating grub.cfg ...
Segmentation fault
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
 grub-pc
rockhopper:~# 

[3911975.103240] grub-probe[16253]: segfault at 8 ip 000000000040189f sp 00007ffff56c1f10 error 4 in grub-probe[400000+27000]
[3911992.448413] grub-probe[16900]: segfault at 8 ip 000000000040189f sp 00007fff3dd2f8a0 error 4 in grub-probe[400000+27000]

The most similar bug report I saw here was saying that symlinks and LVM are responsible, but whilst I do use LVM there are no symlinks anywhere I can see... I know it used to work, so something must have broken recently.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/rockhopper-root / ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/sda1 /boot ext3 rw,noatime,errors=continue,data=journal 0 0
/dev/mapper/rockhopper-tmp /tmp ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/rockhopper-usr /usr ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/mapper/rockhopper-var /var ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/mapper/rockhopper-varspool /var/spool ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/mapper/rockhopper-usrlocal /usr/local ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/mapper/rockhopper-opt /opt ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/mapper/rockhopper-srv /srv ext3 rw,noatime,errors=continue,user_xattr,acl,data=ordered 0 0
/dev/sde1 /data3 ext4 rw,sync,dirsync,noatime,barrier=1,data=ordered 0 0
/dev/md0 /raid ext3 rw,mand,nodev,noexec,relatime,user_xattr,acl,data=ordered 0 0
/dev/mapper/rockhopper-tempstore /raid/video/newdisk ext3 rw,relatime,errors=continue,user_xattr,acl,data=ordered 0 0
/dev/sdg2 /raid/video/newdisk2 ext3 rw,relatime,errors=continue,user_xattr,acl,data=ordered 0 0
/dev/md0 /home ext3 rw,mand,nodev,noexec,relatime,user_xattr,acl,data=ordered 0 0
/dev/md0 /export ext3 rw,mand,nodev,noexec,relatime,user_xattr,acl,data=ordered 0 0
/dev/md0 /data ext3 rw,mand,nodev,noexec,relatime,user_xattr,acl,data=ordered 0 0
/dev/md0 /tmpsystem ext3 rw,mand,nodev,noexec,relatime,user_xattr,acl,data=ordered 0 0
/dev/md0 /var/lib/mysql ext3 rw,mand,nodev,noexec,relatime,user_xattr,acl,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
(hd2)	/dev/sdc
(hd3)	/dev/sdd
(hd4)	/dev/sde
(hd5)	/dev/sdf
(hd6)	/dev/sdg
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
insmod lvm
set root=(rockhopper-usr)
search --no-floppy --fs-uuid --set bc22816d-6d42-4846-a5a1-b554a72a4409
if loadfont /share/grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output.gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,1)
search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
insmod png
if background_image /grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-1-amd64" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
	linux	/vmlinuz-2.6.30-1-amd64 root=/dev/mapper/rockhopper-root ro  quiet
	initrd	/initrd.img-2.6.30-1-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-amd64 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
	linux	/vmlinuz-2.6.30-1-amd64 root=/dev/mapper/rockhopper-root ro single 
	initrd	/initrd.img-2.6.30-1-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.29-2-amd64" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
	linux	/vmlinuz-2.6.29-2-amd64 root=/dev/mapper/rockhopper-root ro  quiet
	initrd	/initrd.img-2.6.29-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.29-2-amd64 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
	linux	/vmlinuz-2.6.29-2-amd64 root=/dev/mapper/rockhopper-root ro single 
	initrd	/initrd.img-2.6.29-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-amd64" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
	linux	/vmlinuz-2.6.26-2-amd64 root=/dev/mapper/rockhopper-root ro  quiet
	initrd	/initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-amd64 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
	linux	/vmlinuz-2.6.26-2-amd64 root=/dev/mapper/rockhopper-root ro single 
	initrd	/initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.26-1-amd64" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
	linux	/vmlinuz-2.6.26-1-amd64 root=/dev/mapper/rockhopper-root ro  quiet
	initrd	/initrd.img-2.6.26-1-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.26-1-amd64 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 1d4295e3-42cf-4d8a-88c5-f5fbbf815b3b
	linux	/vmlinuz-2.6.26-1-amd64 root=/dev/mapper/rockhopper-root ro single 
	initrd	/initrd.img-2.6.26-1-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86 ###
menuentry "Memory test (memtest86)" {
	linux	/memtest86.bin
}
### END /etc/grub.d/20_memtest86 ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	linux	/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  cdebconf [debconf-2.0]      0.145        Debian Configuration Management Sy
ii  debconf [debconf-2.0]       1.5.27       Debian configuration management sy
ii  grub-common                 1.97~beta3-1 GRand Unified Bootloader, version 
hi  libc6                       2.9-27       GNU C Library: Shared libraries
ii  ucf                         3.0022       Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.5      common files for the Debian Deskto
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub-pc/linux_cmdline:
* grub2/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
* grub-pc/install_devices: /dev/sda





More information about the Pkg-grub-devel mailing list