[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grub dumps core

From: Harald Dunkel
Subject: grub dumps core
Date: Sun, 20 Feb 2005 12:29:17 +0100
User-agent: Debian Thunderbird 1.0 (X11/20050119)

Hi folks,

I get a core dump if I try to install grub on an USB stick
(amd64). Sample session:

# mount -t reiserfs /dev/sdd1 /mnt
# grub-install --root-directory=/mnt --no-floppy /dev/sdd
/usr/local/sbin/grub-install: line 458: 32514 Segmentation fault      (core dumped) 
$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

Installation finished. No error reported.
This is the contents of the device map /mnt/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/sdd

Please note that the error is not caught by the grub-install
script. The boot sector on /dev/sdd is not changed. If I
try to manually install grub within gdb, then I get

(gdb) run
Starting program: /u/harri/grub-0.96/grub/grub
Probing devices to guess BIOS drives. This may take a long time.

    GNU GRUB  version 0.96  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> root (hd1,0)
root (hd1,0)
 Filesystem type is reiserfs, partition type 0x83
grub> setup (hd1)
setup (hd1)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
 Running "embed /boot/grub/reiserfs_stage1_5 (hd1)"... failed (this is not 
 Running "embed /boot/grub/reiserfs_stage1_5 (hd1,0)"... failed (this is not 

Program received signal SIGSEGV, Segmentation fault.
0x556f9b00 in ?? ()
(gdb) bt
#0  0x556f9b00 in ?? ()
#1  0x0804bd31 in rawread (drive=129, sector=280353, byte_offset=0, 
    buf=0x55792600 "ÉÃU\211å\213M\b\203é\t\203ù\027w\023¸\001") at disk_io.c:268
#2  0x0804bf66 in devread (sector=280353, byte_offset=0, byte_len=512, buf=0x556f9b00 
"¹p\233oUéE\001\226²]U|ÜhU") at disk_io.c:327
#3  0x080520df in reiserfs_read (buf=0x55792600 
"ÉÃU\211å\213M\b\203é\t\203ù\027w\023¸\001", len=512) at fsys_reiserfs.c:965
#4  0x0805a211 in install_func (arg=0x1 <Address 0x1 out of bounds>, flags=1) 
at builtins.c:1965
#5  0x0805c31e in setup_func (arg=0x556f9c90 "/boot/grub/stage1 (hd1) 
/boot/grub/stage2 p /boot/grub/menu.lst ", flags=1)
    at builtins.c:4058
#6  0x0805d564 in enter_cmdline (heap=0x556a8c60 "setup (hd1)", forever=1) at 
#7  0x08056eed in cmain () at stage2.c:1057
#8  0x0804ba56 in init_bios_info () at common.c:336
#9  0x08049391 in doit.0 () at asmstub.c:131
#10 0x08049484 in grub_stage2 () at asmstub.c:188
#11 0x08049146 in main (argc=1, argv=0xffffda44) at main.c:264

This is the current CVS version. I get the same problem with
grub included with Debian Unstable.

Anybody got an idea?



Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]