[Bug 640391] New: executing grub in shellscript executed from withing a makefile results in a bus error
https://bugzilla.novell.com/show_bug.cgi?id=640391 https://bugzilla.novell.com/show_bug.cgi?id=640391#c0 Summary: executing grub in shellscript executed from withing a makefile results in a bus error Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Critical Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: xanclic@googlemail.com QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=390382) --> (http://bugzilla.novell.com/attachment.cgi?id=390382) Shellscript which executes grub and makefile which executes the script User-Agent: Opera/9.80 (X11; Linux x86_64; U; de) Presto/2.6.30 Version/10.61 After I updated my kernel (among other updates) today, I tried to build the project I'm working on (which is an operating system). The makefile I use executes a shellscript to create a floppy disk image which in turn calls grub to install grub on that image — this worked fine until yesterday, but after today's update I get a bus error everytime I execute grub in that shellscript (except when executing “grub --help”). If I call the script directly (without makefile), it works just fine. Reproducible: Always Steps to Reproduce: 1. Unpack the attached archive anywhere. 2. The first file it contains is a script called “make_image.sh”. This will create a FAT formatted floppy disk image, copy stage1 and stage2 from /boot/grub there and run grub on it. 3. The second file is a makefile, which simply runs that script. 4. Now type “make” or “./make_image.sh” and compare. Actual Results: When using make, GRUB crashes with a bus error. When directly executing the shellscript, it doesn't and a FAT formatted floppy disk image with a well installed GRUB is the result. Expected Results: GRUB should not crash in either of both cases. As said before, I ran the YaST online update some hours ago which included a kernel update. The versions of the used programs are: kernel — 2.6.34.7-0.2 (desktop) make — 3.81 (built for x86_64-unknown-linux-gnu) bash — 4.1.7(1)-release (built for x86_64-suse-linux-gnu) grub — 0.97 mtools — 4.0.13 (note: I set the serverity to “critical”, because the software obviously crashes — imho this is just a normal bug, but the description of “critical” told me it isn't) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c1
Torsten Duwe
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c4
Torsten Duwe
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c5
Torsten Duwe
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c6
Torsten Duwe
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c7
--- Comment #7 from Max Reitz
Adding "ulimit -s 8192" in the shell script just before the grub line makes it work. This changes the addresses of mmap'ed/malloc'ed memory...
Thanks a lot :-)
Something unrelated along the way: Max, you should use the unaltered copies from /usr/lib/grub, not the potentially modified files under /boot grub.
OK, I'll do so. :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c8
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c9
Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c10
--- Comment #10 from Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c13
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c14
Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c15
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c16
Torsten Duwe
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c17
--- Comment #17 from Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c18
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c19
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c20
--- Comment #20 from Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c21
--- Comment #21 from Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c22
--- Comment #22 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c23
--- Comment #23 from Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c24
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c25
--- Comment #25 from Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c26
--- Comment #26 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c27
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c28
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c29
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c30
--- Comment #30 from Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c31
--- Comment #31 from Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c32
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=640391
https://bugzilla.novell.com/show_bug.cgi?id=640391#c33
--- Comment #33 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com