Looks like this issue is not resolved with higher versions of gcc/Ubuntu. I am trying to build grub from a freshly installed source code, and I get the same error.
gr...@computer:~/src/grub-0.97$ ./configure --prefix=/home/group/src/grub-0.97 gr...@computer:~/src/grub-0.97$ make 1>makeOutput 2>&1 gr...@computer:~/src/grub-0.97$ make install 1>installOutput 2>&1 gr...@computer:~/src/grub-0.97$ ls sbin/grub-install sbin/grub-install r...@computer:~/src/grub-0.97$ cat /etc/issue Ubuntu 9.04 \n \l gr...@computer:~/src/grub-0.97$ uname -a Linux Computer 2.6.30.8 #1 SMP Wed Sep 30 15:51:10 EDT 2009 i686 GNU/Linux gr...@computer:~/src/grub-0.97$ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) gr...@computer:~/src/grub-0.97$ sudo sbin/grub-install /dev/sda --debug + bootdir=/boot + grubdir=/boot/grub + device_map=/boot/grub/device.map + set /home/group/src/grub-0.97/sbin/grub dummy + .......................... Many more commands + + /home/group/src/grub-0.97/sbin/grub --batch --device-map=/boot/grub/device.map Segmentation fault + grep Error [0-9]*: /tmp/grubS3NvkS ....... + echo The file /boot/grub/stage1 not read correctly. The file /boot/grub/stage1 not read correctly. + exit 1 gr...@computer:~/src/grub-0.97$ gdb /home/group/src/grub-0.97/sbin/grub GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run --batch --device-map=/boot/grub/device.map Starting program: /home/group/src/grub-0.97/sbin/grub --batch --device-map=/boot/grub/device.map Program received signal SIGSEGV, Segmentation fault. grub_putstr (str=0xa <Address 0xa out of bounds>) at char_io.c:148 148 while (*str) (gdb) bt #0 grub_putstr (str=0xa <Address 0xa out of bounds>) at char_io.c:148 #1 0x0804b179 in grub_printf ( format=0x80626e9 " (%dK lower / %dK upper memory)\n\n") at char_io.c:183 #2 0x0804b5ca in init_page () at char_io.c:241 #3 0x0805eaf1 in enter_cmdline (heap=0xb79dcc48 "", forever=1) at cmdline.c:126 #4 0x08057ea0 in cmain () at stage2.c:1058 #5 0x0804c540 in init_bios_info () at common.c:336 Can someone point me to the version of gcc and Ubuntu on which this bug is fixed? Thanks for any help. -- grub (built from source package, grub-0.97) crashes with Segmentation fault https://bugs.launchpad.net/bugs/181089 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs