Bug#315774: segfault when running grub from grub-install, then bad error handling

Tim Freeman Tim Freeman <tim@fungible.com>, 315774@bugs.debian.org
Sat, 25 Jun 2005 14:08:08 -0700


Package: grub
Version: 0.95+cvs20040624-17
Severity: normal

I had the following terminal dialogue:

    lobus:~# grub-install /dev/hda
    Probing devices to guess BIOS drives. This may take a long time.
    /sbin/grub-install: line 516:  1698 Segmentation fault      $grub_shell --batch $no_floppy --device-map=$device_map  >$log_file <<EOF
    root $root_drive
    setup $force_lba --stage2=$grubdir/stage2 --prefix=$grub_prefix $install_drive
    quit
    EOF

    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'.

    (fd0)	/dev/fd0
    (hd0)	/dev/hda
    lobus:~# 

The "No error reported" message contradicts the segmentation fault,
and I'd prefer that my bootloader doesn't segfault in the first place.

I looked in /tmp for a log file and found none.  Based on reading the
grub-install script, I expected a log file matching /tmp/grub*.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.26-treo
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages grub depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand

-- no debconf information