grub-mkconfig -o /boot/grub/grub.cfg crashes

Bug #497740 reported by Ralf Hildebrandt on 2009-12-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: grub2

# strace -o file -ff grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Segmentation fault

Looking at the trace files shows:

# fgrep -i SEGV file.*
file.5192:rt_sigaction(SIGSEGV, NULL, {SIG_DFL, [], 0}, 8) = 0
file.5258:wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0, NULL) = 5290
file.5290:--- SIGSEGV (Segmentation fault) @ 0 (0) ---

# tail file.5290
...
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd36258) = 0
close(3) = 0
gettimeofday({1261052227, 143182}, NULL) = 0
munmap(0xb75f9000, 389120) = 0
gettimeofday({1261052227, 143994}, NULL) = 0
stat64("/dev/mapper/template--dmz-root", {st_mode=S_IFBLK|0660, st_rdev=makedev(252, 0), ...}) = 0
gettimeofday({1261052227, 144883}, NULL) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

ProblemType: Bug
Architecture: i386
Date: Thu Dec 17 13:13:33 2009
DistroRelease: Ubuntu 9.10
Package: grub-pc 1.97~beta4-1ubuntu4.1
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic-pae
SourcePackage: grub2
Uname: Linux 2.6.31-14-generic-pae i686

Workaround:
# grub-mkdevicemap
after that, update-grub works flawlessly again

[79193.812643] grub-probe[31578]: segfault at 4 ip 080493db sp bfc5a8f0 error 4 in grub-probe[8048000+23000]
[79248.492931] grub-probe[32052]: segfault at 4 ip 080493db sp bfea32f0 error 4 in grub-probe[8048000+23000]
[79258.852567] grub-probe[32200]: segfault at 4 ip 080493db sp bfc69130 error 4 in grub-probe[8048000+23000]
[79323.557050] grub-probe[32728]: segfault at 4 ip 080493db sp bffb4e00 error 4 in grub-probe[8048000+23000]
[79411.420506] grub-probe[948]: segfault at 4 ip 080493db sp bf875c60 error 4 in grub-probe[8048000+23000]
[79477.220503] grub-probe[1523]: segfault at 4 ip 080493db sp bfe0aad0 error 4 in grub-probe[8048000+23000]

Turns out that grub-probe is crashing...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers