Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 211322

Summary: games-arcade/supertux-0.1.3 crashes when using non-debug builds
Product: Gentoo Linux Reporter: Guenther Brunthaler <gb_about_gnu>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: gb_about_gnu
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Updated ebuild
Patch for correcting the -DNDEBUG problem

Description Guenther Brunthaler 2008-02-25 00:05:06 UTC
In one source file the assert() function is used inappropriately, resulting in a crash when playing the game.

Reproducible: Always

Steps to Reproduce:
Just emerge with -DNDEBUG in CFLAGS and see it crash when being run.
Actual Results:  
Segmentation fault.

Expected Results:  
Should not crash.

Patch for fixing the problem and updated ebuild are included as attachments.
Comment 1 Guenther Brunthaler 2008-02-25 00:07:28 UTC
Created attachment 144545 [details]
Updated ebuild
Comment 2 Guenther Brunthaler 2008-02-25 00:08:40 UTC
Created attachment 144548 [details, diff]
Patch for correcting the -DNDEBUG problem
Comment 3 Guenther Brunthaler 2008-02-25 00:10:29 UTC
Comment on attachment 144545 [details]
Updated ebuild

The version number has not yet been incremented; please do this as appropriate.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2008-02-26 20:14:06 UTC
Was this patch sent upstream?
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2008-02-26 22:27:59 UTC
in portage.  resync/remerge if you have -DNDEBUG in your CFLAGS
Comment 6 Guenther Brunthaler 2008-02-26 23:02:06 UTC
(In reply to comment #4)
> Was this patch sent upstream?

Nope. I did not know who is in charge for doing so when a bug report has been filed in Gentoo Bugzilla, and wanted to avoid it might be sent twice.

If you like, I will send try to contact upstream and send them the patch.
Comment 7 Guenther Brunthaler 2008-02-26 23:03:05 UTC
(In reply to comment #5)
> in portage.  resync/remerge if you have -DNDEBUG in your CFLAGS

Cool! Thank you! :-)