Bug#523763: grub-common: floating point exception in grub-probe

Felix Koop fdp at fkoop.de
Sun Apr 12 12:27:33 UTC 2009


Here is the backtrace:

(gdb) file grub-probe
Reading symbols from /usr/src/grub2-1.96
+20090317/build/grub-common/grub-probe...done.
(gdb) run --target=device /
Starting program: /usr/src/grub2-1.96
+20090317/build/grub-common/grub-probe --target=device /
/dev/mapper/jupisdd-root

Program received signal SIGFPE, Arithmetic exception.
0x0000000000406cf4 in grub_divmod64 (n=11784322, d=0, r=0x7fff240cb6bc)
    at /usr/src/grub2-1.96+20090317/kern/misc.c:609
609		*r = ((grub_uint32_t) n) % d;
(gdb) backtrace
#0  0x0000000000406cf4 in grub_divmod64 (n=11784322, d=0,
r=0x7fff240cb6bc)
    at /usr/src/grub2-1.96+20090317/kern/misc.c:609
#1  0x0000000000420f05 in grub_raid_read (disk=0x241a0f0,
sector=1508393216, 
    size=8, buf=0x24d3eb0 "") at /usr/src/grub2-1.96
+20090317/disk/raid.c:228
#2  0x00000000004055b8 in grub_disk_read (disk=0x241a0f0,
sector=1508393216, 
    offset=0, size=4096, buf=0x249ab20 "`��\033\002\177")
    at /usr/src/grub2-1.96+20090317/kern/disk.c:418
#3  0x000000000042247c in grub_lvm_read (disk=0x2419800,
sector=8388480, 
    size=8, buf=0x249ab20 "`��\033\002\177")
    at /usr/src/grub2-1.96+20090317/disk/lvm.c:187
#4  0x00000000004055b8 in grub_disk_read (disk=0x2419800,
sector=8388480, 
    offset=0, size=4096, buf=0x7fff240cb920 "")
    at /usr/src/grub2-1.96+20090317/kern/disk.c:418
#5  0x0000000000421d2d in grub_mdraid_detect (disk=0x2419800, 
    array=0x7fff240cc970)
    at /usr/src/grub2-1.96+20090317/disk/mdraid_linux.c:174
#6  0x0000000000421ac3 in hook (name=0x241a030 "jupiter-src")
    at /usr/src/grub2-1.96+20090317/disk/raid.c:618
#7  0x0000000000404a80 in iterate_disk (disk_name=0x241a030
"jupiter-src")
    at /usr/src/grub2-1.96+20090317/kern/device.c:90
#8  0x0000000000422073 in grub_lvm_iterate (hook=0x7fff240ccb98)
    at /usr/src/grub2-1.96+20090317/disk/lvm.c:53
#9  0x0000000000404f3a in grub_disk_dev_iterate (hook=0x7fff240ccb98)
    at /usr/src/grub2-1.96+20090317/kern/disk.c:209
#10 0x000000000040499a in grub_device_iterate (hook=0x7fff240ccbf4)
    at /usr/src/grub2-1.96+20090317/kern/device.c:135
#11 0x0000000000421a1c in grub_raid_scan_device (head_only=1)
    at /usr/src/grub2-1.96+20090317/disk/raid.c:641
#12 0x0000000000421c15 in grub_raid_register (raid=0x62cc30)
    at /usr/src/grub2-1.96+20090317/disk/raid.c:675
#13 0x0000000000421fb2 in grub_mod_fini ()
    at /usr/src/grub2-1.96+20090317/disk/mdraid_linux.c:232
#14 0x0000000000421fa2 in grub_mdraid_fini ()
    at /usr/src/grub2-1.96+20090317/disk/mdraid_linux.c:230
#15 0x00000000004232c5 in grub_fini_all () at grub_probe_init.c:75
#16 0x0000000000401df2 in main (argc=3, argv=0x7fff240ccd98)
    at /usr/src/grub2-1.96+20090317/util/grub-probe.c:372



Am Sonntag, den 12.04.2009, 13:51 +0200 schrieb Felix Zielcke:
> Am Sonntag, den 12.04.2009, 13:29 +0200 schrieb Felix Koop:
> 
> > When running the following command
> > 
> > grub-probe --target=device /
> > 
> > it returns the correct result, but produces a floating point exception 
> > afterwards. This has as a consequence that I cannot install any new 
> > kernels any more. Going back to the former version (1.96+20080724-16)
> > fixes the problem.
> 
> Hi Felix,
> 
> please build the package with `DEB_BUILD_OPTIONS=nostrip,noopt,debug dpkg-buildpackage',
> to get a debug build. Don't add something like `-j2' or it doestn't work.
> And then run grub-probe inside gdb, then you can get a backtrace.
> If you need help with this I'm on Freenode in #grub with nick fezie.
> 






More information about the Pkg-grub-devel mailing list