Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211322 - games-arcade/supertux-0.1.3 crashes when using non-debug builds
Summary: games-arcade/supertux-0.1.3 crashes when using non-debug builds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-25 00:05 UTC by Guenther Brunthaler
Modified: 2008-02-26 23:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated ebuild (supertux-0.1.3.ebuild,1.19 KB, text/plain)
2008-02-25 00:07 UTC, Guenther Brunthaler
Details
Patch for correcting the -DNDEBUG problem (supertux-0.1.3-ndebug.patch,689 bytes, patch)
2008-02-25 00:08 UTC, Guenther Brunthaler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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! :-)