Bug#545460: segfault during update of grub-pc package
Am Dienstag, den 08.09.2009, 10:55 +0200 schrieb Robert Ramiega: Trying patch debian/patches/003_grub_probe_segfault.diff at level 1 ... 0 ... 2 ... failure. make: *** [debian/stamp-patched] Error 1 dpkg-buildpackage: error: debian/rules build gave error exit status 2 Or maybe i should just get sources of 1.97~beta2-2 from repo? Just remove the 003_grub_probe_segfault.diff it is now applied upstream. Alternatetively you can get the correspondending orig.tar.gz here http://ftp.debian.org/debian/pool/main/g/grub2/grub2_1.97~beta2.orig.tar.gz -- Felix Zielcke Proud Debian Maintainer -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#545460: segfault during update of grub-pc package
On Mon, Sep 07, 2009 at 03:27:10PM +0200, Felix Zielcke wrote: It would be good if you could make a debug compile to get a back trace See the Debian wiki. It should be clear even if it's german, if not then please ask: http://wiki.debian.org/de/GRUB2/Anleitung/DebianPaketVonOriginalQuelltext You can remove all blocks except the first one from the packages you don't need from debian/control so it builds faster. Then change the first line of all files in /etc/grub.d from `#! /bin/sh -e' to `#! /bin/sh -ex' and run `bash -x grub-mkconfig' then you should get the exact grub-probe line which segfaults. Then `gdb grub-probe' `r arguments' `bt' (gdb) r --device /dev/mapper/rhenvar-lvol0 --target=abstraction Starting program: /usr/sbin/grub-probe --device /dev/mapper/rhenvar-lvol0 --target=abstraction Program received signal SIGSEGV, Segmentation fault. 0x080490a8 in probe_raid_level (disk=0x0) at /home/work/src/grub2/util/grub-probe.c:94 94if (disk-dev-id != GRUB_DISK_DEVICE_RAID_ID) (gdb) bt #0 0x080490a8 in probe_raid_level (disk=0x0) at /home/work/src/grub2/util/grub-probe.c:94 #1 0x08049293 in probe (path=0x0, device_name=0xbea0 /dev/mapper/rhenvar-lvol0) at /home/work/src/grub2/util/grub-probe.c:167 #2 0x0804982f in main (argc=4, argv=0xbd74) at /home/work/src/grub2/util/grub-probe.c:417 Not so much but I hope it's usefull -- NameLess, the Jedi | Just a friendly Jedi Knight Robert Ramięga | http://nlj.plukwa.net/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#545460: segfault during update of grub-pc package
Package: grub-pc Version: 1.97~beta2-2 Severity: important While attempting to upgrade grub-pc using aptitude I got: Setting up grub-pc (1.97~beta2-2) ... 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/hda Generating grub.cfg ... Segmentation fault dpkg: error processing grub-pc (--configure): subprocess installed post-installation script returned error exit status 139 This is clean install of Debian/SID done a couple of weeks ago with grub-pc chosen as default bootloader. -- Package-specific info: *** BEGIN /proc/mounts /dev/disk/by-uuid/6a5b5200-74b3-4915-a146-e12f533930bb / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0 /dev/mapper/rhenvar-lvol2 /tmp xfs rw,relatime,attr2,noquota 0 0 /dev/mapper/rhenvar-lvol0 /usr xfs rw,relatime,attr2,noquota 0 0 /dev/mapper/rhenvar-lvol1 /var xfs rw,relatime,attr2,noquota 0 0 /dev/mapper/rhenvar-lvol3 /home xfs rw,relatime,attr2,noquota 0 0 *** END /proc/mounts *** BEGIN /boot/grub/device.map (hd0) /dev/hda *** 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 insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 6a5b5200-74b3-4915-a146-e12f533930bb if loadfont /boot/grub/unicode.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 set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry Debian GNU/Linux, Linux 2.6.30-1-686 { insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 6a5b5200-74b3-4915-a146-e12f533930bb linux /boot/vmlinuz-2.6.30-1-686 root=UUID=6a5b5200-74b3-4915-a146-e12f533930bb ro quiet initrd /boot/initrd.img-2.6.30-1-686 } menuentry Debian GNU/Linux, Linux 2.6.30-1-686 (recovery mode) { insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 6a5b5200-74b3-4915-a146-e12f533930bb linux /boot/vmlinuz-2.6.30-1-686 root=UUID=6a5b5200-74b3-4915-a146-e12f533930bb ro single initrd /boot/initrd.img-2.6.30-1-686 } ### END /etc/grub.d/10_linux ### ### 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: i386 (i686) Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages grub-pc depends on: ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy ii grub-common 1.97~beta2-2 GRand Unified Bootloader, version ii libc6 2.9-26 GNU C Library: Shared libraries ii ucf 3.0021 Update Configuration File: preserv grub-pc recommends no packages. Versions of packages grub-pc suggests: pn desktop-base none (no description available) pn genisoimage none (no description available) -- debconf information: grub2/kfreebsd_cmdline: grub-pc/linux_cmdline: fillme * grub2/linux_cmdline: grub-pc/chainload_from_menu.lst: true * grub-pc/install_devices: /dev/hda grub-pc/postrm_purge_boot_grub: false grub2/kfreebsd_cmdline_default: quiet * grub2/linux_cmdline_default: quiet -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#545460: segfault during update of grub-pc package
Am Montag, den 07.09.2009, 12:30 +0200 schrieb Robert Ramiega: Package: grub-pc Version: 1.97~beta2-2 Severity: important While attempting to upgrade grub-pc using aptitude I got: Setting up grub-pc (1.97~beta2-2) ... 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/hda Generating grub.cfg ... Segmentation fault dpkg: error processing grub-pc (--configure): subprocess installed post-installation script returned error exit status 139 This is clean install of Debian/SID done a couple of weeks ago with grub-pc chosen as default bootloader. It would be good if you could make a debug compile to get a back trace See the Debian wiki. It should be clear even if it's german, if not then please ask: http://wiki.debian.org/de/GRUB2/Anleitung/DebianPaketVonOriginalQuelltext You can remove all blocks except the first one from the packages you don't need from debian/control so it builds faster. Then change the first line of all files in /etc/grub.d from `#! /bin/sh -e' to `#! /bin/sh -ex' and run `bash -x grub-mkconfig' then you should get the exact grub-probe line which segfaults. Then `gdb grub-probe' `r arguments' `bt' -- Felix Zielcke Proud Debian Maintainer -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#545460: segfault during update of grub-pc package
On Mon, Sep 07, 2009 at 03:27:10PM +0200, Felix Zielcke wrote: Am Montag, den 07.09.2009, 12:30 +0200 schrieb Robert Ramiega: Package: grub-pc Version: 1.97~beta2-2 Severity: important While attempting to upgrade grub-pc using aptitude I got: Setting up grub-pc (1.97~beta2-2) ... 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/hda Generating grub.cfg ... Segmentation fault dpkg: error processing grub-pc (--configure): subprocess installed post-installation script returned error exit status 139 This is clean install of Debian/SID done a couple of weeks ago with grub-pc chosen as default bootloader. It would be good if you could make a debug compile to get a back trace See the Debian wiki. It should be clear even if it's german, if not then please ask: http://wiki.debian.org/de/GRUB2/Anleitung/DebianPaketVonOriginalQuelltext You can remove all blocks except the first one from the packages you don't need from debian/control so it builds faster. Then change the first line of all files in /etc/grub.d from `#! /bin/sh -e' to `#! /bin/sh -ex' and run `bash -x grub-mkconfig' then you should get the exact grub-probe line which segfaults. the exact grub-probe line that segfaults is this: /usr/sbin/grub-probe --device /dev/mapper/rhenvar-lvol0 --target=abstraction tho what does grub want from my /usr filessytem is beyond me =o)) Then `gdb grub-probe' `r arguments' `bt' This will need some more preparations and I'll do that ASAP. In the meantime I can provide strace output from above (if it's of any help). -- NameLess, the Jedi | Just a friendly Jedi Knight Robert Ramięga | http://nlj.plukwa.net/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#545460: segfault during update of grub-pc package
Am Montag, den 07.09.2009, 15:47 +0200 schrieb Robert Ramiega: the exact grub-probe line that segfaults is this: /usr/sbin/grub-probe --device /dev/mapper/rhenvar-lvol0 --target=abstraction tho what does grub want from my /usr filessytem is beyond me =o)) The fonts needed for gfxterm live in /usr/share/grub. We copy unicode.pf2 to /boot/grub in the postinst in case /usr isn't accessible by GRUB but the ones in /usr are prefered. As a workaround you can set `GRUB_FONT=/boot/grub/unicode.pf2' in /etc/default/grub Then `gdb grub-probe' `r arguments' `bt' This will need some more preparations and I'll do that ASAP. In the meantime I can provide strace output from above (if it's of any help). Thanks, but I think strace wouldn't help. It has problable more something to do with the LVM metadata on your disks. -- Felix Zielcke Proud Debian Maintainer -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#545460: segfault during update of grub-pc package
On Mon, Sep 07, 2009 at 03:54:49PM +0200, Felix Zielcke wrote: Am Montag, den 07.09.2009, 15:47 +0200 schrieb Robert Ramiega: the exact grub-probe line that segfaults is this: /usr/sbin/grub-probe --device /dev/mapper/rhenvar-lvol0 --target=abstraction tho what does grub want from my /usr filessytem is beyond me =o)) The fonts needed for gfxterm live in /usr/share/grub. We copy unicode.pf2 to /boot/grub in the postinst in case /usr isn't accessible by GRUB but the ones in /usr are prefered. As a workaround you can set `GRUB_FONT=/boot/grub/unicode.pf2' in /etc/default/grub This fixed the issue. Then `gdb grub-probe' `r arguments' `bt' This will need some more preparations and I'll do that ASAP. In the meantime I can provide strace output from above (if it's of any help). Thanks, but I think strace wouldn't help. It has problable more something to do with the LVM metadata on your disks. OK. As i wrote earlier I'll try to get you a backtrace later today. -- NameLess, the Jedi | Just a friendly Jedi Knight Robert Ramięga | http://nlj.plukwa.net/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org