grub-mkconfig -o /boot/grub/grub.cfg crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Expired
|
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:
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|
fstat64(3, {st_mode=
ioctl(3, BLKGETSIZE64, 0xbfd36258) = 0
close(3) = 0
gettimeofday(
munmap(0xb75f9000, 389120) = 0
gettimeofday(
stat64(
gettimeofday(
--- 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-
ProcEnviron:
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: grub2
Uname: Linux 2.6.31-
Workaround:
# grub-mkdevicemap
after that, update-grub works flawlessly again