grub-devel
[Top][All Lists]
Advanced

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

grub-setup Segmentation fault


From: Magnus Granberg
Subject: grub-setup Segmentation fault
Date: Sat, 4 Aug 2007 04:37:03 +0200

Hi
I'am geting segmentation fault wen i try to run grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map /dev/md0
on a Raid5 -> Lvm setup.
Grub with the latest cvs on a gentoo 2007.0 amd64 multilib system.
Raid5 setup 3x250Gb
mdadm -D /dev/md0
/dev/md0:
       Version : 01.00.03
 Creation Time : Thu Aug  2 16:35:06 2007
    Raid Level : raid5
    Array Size : 19534848 (18.63 GiB 20.00 GB)
 Used Dev Size : 19534848 (9.31 GiB 10.00 GB)
  Raid Devices : 3
 Total Devices : 3
Preferred Minor : 0
   Persistence : Superblock is persistent

   Update Time : Sat Aug  4 04:11:19 2007
         State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
 Spare Devices : 0

        Layout : left-symmetric
    Chunk Size : 64K

          Name : 0
          UUID : 32287a37:5051c044:750bc197:0802540a
        Events : 2

   Number   Major   Minor   RaidDevice State
      0       8        1        0      active sync   /dev/sda1
      1       8       17        1      active sync   /dev/sdb1
      3       8       33        2      active sync   /dev/sdc1
Device.map
livecd ~ # cat /boot/grub/device.map
(hd0)   /dev/md0
(hd1)   /dev/md0
(hd2)   /dev/md0
(hd3)   /dev/sdd

livecd ~ # gdb --args grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map /dev/md0
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /sbin/grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map /dev/md0

Program received signal SIGSEGV, Segmentation fault.
grub_device_open (name=0x0) at kern/device.c:38
38            if (*name == '\0')
(gdb) bt
#0  grub_device_open (name=0x0) at kern/device.c:38
#1 0x08049385 in setup (prefix=0x80670b0 "(md0)(vg-boot)/grub", dir=0x8067008 "/boot/grub", boot_file=<value optimized out>, core_file=0x805cb2a "core.img", root=0x8067050 "vg-boot", dest=0x0, must_embed=1)
   at util/i386/pc/grub-setup.c:223
#2  0x0804a0bc in main (argc=Cannot access memory at address 0xb
) at util/i386/pc/grub-setup.c:733
(gdb)

for trace lock in the logfile

/Magnus

Attachment: strace grub-setup.log
Description: Binary data


reply via email to

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