Bug#474343: grub: update-grub ends with exit code 139

Junichi Uekawa dancer at netfort.gr.jp
Mon Apr 7 23:00:49 UTC 2008


Hi,

> On Sun, Apr 06, 2008 at 11:33:40AM +0900, Junichi Uekawa wrote:
> > (gdb) run -t device /
> > Starting program: /usr/sbin/grub-probe -t device /
> > 
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x000000000041f66c in grub_lvm_scan_device (name=0x6350c0 "hd0,4") at /tmp/grub-common/grub2-1.96+20080228/disk/lvm.c:385
> > 385		  while (grub_isspace (*p))
> > (gdb) bt
> > #0  0x000000000041f66c in grub_lvm_scan_device (name=0x6350c0 "hd0,4") at /tmp/grub-common/grub2-1.96+20080228/disk/lvm.c:385
> > #1  0x00000000004044a1 in iterate_partition (disk=0x635010, partition=0x7fff0d0c1560) at /tmp/grub-common/grub2-1.96+20080228/kern/device.c:132
> > #2  0x000000000041c551 in pc_partition_map_iterate (disk=0x635010, hook=0x7fff0d0c171f) at /tmp/grub-common/grub2-1.96+20080228/partmap/pc.c:153
> > #3  0x000000000040808f in grub_partition_iterate (hook=0x7fff0d0c171f) at /tmp/grub-common/grub2-1.96+20080228/kern/partition.c:126
> > #4  0x0000000000404535 in iterate_disk (disk_name=0x7fff0d0c1670 "hd0") at /tmp/grub-common/grub2-1.96+20080228/kern/device.c:101
> > #5  0x0000000000401e37 in call_hook (hook=0x7fff0d0c1708, drive=128) at /tmp/grub-common/grub2-1.96+20080228/util/biosdisk.c:131
> > #6  0x0000000000401e6c in grub_util_biosdisk_iterate (hook=0x7fff0d0c1708) at /tmp/grub-common/grub2-1.96+20080228/util/biosdisk.c:140
> > #7  0x0000000000404985 in grub_disk_dev_iterate (hook=0x7fff0d0c1708) at /tmp/grub-common/grub2-1.96+20080228/kern/disk.c:205
> > #8  0x00000000004043f4 in grub_device_iterate (hook=0x41f080 <grub_lvm_scan_device>) at /tmp/grub-common/grub2-1.96+20080228/kern/device.c:138
> > #9  0x000000000041faeb in grub_mod_init (mod=0x0) at /tmp/grub-common/grub2-1.96+20080228/disk/lvm.c:511
> > #10 0x000000000041fad3 in grub_lvm_init () at /tmp/grub-common/grub2-1.96+20080228/disk/lvm.c:509
> > #11 0x0000000000420ca0 in grub_init_all () at grub_probe_init.c:44
> > #12 0x0000000000401cc1 in main (argc=4, argv=0x7fff0d0c18c8) at /tmp/grub-common/grub2-1.96+20080228/util/grub-probe.c:355
> 
> Please provide also:
> 
> (gdb) break disk/lvm.c:376
> (gdb) run
> (gdb) print p


[07:27:39]dancer64:grub2-1.96+20080228> sudo gdb grub-probe 
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) break disk/lvm.c:376
No source file named disk/lvm.c.
Make breakpoint pending on future shared library load? (y or [n]) 
(gdb) break /tmp/grub-common/grub2-1.96+20080228/disk/lvm.c:376
Breakpoint 1 at 0x41f63f: file /tmp/grub-common/grub2-1.96+20080228/disk/lvm.c, line 376.
(gdb) run -t device /
Starting program: /usr/sbin/grub-probe -t device /

Breakpoint 1, grub_lvm_scan_device (name=0x6350c0 "hd0,4") at /tmp/grub-common/grub2-1.96+20080228/disk/lvm.c:376
376	      p += 18;
(gdb) print p 
$1 = 0x0
(gdb) 



regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project





More information about the Pkg-grub-devel mailing list