Bug#523763: grub-common: Segfault scanning devices
Matthew Gabeler-Lee
cheetah at fastcat.org
Sun Jul 19 21:36:22 UTC 2009
Package: grub-common
Version: 1.96+20090709-1
Severity: normal
I'm seeing what I think is a new manifestation of the same bug. On an
earlier version of grub2, I saw the same FPE, then I upgraded and it was
working (sorry, not sure what version that was), and then I (think) I
upgraded again, and now it's crashing, but with a segfault instead of an
FPE.
Backtrace of the crash and other hopefully useful information:
$ sudo gdb ./grub-probe
...
(gdb) run --device /
Starting program: /tmp/grub2-1.96+20090709/build/grub-pc/grub-probe --device /
Program received signal SIGSEGV, Segmentation fault.
0x00000000004062aa in grub_memmove (dest=0x17d6530, src=0x17a6f30, n=2161727821389936744)
at /tmp/grub2-1.96+20090709/kern/misc.c:42
42 *--d = *--s;
(gdb) bt
#0 0x00000000004062aa in grub_memmove (dest=0x17d6530, src=0x17a6f30, n=2161727821389936744)
at /tmp/grub2-1.96+20090709/kern/misc.c:42
#1 0x00000000004241c8 in grub_lvm_scan_device (name=0x16a8760 "hd3,3")
at /tmp/grub2-1.96+20090709/disk/lvm.c:308
#2 0x0000000000404e61 in iterate_disk (disk_name=0x16a52e0 "hd3")
at /tmp/grub2-1.96+20090709/kern/device.c:118
#3 0x0000000000401f3a in grub_util_biosdisk_iterate (hook=0x7fffe78313c0)
at /tmp/grub2-1.96+20090709/util/hostdisk.c:152
#4 0x00000000004052f8 in grub_disk_dev_iterate (hook=0x7fffe78313c0)
at /tmp/grub2-1.96+20090709/kern/disk.c:212
#5 0x0000000000404c8a in grub_device_iterate (hook=0x423eb8 <grub_lvm_scan_device>)
at /tmp/grub2-1.96+20090709/kern/device.c:163
#6 0x0000000000424b94 in grub_mod_init (mod=0x0) at /tmp/grub2-1.96+20090709/disk/lvm.c:606
#7 0x0000000000424b7c in grub_lvm_init () at /tmp/grub2-1.96+20090709/disk/lvm.c:604
#8 0x0000000000424c55 in grub_init_all () at grub_probe_init.c:49
#9 0x0000000000401dc5 in main (argc=3, argv=0x7fffe7831568)
at /tmp/grub2-1.96+20090709/util/grub-probe.c:368
## md0 is mounted on /, ext3
$ sudo mdadm -Q --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Mon Mar 27 14:03:04 2006
Raid Level : raid1
Array Size : 2008000 (1961.27 MiB 2056.19 MB)
Used Dev Size : 2008000 (1961.27 MiB 2056.19 MB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Sun Jul 19 17:30:40 2009
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
UUID : 9364f7a2:d74695d5:7d8db3a0:3b5f9e48
Events : 0.9446884
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
2 8 33 2 active sync /dev/sdc1
3 8 49 3 active sync /dev/sdd1
## md1 is swap
$ sudo mdadm -Q --detail /dev/md1
/dev/md1:
Version : 0.90
Creation Time : Mon Mar 27 14:04:10 2006
Raid Level : raid1
Array Size : 2008000 (1961.27 MiB 2056.19 MB)
Used Dev Size : 2008000 (1961.27 MiB 2056.19 MB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Sun Jul 19 17:32:21 2009
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
UUID : 7bf77e33:bfea6869:7a4d1fdc:e5eae297
Events : 0.12754
Number Major Minor RaidDevice State
0 8 34 0 active sync /dev/sdc2
1 8 2 1 active sync /dev/sda2
2 8 18 2 active sync /dev/sdb2
3 8 50 3 active sync /dev/sdd2
## md2 is an lvm2 PV
$ sudo mdadm -Q --detail /dev/md2
/dev/md2:
Version : 0.90
Creation Time : Mon Mar 27 14:04:18 2006
Raid Level : raid5
Array Size : 2185667136 (2084.41 GiB 2238.12 GB)
Used Dev Size : 728555712 (694.80 GiB 746.04 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Sun Jul 19 17:33:20 2009
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 64K
UUID : 01e2f978:88d1f867:34e1e46c:f3c01470
Events : 0.24323458
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
2 8 35 2 active sync /dev/sdc3
3 8 51 3 active sync /dev/sdd3
$ sudo pvdisplay
--- Physical volume ---
PV Name /dev/md2
VG Name raid5
PV Size 2.04 TB / not usable 384.00 KB
Allocatable yes
PE Size (KByte) 4096
Total PE 533610
Free PE 2560
Allocated PE 531050
PV UUID 6MJPZ1-K6Bo-OADM-F21Q-I5PG-OBmT-uZ8bGL
$ sudo lvdisplay
--- Logical volume ---
LV Name /dev/raid5/var
VG Name raid5
LV UUID 1sCvBC-Zape-93y2-XKgY-uNpK-PzMD-8fa8dn
LV Write Access read/write
LV Status available
# open 2
LV Size 2.00 GB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/raid5/tmp
VG Name raid5
LV UUID ZLqOr4-YFID-mQtJ-YwzX-FHDp-8Ttk-GxDhQp
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/raid5/home
VG Name raid5
LV UUID AfsmJG-aiwx-k4WF-cJ6J-GBb1-cuYs-RdCbuu
LV Write Access read/write
LV Status available
# open 2
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/raid5/usr
VG Name raid5
LV UUID VsTbDi-vwWD-akFa-zjM1-4GN1-CeFD-hML2mW
LV Write Access read/write
LV Status available
# open 2
LV Size 8.00 GB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
--- Logical volume ---
LV Name /dev/raid5/ia32
VG Name raid5
LV UUID 1YYUhc-70Bp-mMLA-mdrI-i1Vi-2OHW-QbuHBE
LV Write Access read/write
LV Status available
# open 2
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4
--- Logical volume ---
LV Name /dev/raid5/grande
VG Name raid5
LV UUID 2L4Zsg-e8pg-uw5r-qCfo-GSIU-Qs53-g7iDH3
LV Write Access read/write
LV Status available
# open 2
LV Size 2.01 TB
Current LE 526186
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30.1-1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub-common depends on:
ii base-files 5.0.0 Debian base system miscellaneous f
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libfreetype6 2.3.9-4.1 FreeType 2 font engine, shared lib
ii libncurses5 5.7+20090523-1 shared libraries for terminal hand
ii zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime
grub-common recommends no packages.
Versions of packages grub-common suggests:
pn multiboot-doc <none> (no description available)
-- no debconf information
More information about the Pkg-grub-devel
mailing list