Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time
tag 624263 fixed-upstream thanks On 29.07.2011 19:06, Erik Martin-Dorel wrote: Package: grub-pc Version: 1.99-9 Severity: serious FYI, I can reproduce this bug on my machine under Debian unstable. To be more precise, aptitude freezes while configuring grub-pc 1.99-9, because `/var/lib/dpkg/info/grub-pc.postinst` launches `grub-mkdevicemap -m -` that becomes a zombie (to borrow a term used in https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/518026). Best regards, Erik -- Package-specific info: #part type=text/plain disposition=attachment description=Bug script output *** BEGIN /proc/mounts /dev/disk/by-uuid/8e6113be-e650-4149-8088-44b0bdd1d2dc / ext3 rw,relatime,errors=remount-ro,commit=5,barrier=0,data=ordered 0 0 /dev/sda6 /home ext3 rw,relatime,errors=continue,commit=5,barrier=0,data=ordered 0 0 /dev/sda2 /windows vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,utf8,errors=remount-ro 0 0 *** END /proc/mounts *** BEGIN /boot/grub/device.map (hd0)/dev/disk/by-id/ata-ST31000528AS_9VP34NJM *** END /boot/grub/device.map *** BEGIN /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default=0 if [ ${prev_saved_entry} ]; then set saved_entry=${prev_saved_entry} save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z ${boot_once} ]; then saved_entry=${chosen} save_env saved_entry fi } function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc set locale_dir=($root)/boot/grub/locale set lang=fr_FR insmod gettext fi terminal_output gfxterm set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc insmod png if background_image /usr/share/images/desktop-base/spacefun-grub.png; then set color_normal=light-gray/black set color_highlight=white/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, avec Linux 3.0.0-1-amd64' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc echo'Chargement de Linux 3.0.0-1-amd64 ...' linux/boot/vmlinuz-3.0.0-1-amd64 root=UUID=8e6113be-e650-4149-8088-44b0bdd1d2dc ro quiet echo'Chargement du disque mémoire initial ...' initrd/boot/initrd.img-3.0.0-1-amd64 } menuentry 'Debian GNU/Linux, avec Linux 3.0.0-1-amd64 (mode de dépannage)' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc echo'Chargement de Linux 3.0.0-1-amd64 ...' linux/boot/vmlinuz-3.0.0-1-amd64 root=UUID=8e6113be-e650-4149-8088-44b0bdd1d2dc ro single echo'Chargement du disque mémoire initial ...' initrd/boot/initrd.img-3.0.0-1-amd64 } menuentry 'Debian GNU/Linux, avec Linux 2.6.39-2-amd64' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc echo'Chargement de Linux 2.6.39-2-amd64 ...' linux/boot/vmlinuz-2.6.39-2-amd64 root=UUID=8e6113be-e650-4149-8088-44b0bdd1d2dc ro quiet echo'Chargement du disque mémoire initial ...' initrd/boot/initrd.img-2.6.39-2-amd64 } menuentry 'Debian GNU/Linux, avec Linux 2.6.39-2-amd64 (mode de dépannage)' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc echo'Chargement de Linux 2.6.39-2-amd64 ...' linux/boot/vmlinuz-2.6.39-2-amd64 root=UUID=8e6113be-e650-4149-8088-44b0bdd1d2dc ro single echo'Chargement du disque mémoire initial
Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time
On Fri, Aug 19, 2011 at 05:18:41PM -0500, Jonathan Nieder wrote: Hi Yann, Yann Dirson wrote: Got it again, when upgrading to 1.99-9, running under a 2.6.38.4 kernel. kern.log reads the following, maybe it will give more ideas about what's going on ? Concurency issue in kernel space ? Yeah, looks like it. Next time you get a chance in this state, could you try something like the following? echo d /proc/sysrq-trigger; # list all locks held # or: echo w /proc/sysrq-trigger; # list all blocked tasks Also, is it reproducible (e.g., with dpkg-reconfigure grub-pc)? If so, trying a more recent kernel to compare results would be interesting, too. Unfortunately, not completely. OTOH, I get more reproducible problems when attempting to use the PATA cdrom. Trace left unsnipped for the kernel team's benefit. Well, that kernel does not come from the package, it's a vanilla one with some changes - the VIA VT6415 chipset on my motherboard prevents the system to boot when a HD is connected to it, with the libata driver, so I'm using the old one. Maybe there was a regression in via82cxxx I did not notice before. Will dig. Jonathan INFO: task grub-mkdevicema:24535 blocked for more than 120 seconds. echo 0 /proc/sys/kernel/hung_task_timeout_secs disables this message. grub-mkdevicema D 0001034e66cc 0 24535 24534 0x 88008e95db28 0082 8800 000134c0 000134c0 000134c0 000134c0 880001ad5100 000134c0 88008e95dfd8 88008e95dfd8 000134c0 Call Trace: [8132e6ff] __mutex_lock_common.clone.5+0x131/0x198 [811928a0] ? exact_match+0x0/0xa [8132e774] __mutex_lock_slowpath+0xe/0x10 [8132e5b4] mutex_lock+0x1e/0x38 [8112764c] __blkdev_get+0x71/0x339 [81127ba3] ? blkdev_open+0x0/0x6b [81127ac8] blkdev_get+0x1b4/0x28f [81127ba3] ? blkdev_open+0x0/0x6b [81127c0a] blkdev_open+0x67/0x6b [810fddae] __dentry_open+0x15e/0x278 [8132f14c] ? _raw_spin_lock+0x9/0xb [81115b82] ? mntget+0x1b/0x21 [810feb2c] nameidata_to_filp+0x5b/0x62 [8110a68d] finish_open+0x9c/0x15a [8110982a] ? do_path_lookup+0xe8/0x113 [8110abb4] do_filp_open+0x184/0x696 [810dd1a1] ? handle_mm_fault+0x131/0x146 [811a5f39] ? might_fault+0x9/0xb [811a6025] ? __strncpy_from_user+0x1a/0x49 [8111488a] ? alloc_fd+0x6f/0x11a [810feb8e] do_sys_open+0x5b/0xed [810fec3b] sys_open+0x1b/0x1d [81009992] system_call_fastpath+0x16/0x1b -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time
Hi Yann, Yann Dirson wrote: Got it again, when upgrading to 1.99-9, running under a 2.6.38.4 kernel. kern.log reads the following, maybe it will give more ideas about what's going on ? Concurency issue in kernel space ? Yeah, looks like it. Next time you get a chance in this state, could you try something like the following? echo d /proc/sysrq-trigger; # list all locks held # or: echo w /proc/sysrq-trigger; # list all blocked tasks Also, is it reproducible (e.g., with dpkg-reconfigure grub-pc)? If so, trying a more recent kernel to compare results would be interesting, too. Trace left unsnipped for the kernel team's benefit. Jonathan INFO: task grub-mkdevicema:24535 blocked for more than 120 seconds. echo 0 /proc/sys/kernel/hung_task_timeout_secs disables this message. grub-mkdevicema D 0001034e66cc 0 24535 24534 0x 88008e95db28 0082 8800 000134c0 000134c0 000134c0 000134c0 880001ad5100 000134c0 88008e95dfd8 88008e95dfd8 000134c0 Call Trace: [8132e6ff] __mutex_lock_common.clone.5+0x131/0x198 [811928a0] ? exact_match+0x0/0xa [8132e774] __mutex_lock_slowpath+0xe/0x10 [8132e5b4] mutex_lock+0x1e/0x38 [8112764c] __blkdev_get+0x71/0x339 [81127ba3] ? blkdev_open+0x0/0x6b [81127ac8] blkdev_get+0x1b4/0x28f [81127ba3] ? blkdev_open+0x0/0x6b [81127c0a] blkdev_open+0x67/0x6b [810fddae] __dentry_open+0x15e/0x278 [8132f14c] ? _raw_spin_lock+0x9/0xb [81115b82] ? mntget+0x1b/0x21 [810feb2c] nameidata_to_filp+0x5b/0x62 [8110a68d] finish_open+0x9c/0x15a [8110982a] ? do_path_lookup+0xe8/0x113 [8110abb4] do_filp_open+0x184/0x696 [810dd1a1] ? handle_mm_fault+0x131/0x146 [811a5f39] ? might_fault+0x9/0xb [811a6025] ? __strncpy_from_user+0x1a/0x49 [8111488a] ? alloc_fd+0x6f/0x11a [810feb8e] do_sys_open+0x5b/0xed [810fec3b] sys_open+0x1b/0x1d [81009992] system_call_fastpath+0x16/0x1b -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time
Got it again, when upgrading to 1.99-9, running under a 2.6.38.4 kernel. kern.log reads the following, maybe it will give more ideas about what's going on ? Concurency issue in kernel space ? Aug 11 22:26:59 home kernel: [222362.080164] INFO: task grub-mkdevicema:24535 blocked for more than 120 seconds. Aug 11 22:26:59 home kernel: [222362.080176] echo 0 /proc/sys/kernel/hung_task_timeout_secs disables this message. Aug 11 22:26:59 home kernel: [222362.080183] grub-mkdevicema D 0001034e66cc 0 24535 24534 0x Aug 11 22:26:59 home kernel: [222362.080196] 88008e95db28 0082 8800 000134c0 Aug 11 22:26:59 home kernel: [222362.080206] 000134c0 000134c0 000134c0 880001ad5100 Aug 11 22:26:59 home kernel: [222362.080215] 000134c0 88008e95dfd8 88008e95dfd8 000134c0 Aug 11 22:26:59 home kernel: [222362.080224] Call Trace: Aug 11 22:26:59 home kernel: [222362.080241] [8132e6ff] __mutex_lock_common.clone.5+0x131/0x198 Aug 11 22:26:59 home kernel: [222362.080254] [811928a0] ? exact_match+0x0/0xa Aug 11 22:26:59 home kernel: [222362.080263] [8132e774] __mutex_lock_slowpath+0xe/0x10 Aug 11 22:26:59 home kernel: [222362.080271] [8132e5b4] mutex_lock+0x1e/0x38 Aug 11 22:26:59 home kernel: [222362.080282] [8112764c] __blkdev_get+0x71/0x339 Aug 11 22:26:59 home kernel: [222362.080291] [81127ba3] ? blkdev_open+0x0/0x6b Aug 11 22:26:59 home kernel: [222362.080300] [81127ac8] blkdev_get+0x1b4/0x28f Aug 11 22:26:59 home kernel: [222362.080309] [81127ba3] ? blkdev_open+0x0/0x6b Aug 11 22:26:59 home kernel: [222362.080317] [81127c0a] blkdev_open+0x67/0x6b Aug 11 22:26:59 home kernel: [222362.080325] [810fddae] __dentry_open+0x15e/0x278 Aug 11 22:26:59 home kernel: [222362.080334] [8132f14c] ? _raw_spin_lock+0x9/0xb Aug 11 22:26:59 home kernel: [222362.080343] [81115b82] ? mntget+0x1b/0x21 Aug 11 22:26:59 home kernel: [222362.080351] [810feb2c] nameidata_to_filp+0x5b/0x62 Aug 11 22:26:59 home kernel: [222362.080360] [8110a68d] finish_open+0x9c/0x15a Aug 11 22:26:59 home kernel: [222362.080368] [8110982a] ? do_path_lookup+0xe8/0x113 Aug 11 22:26:59 home kernel: [222362.080376] [8110abb4] do_filp_open+0x184/0x696 Aug 11 22:26:59 home kernel: [222362.080387] [810dd1a1] ? handle_mm_fault+0x131/0x146 Aug 11 22:26:59 home kernel: [222362.080396] [811a5f39] ? might_fault+0x9/0xb Aug 11 22:26:59 home kernel: [222362.080404] [811a6025] ? __strncpy_from_user+0x1a/0x49 Aug 11 22:26:59 home kernel: [222362.080413] [8111488a] ? alloc_fd+0x6f/0x11a Aug 11 22:26:59 home kernel: [222362.080421] [810feb8e] do_sys_open+0x5b/0xed Aug 11 22:26:59 home kernel: [222362.080428] [810fec3b] sys_open+0x1b/0x1d Aug 11 22:26:59 home kernel: [222362.080437] [81009992] system_call_fastpath+0x16/0x1b -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time
Package: grub-pc Version: 1.99-9 Severity: serious FYI, I can reproduce this bug on my machine under Debian unstable. To be more precise, aptitude freezes while configuring grub-pc 1.99-9, because `/var/lib/dpkg/info/grub-pc.postinst` launches `grub-mkdevicemap -m -` that becomes a zombie (to borrow a term used in https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/518026). Best regards, Erik -- Package-specific info: #part type=text/plain disposition=attachment description=Bug script output *** BEGIN /proc/mounts /dev/disk/by-uuid/8e6113be-e650-4149-8088-44b0bdd1d2dc / ext3 rw,relatime,errors=remount-ro,commit=5,barrier=0,data=ordered 0 0 /dev/sda6 /home ext3 rw,relatime,errors=continue,commit=5,barrier=0,data=ordered 0 0 /dev/sda2 /windows vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,utf8,errors=remount-ro 0 0 *** END /proc/mounts *** BEGIN /boot/grub/device.map (hd0) /dev/disk/by-id/ata-ST31000528AS_9VP34NJM *** END /boot/grub/device.map *** BEGIN /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default=0 if [ ${prev_saved_entry} ]; then set saved_entry=${prev_saved_entry} save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z ${boot_once} ]; then saved_entry=${chosen} save_env saved_entry fi } function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc set locale_dir=($root)/boot/grub/locale set lang=fr_FR insmod gettext fi terminal_output gfxterm set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc insmod png if background_image /usr/share/images/desktop-base/spacefun-grub.png; then set color_normal=light-gray/black set color_highlight=white/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, avec Linux 3.0.0-1-amd64' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc echo'Chargement de Linux 3.0.0-1-amd64 ...' linux /boot/vmlinuz-3.0.0-1-amd64 root=UUID=8e6113be-e650-4149-8088-44b0bdd1d2dc ro quiet echo'Chargement du disque mémoire initial ...' initrd /boot/initrd.img-3.0.0-1-amd64 } menuentry 'Debian GNU/Linux, avec Linux 3.0.0-1-amd64 (mode de dépannage)' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc echo'Chargement de Linux 3.0.0-1-amd64 ...' linux /boot/vmlinuz-3.0.0-1-amd64 root=UUID=8e6113be-e650-4149-8088-44b0bdd1d2dc ro single echo'Chargement du disque mémoire initial ...' initrd /boot/initrd.img-3.0.0-1-amd64 } menuentry 'Debian GNU/Linux, avec Linux 2.6.39-2-amd64' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc echo'Chargement de Linux 2.6.39-2-amd64 ...' linux /boot/vmlinuz-2.6.39-2-amd64 root=UUID=8e6113be-e650-4149-8088-44b0bdd1d2dc ro quiet echo'Chargement du disque mémoire initial ...' initrd /boot/initrd.img-2.6.39-2-amd64 } menuentry 'Debian GNU/Linux, avec Linux 2.6.39-2-amd64 (mode de dépannage)' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 8e6113be-e650-4149-8088-44b0bdd1d2dc echo'Chargement de Linux 2.6.39-2-amd64 ...' linux /boot/vmlinuz-2.6.39-2-amd64 root=UUID=8e6113be-e650-4149-8088-44b0bdd1d2dc ro single echo'Chargement
Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time
On Wed, Apr 27, 2011 at 12:52:44AM +0200, Yann Dirson wrote: [UPGRADE] grub-pc 1.98+20100804-14 - 1.99~rc1-13 When upgrading, aptitude gets stuck with: Setting up grub-pc (1.99~rc1-13) ... Installing new version of config file /etc/grub.d/05_debian_theme ... Replacing config file /etc/default/grub with new version $ pstree -alp 6275 grub-pc.postins,6275 /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14 ââgrep,6277 -v ^(fd[0-9]\\+) ââgrub-mkdevicema,6276 -m - $ ps l 6275 6277 6276 F UID PID PPID PRI NIVSZ RSS WCHAN STAT TTYTIME COMMAND 1 0 6275 6180 20 0 10884 752 wait S+ pts/5 0:00 /bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14 0 0 6276 6275 20 0 18288 928 blkdev D+ pts/5 0:00 grub-mkdevicemap -m - 0 0 6277 6275 20 0 7592 572 pipe_w S+ pts/5 0:00 grep -v ^(fd[0-9]\+) $ ps -o pid,wchan=WIDE-WCHAN-COLUMN -o comm 6276 PID WIDE-WCHAN-COLUMN COMMAND 6276 blkdev_getgrub-mkdevicema Nothing suspect from dmesg - any idea how to quickly get more precise info ? Not sure I can get out of this to retry except by rebooting, which would be quite a shame... It may be difficult retrospectively. Can you attach strace to find out what system call it's stuck in, and attach gdb (you may need to build grub2 locally for symbols) to get a backtrace? -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time
On Wed, Apr 27, 2011 at 09:27:25AM +0100, Colin Watson wrote: On Wed, Apr 27, 2011 at 12:52:44AM +0200, Yann Dirson wrote: [UPGRADE] grub-pc 1.98+20100804-14 - 1.99~rc1-13 When upgrading, aptitude gets stuck with: Setting up grub-pc (1.99~rc1-13) ... Installing new version of config file /etc/grub.d/05_debian_theme ... Replacing config file /etc/default/grub with new version $ pstree -alp 6275 grub-pc.postins,6275 /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14 ââgrep,6277 -v ^(fd[0-9]\\+) ââgrub-mkdevicema,6276 -m - $ ps l 6275 6277 6276 F UID PID PPID PRI NIVSZ RSS WCHAN STAT TTYTIME COMMAND 1 0 6275 6180 20 0 10884 752 wait S+ pts/5 0:00 /bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14 0 0 6276 6275 20 0 18288 928 blkdev D+ pts/5 0:00 grub-mkdevicemap -m - 0 0 6277 6275 20 0 7592 572 pipe_w S+ pts/5 0:00 grep -v ^(fd[0-9]\+) $ ps -o pid,wchan=WIDE-WCHAN-COLUMN -o comm 6276 PID WIDE-WCHAN-COLUMN COMMAND 6276 blkdev_getgrub-mkdevicema Nothing suspect from dmesg - any idea how to quickly get more precise info ? Not sure I can get out of this to retry except by rebooting, which would be quite a shame... It may be difficult retrospectively. Can you attach strace to find out what system call it's stuck in, and attach gdb (you may need to build grub2 locally for symbols) to get a backtrace? Unfortunately, neither can complete attaching to the process, and I even have to use kill -9 to get rid of strace and gdb afterwards. Looks like I'd have to reboot and add the strace call to the postinst before retrying ? Bad bad bad :} Maybe we can get some info from the kernel about the syscall details. I have a couple of debugging features activated in this kernel (kgdb notably), I could try to peek via this channel. Other ideas ? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time
Package: grub-pc Version: 1.99~rc1-13 Severity: serious [UPGRADE] grub-pc 1.98+20100804-14 - 1.99~rc1-13 When upgrading, aptitude gets stuck with: Setting up grub-pc (1.99~rc1-13) ... Installing new version of config file /etc/grub.d/05_debian_theme ... Replacing config file /etc/default/grub with new version $ pstree -alp 6275 grub-pc.postins,6275 /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14 ââgrep,6277 -v ^(fd[0-9]\\+) ââgrub-mkdevicema,6276 -m - $ ps l 6275 6277 6276 F UID PID PPID PRI NIVSZ RSS WCHAN STAT TTYTIME COMMAND 1 0 6275 6180 20 0 10884 752 wait S+ pts/5 0:00 /bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14 0 0 6276 6275 20 0 18288 928 blkdev D+ pts/5 0:00 grub-mkdevicemap -m - 0 0 6277 6275 20 0 7592 572 pipe_w S+ pts/5 0:00 grep -v ^(fd[0-9]\+) $ ps -o pid,wchan=WIDE-WCHAN-COLUMN -o comm 6276 PID WIDE-WCHAN-COLUMN COMMAND 6276 blkdev_getgrub-mkdevicema Nothing suspect from dmesg - any idea how to quickly get more precise info ? Not sure I can get out of this to retry except by rebooting, which would be quite a shame... -- Package-specific info: *** BEGIN /proc/mounts /dev/mapper/home-root / ext3 rw,relatime,errors=remount-ro,barrier=0,data=ordered 0 0 /dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0 /dev/mapper/home-home /home ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0 /dev/mapper/home-tmp /tmp ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0 /dev/mapper/home-usr /usr ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0 /dev/mapper/home-var /var ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0 /dev/mapper/home-work /work ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0 *** END /proc/mounts *** BEGIN /boot/grub/device.map (hd0) /dev/disk/by-id/ata-ST3500412AS_5VV1SRD9 *** END /boot/grub/device.map *** BEGIN /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default=0 if [ ${prev_saved_entry} ]; then set saved_entry=${prev_saved_entry} save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z ${boot_once} ]; then saved_entry=${chosen} save_env saved_entry fi } function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod lvm insmod part_msdos insmod ext2 set root='(home-usr)' search --no-floppy --fs-uuid --set 0224f60f-7f2b-4de0-863a-f7e8f2fbfeee if loadfont /share/grub/unicode.pf2 ; then set gfxmode=640x480 load_video insmod gfxterm fi terminal_output gfxterm set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod lvm insmod part_msdos insmod ext2 set root='(home-usr)' search --no-floppy --fs-uuid --set 0224f60f-7f2b-4de0-863a-f7e8f2fbfeee insmod png if background_image /share/images/desktop-base/spacefun-grub.png; then set color_normal=light-gray/black set color_highlight=white/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, with Linux 2.6.37.2' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906 echo'Loading Linux 2.6.37.2 ...' linux /vmlinuz-2.6.37.2 root=/dev/mapper/home-root ro quiet echo'Loading initial ramdisk ...' initrd /initrd.img-2.6.37.2 } menuentry 'Debian GNU/Linux, with Linux 2.6.37.2 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906 echo'Loading Linux 2.6.37.2 ...' linux /vmlinuz-2.6.37.2 root=/dev/mapper/home-root ro single echo'Loading initial ramdisk ...' initrd /initrd.img-2.6.37.2 } menuentry 'Debian GNU/Linux, with Linux 2.6.37ata' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906 echo'Loading Linux 2.6.37ata ...' linux /vmlinuz-2.6.37ata root=/dev/mapper/home-root ro quiet echo'Loading initial ramdisk ...' initrd /initrd.img-2.6.37ata } menuentry 'Debian GNU/Linux, with Linux 2.6.37ata