bugGNU GRUB - Bugs: bug #19164, Segmentation fault after running a...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #19164: Segmentation fault after running a freshly build grub 0.97 on ubuntu edgy

Submitter:  H.Heutinck <blacksun>
Submitted:  Tue 27 Feb 2007 11:34:08 AM UTC
   
 
Category:  Compilation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  None
Release:  0.97 Reproducibility:  Every Time
Planned Release:  None

Sat 15 Dec 2007 09:44:00 PM UTC, comment #3: 

We've moved to GRUB 2 as a development platform. Please can you check if this bug still applies there, and if it does, reopen it?

Thanks

Robert Millan <robertmh>
Group administrator
Fri 07 Sep 2007 12:55:17 PM UTC, comment #2: 

I do not really have an idea what goes wrong, but I got similar symptoms on ubuntu feisty (grub there is 0.97, gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)).

Booting works fine,

> grub


changes to the grub console, but

grub> help --all

dumps a segmentation fault. Hope that (or the dump, I do not know its format, at least not gdb/objdump viewable) helps somehow.


(file #13893)

axm <axm>
Thu 26 Apr 2007 06:39:02 PM UTC, comment #1: 

This is likely due to the NX bit being used.
I have encountered this problem with gcc 3.2.3 on a RHEL WS release 3 machine with grub 0.93 and 0.97.

I've determined the thunk / trampoline is generated on the stack,
and if NX is properly used by the kernel, it will most likely
trap the execution of code on the stack.

For your experiment with gcc 4.0.4, was the machine physically
different than the machine with gcc 4.1.2?

taylor hutt <thutt>
Tue 27 Feb 2007 11:34:08 AM UTC, original submission:  

Problem description:

When building grub-0.97 from source on a Ubuntu Edgy distro, using the ubuntu gcc (4.1.2 prerelease 20060928) the build "grub" binary causes a segmentation fault when trying to run it.

When installing the ubuntu gcc (4.0.4 prerelease 20060630) the problem is gone.


Reproduction procedure:
(On a ubuntu edgy edge system with the ubuntu 4.1 gcc compiler installed and active)
 - Open a terminal.
 - sudo bash
 - mkdir /tmp/grub-test
 - cd /tmp/grub-test
 - cp ~/grub-0.97.tar.gz .
 - tar xvzf grub-0.97.tar.gz
 - cd grub-0.97
 - ./configure --prefix=/tmp/grub-test-result
 - make
 - make install

 - cd /tmp/grub-test-result/sbin
 - ./grub

Result:
A "Segmentation fault (core dumped)" message is given.

When using the ubuntu 4.0 gcc package grub runs as expected.

H.Heutinck <blacksun>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #13893:  _usr_sbin_grub.1000.crash added by axm (61KiB - application/octet-stream)
file #12052:  core-dump.tar.bz2 added by blacksun (39KiB - application/x-bzip - Core dump generated when starting ./grub)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by robertmh (Posted a comment)
  • -email is unavailable- added by axm (Updated the item)
  • -email is unavailable- added by thutt (Posted a comment)
  • -email is unavailable- added by blacksun (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-15 robertmh Open/ClosedOpen Closed
    2007-09-07 axm Attached File- Added _usr_sbin_grub.1000.crash, #13893
    2007-02-27 blacksun Attached File- Added core-dump.tar.bz2, #12052

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code