[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installation disks should be using 2.6.10 kernel



On Wed, Jan 12, 2005 at 10:13:50AM -0500, Stephen Frost wrote:
> * seb@frankengul.org (seb@frankengul.org) wrote:
> > You're welcome. Can you strace the grub process and see what's wrong
> > with it ?
> > For my installation, grub is pretty useless since I'm full LVM/DM.
> 
> Not sure how useful this is, but...
> 
> From dmesg:
> grub[15266]: segfault at 00000000555bcb30 rip 00000000555bcb30 rsp 00000000555bc9fc error 15
> 
> Attached is the strace output, I didn't see anything obvious in it.

I had the exact same problem (on Ubuntu rather than Debian, but hey).
Debugging-by-printf revealed that grub segfaulted after calling
stage2/builtins.c:disk_read_savesect_func() through the disk_read_func
pointer in stage2/disk_io.c:rawread(); output from a printf before that
call was printed, while output from a printf at the beginning of the
disk_read_savesect_func() call was not printed. It *looks* like the text
of that function is corrupt in memory, although I'm not wholly convinced
that my debugging techniques were sound there because I'm having trouble
debugging a 32-bit binary.

disk_read_savesect_func() is a static nested function, which are rare in
C code (and a gcc extension). Perhaps that provides a clue?

Cheers,

-- 
Colin Watson                                       [cjwatson@debian.org]



Reply to: