Bug#685295: grub crashes with invalid memory access

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Dec 19 22:30:07 UTC 2012


Package: grub-ieee1275
Version: 2.00-7
Followup-For: Bug #685295

i'm seeing the same behavior.

Interestingly, if i boot the machine into target disk mode, and then
from another host, mount the grub hfs volume, and then:

 mv grub.cfg grub.cfg.old

then i can reboot this machine and get a grub command prompt.  From
that command prompt, i can do:

 configfile grub.cfg.old

and that gives me a functional menu, which i can operate and the
system then boots fine.

if i then create a new grub.cfg which has as its contents only the
single line:

 configfile grub.cfg.old

then i get back to the "invalid memory access" situation.

     --dkg

*********************** BEGIN /proc/mounts
/dev/mapper/vg_gandalf0-root / ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/mapper/vg_gandalf0-home /home ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/mapper/vg_gandalf0-var /var ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/mapper/vg_gandalf0-tmp /tmp ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda2 /boot/grub hfs rw,nosuid,nodev,noexec,relatime,uid=0,gid=0 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/grub.cfg
insmod normal
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN LVM
  --- Volume group ---
  VG Name               vg_gandalf0
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               4
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               37.21 GiB
  PE Size               4.00 MiB
  Total PE              9525
  Alloc PE / Size       4352 / 17.00 GiB
  Free  PE / Size       5173 / 20.21 GiB
  VG UUID               Rs2dhl-pVk6-0PnF-Zocw-1208-2DS3-QiatYt
   
  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               vg_gandalf0
  PV Size               37.21 GiB / not usable 2.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              9525
  Free PE               5173
  Allocated PE          4352
  PV UUID               x6Qx1M-0acF-ctks-QF83-2E0Z-27oE-ee3OwJ
   
  --- Logical volume ---
  LV Path                /dev/vg_gandalf0/root
  LV Name                root
  VG Name                vg_gandalf0
  LV UUID                Rla4c1-BniA-N5Mc-ti4P-kkQV-Y9Gk-PLgOgr
  LV Write Access        read/write
  LV Creation host, time tom, 2012-12-19 20:31:52 +0000
  LV Status              available
  # open                 1
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0
   
  --- Logical volume ---
  LV Path                /dev/vg_gandalf0/home
  LV Name                home
  VG Name                vg_gandalf0
  LV UUID                s9ieJZ-JEzn-B9Tq-qNP4-i70X-lHQL-hJ6CTu
  LV Write Access        read/write
  LV Creation host, time tom, 2012-12-19 20:32:06 +0000
  LV Status              available
  # open                 1
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1
   
  --- Logical volume ---
  LV Path                /dev/vg_gandalf0/var
  LV Name                var
  VG Name                vg_gandalf0
  LV UUID                q3N1zG-QoVE-ZvgY-xfps-6tZE-PqcA-8855J4
  LV Write Access        read/write
  LV Creation host, time tom, 2012-12-19 20:32:20 +0000
  LV Status              available
  # open                 1
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2
   
  --- Logical volume ---
  LV Path                /dev/vg_gandalf0/swap
  LV Name                swap
  VG Name                vg_gandalf0
  LV UUID                JwkhMP-8dnF-rzLz-WMkc-ZXeu-EQvS-HZluO3
  LV Write Access        read/write
  LV Creation host, time tom, 2012-12-19 20:32:47 +0000
  LV Status              available
  # open                 0
  LV Size                1.00 GiB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3
   
  --- Logical volume ---
  LV Path                /dev/vg_gandalf0/tmp
  LV Name                tmp
  VG Name                vg_gandalf0
  LV UUID                NzGIip-LVVh-xjC7-MLVM-jSSi-woaj-VKABE5
  LV Write Access        read/write
  LV Creation host, time tom, 2012-12-19 20:32:53 +0000
  LV Status              available
  # open                 1
  LV Size                1.00 GiB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:4
   
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Dec 19 22:12 ata-LHD--TTSR__WVD_DCG-C4418_B -> ../../sr0
lrwxrwxrwx 1 root root  9 Dec 19 22:12 ata-TS430051_A_L5HAQGHE -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 19 22:12 ata-TS430051_A_L5HAQGHE-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 19 22:12 ata-TS430051_A_L5HAQGHE-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 19 22:12 ata-TS430051_A_L5HAQGHE-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 19 22:12 ata-TS430051_A_L5HAQGHE-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 19 22:12 ata-TS430051_A_L5HAQGHE-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-name-vg_gandalf0-home -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-name-vg_gandalf0-root -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-name-vg_gandalf0-swap -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-name-vg_gandalf0-tmp -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-name-vg_gandalf0-var -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-uuid-LVM-Rs2dhlpVk60PnFZocw12082DS3QiatYtJwkhMP8dnFrzLzWMkcZXeuEQvSHZluO3 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-uuid-LVM-Rs2dhlpVk60PnFZocw12082DS3QiatYtNzGIipLVVhxjC7MLVMjSSiwoajVKABE5 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-uuid-LVM-Rs2dhlpVk60PnFZocw12082DS3QiatYtRla4c1BniAN5Mcti4PkkQVY9GkPLgOgr -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-uuid-LVM-Rs2dhlpVk60PnFZocw12082DS3QiatYtq3N1zGQoVEZvgYxfps6tZEPqcA8855J4 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 19 22:12 dm-uuid-LVM-Rs2dhlpVk60PnFZocw12082DS3QiatYts9ieJZJEznB9TqqNP4i70XlHQLhJ6CTu -> ../../dm-1
lrwxrwxrwx 1 root root  9 Dec 19 22:12 scsi-SATA_ST340015A_5LAHGQEH -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 19 22:12 scsi-SATA_ST340015A_5LAHGQEH-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 19 22:12 scsi-SATA_ST340015A_5LAHGQEH-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 19 22:12 scsi-SATA_ST340015A_5LAHGQEH-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 19 22:12 scsi-SATA_ST340015A_5LAHGQEH-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 19 22:12 scsi-SATA_ST340015A_5LAHGQEH-part5 -> ../../sda5
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Dec 19 22:12 062e83c1-8def-4ed0-a6ef-4e765ae0d0d7 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 19 22:12 2f7ea624-2732-4b2a-8bab-ff0a4b9d1949 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 19 22:12 493e0b45-8848-43d1-a889-ab9af16c6dfc -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 19 22:12 90c7e829-f668-3275-ba3a-4b9a28fad1e9 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 19 22:12 9d1003ce-0e4e-422d-813b-33a330a89ad6 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 19 22:12 eef6b954-621e-4458-9c9a-84d1e4927115 -> ../../dm-2
*********************** END /dev/disk/by-uuid


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vg_gandalf0-root / ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/mapper/vg_gandalf0-home /home ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/mapper/vg_gandalf0-var /var ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/mapper/vg_gandalf0-tmp /tmp ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda2 /boot/grub hfs rw,nosuid,nodev,noexec,relatime,uid=0,gid=0 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/grub.cfg
insmod normal
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN LVM

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 3.2.0-4-powerpc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-ieee1275 depends on:
ii  debconf [debconf-2.0]  1.5.46
ii  grub-common            2.00-7
ii  grub-ieee1275-bin      2.00-7
ii  grub2-common           2.00-7
ii  ucf                    3.0025+nmu3

grub-ieee1275 recommends no packages.

grub-ieee1275 suggests no packages.

-- debconf information:
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
  grub2/kfreebsd_cmdline_default: quiet
  grub2/linux_cmdline_default: quiet
  grub2/linux_cmdline:



More information about the Pkg-grub-devel mailing list