Your message dated Tue, 06 Oct 2009 11:16:38 +0200
with message-id <4acb0af6.50...@debian.org>
and subject line Re: Bug#549898: hangs while setting up grub-pc
has caused the Debian Bug report #549898,
regarding hangs while setting up grub-pc
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
549898: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549898
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: grub-pc
Version: 1.97~beta4-1
Severity: grave
Justification: renders package unusable

Installing grub-pc on my Dell PowerEdge 2950 hangs during postinst:
  Setting up grub-common (1.97~beta4-1) ...
  Installing new version of config file /etc/grub.d/30_os-prober ...
  Setting up grub-pc (1.97~beta4-1) ...
  (need ctrl-c)

I tried with 1.97~beta3-1 and 1.97~beta4-1, same result.
Two (similar) machines do this. I have 4 other older poweredge
2950 where grub-pc installs fine. Not sure what hardware difference
could explain this, the software installation is pretty much the same.

After trying to fix this a couple time and having to abort with ctrl-c,
I see this in ps:
0 D root     14935     1  0  80   0 -   944 ?      07:26 ?        00:00:00 
grub-mkdevicemap --no-floppy
0 D root     15311     1  0  80   0 -   944 ?      07:33 ?        00:00:00 
grub-mkdevicemap --no-floppy
0 D root     15498     1  0  80   0 -   944 ?      07:58 ?        00:00:00 
grub-mkdevicemap --no-floppy
0 D root     15853     1  0  80   0 -   944 ?      07:58 ?        00:00:00 
grub-mkdevicemap --device-map=/tmp/device.map.pAT8GlfT --no-floppy
0 D root     15893     1  0  80   0 -   944 ?      08:01 ?        00:00:00 
grub-mkdevicemap --no-floppy
So it looks like grub-mkdevicemap hangs here.

These processes are not killable.
I thought of rebooting the machine to cleanup these processes
but I don't konw what the partial installation actually broke
from my old grub1 install.
device.map was left empty. I restored it.
Which other files should I check before I can reboot?

thanks,
Brice


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda3 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda6 /mnt/scratch ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)   /dev/sda

*********************** END /boot/grub/device.map

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

Kernel: Linux 2.6.30-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, lc_ctype=fr...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]       1.5.27       Debian configuration management sy
ii  grub-common                 1.97~beta4-1 GRand Unified Bootloader, version 
ii  libc6                       2.9-25       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:
* grub2/linux_cmdline: console=ttyS1,57600 console=tty0
* grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: true
  grub-pc/install_devices:
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:



--- End Message ---
--- Begin Message ---
Felix Zielcke wrote:
> Uhm this is very strange for me.
> There should be ever only 1 process of it. It doestn't create any
> threads or subprocesses and we don't run it with `&' in the background
> of the shell.
>   

There are multiple of them because it failed on install, then again on
apt-get -f install, then again on dpkg --configure -a, ... I guess one
process hung during each failure.

> It would be nice if you could run `strace grub-mkdevicemap --no-floppy'
> before you reboot.
> Probable it hangs when reading from a device.
> Though only the first 512 bytes get read from devices which look like a
> hard disk and not a cd or floppy.
> Maybe a kernel/glibc bug that open() doestn't return ENOMEDIUM for your
> cd drive.
>   

The output is actually very simple:

read(3, "\257\2E`\323[\346+"..., 8)     = 8
close(3)                                = 0
mprotect(0x7fdf767c3000, 16384, PROT_READ) = 0
mprotect(0x7fdf769e9000, 4096, PROT_READ) = 0
munmap(0x7fdf769d7000, 57412)           = 0
brk(0)                                  = 0xdd5000
brk(0xdf6000)                           = 0xdf6000
open("/boot/grub/device.map", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
stat("/dev/.devfsd", 0x7fffd7d52420)    = -1 ENOENT (No such file or
directory)
open("/dev/hda", O_RDONLY

/dev/hda is the cdrom, and it seems it got some problems:
joe0:~# dmesg | grep -C 3 hda
[    3.642980] usb 1-5: configuration #1 chosen from 1 choice
[    3.654146] hub 1-5:1.0: USB hub found
[    3.661751] hub 1-5:1.0: 4 ports detected
[    3.988194] hda: TEAC DVD-ROM DV28EV, ATAPI CD/DVD-ROM drive
[    4.668035] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[    4.671710] hda: UDMA/33 mode selected
[    4.682764] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[    4.699842] libata version 3.00 loaded.
[    4.712014] uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 21 (level, low)
-> IRQ 21
--
[    4.980299] hub 3-0:1.0: 2 ports detected
[    4.989482] uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 21 (level, low)
-> IRQ 21
[    4.991756] ide-cd driver 5.00
[    5.009948] ide-cd: hda: ATAPI<7>uhci_hcd 0000:00:1d.2: setting
latency timer to 64
[    5.009961] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[    5.010016] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned
bus number 4
[    5.010044] uhci_hcd 0000:00:1d.2: irq 21, io base 0x0000cca0
--
[196854.273968] sr_ping[11798]: segfault at 7fa182928c70 ip
000000000044b0e7 sp 0000001ffdfffbb0 error 4 in sr_ping[400000+73000]
[437870.056506] eth2: no IPv6 routers present
[508538.956006] cmd 0x3 timed out
[508538.960003] hda: irq timeout: status=0xd0 { Busy }
[508538.960003] hda: possibly failed opcode: 0xa0
[508682.204023] INFO: task hald-addon-stor:2951 blocked for more than
120 seconds.
[508682.218654] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[508682.240709] hald-addon-st D ffff8800280820c0     0  2951   2889

I just remove /dev/hda manually and the package successfully configures now.
Reboot went fine. Now that the cdrom isn't screwed up anymore in the
kernel, I can reinstall grub-pc without problem.


Looks like there's no bug here (except maybe in my cdrom hardware and/or
kernel cdrom driver).
Thanks for the hint!
Brice



--- End Message ---

Reply via email to