grub segmentation fault

jstipins at umich.edu jstipins at umich.edu
Fri Nov 25 14:49:46 PST 2005


Quoting Joe Ciccone <jciccone at gmail.com>:

> jstipins at umich.edu wrote:
>
>> Quoting Joe Ciccone <jciccone at gmail.com>:
>>
>>> jstipins at umich.edu wrote:
>>>
>>>> Hey everybody,
>>>>
>>>> Grub builds successfully on my pure-64 x86_64 linux system now,
>>>> using the
>>>> latest cross-lfs instructions.  When I run it, though, it segfaults
>>>> immediately.
>>>>
>>>> Just wanted to check if this is the normal behavior at this point,
>>>> or if
>>>> it's something unique to my installation?
>>>>
>>>> -Janis
>>>>
>>>>
>>> What optimizations are you using. The only time I've seen grub segfault
>>> is with optimizations such as -march or -O3.
>>>
>>> -Joe Ciccone
>>
>>
>> No optimizations.  CFLAGS and CXXFLAGS are both unset.
>>
>> I apply the pure64 patch, and then autoreconf, and then
>> ./configure --prefix=/usr --host=x86_64
>>
>> "make check" passes.  But the grub executable segfaults, even on a
>> "grub --help".
>>
>> I'm using gcc4.0.2 with glibc-20051024.  Also:
>>
>> /sources# file /usr/sbin/grub
>> /usr/sbin/grub: ELF 64-bit LSB executable, AMD x86-64, version 1
>> (SYSV), for
>> GNU/Linux 2.6.0, dynamically linked (uses shared libs), for GNU/Linux
>> 2.6.0,
>> not stripped
>>
>>
>>
>>
> try running grub with --no-curses, If this doesnt work ill sit down and
> fix it.
> --

Running it with --no-curses still segfaults.  Here is the output of ldd:

jstipins:~$ ldd /usr/sbin/grub
        libncurses.so.5 => /lib/libncurses.so.5 (0x00002aaaaabc7000)
        libc.so.6 => /lib/libc.so.6 (0x00002aaaaad23000)
        /lib/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)





More information about the cross-lfs mailing list