Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53998 - bblaunch-0.0.3 segfaults (patch)
Summary: bblaunch-0.0.3 segfaults (patch)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-15 10:19 UTC by Luke Macken (RETIRED)
Modified: 2004-07-03 06:50 UTC (History)
1 user (show)

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


Attachments
bblaunch-0.0.3-r1.ebuild (bblaunch-0.0.3-r1.ebuild,654 bytes, text/plain)
2004-06-15 10:20 UTC, Luke Macken (RETIRED)
Details
files/0.0.3.patch (0.0.3.patch,311 bytes, patch)
2004-06-15 10:21 UTC, Luke Macken (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Macken (RETIRED) gentoo-dev 2004-06-15 10:19:38 UTC
I have encountered this on my machine, along with a friends.  When trying to run bblaunch with no commands (or even with command line arguments), the program segfaults.  I narrowed it down to line 173 of bblaunch.c:

sprintf(launchargs.call, "%s", (char *)atoi(argv[0]));

Casting an integer to a character string is causing the program to access invalid memory resulting in a segmentation fault.  After going through the code, I cannot find the significance of this cast or the atoi conversion, or even the significance of the entire line for that matter.  After applying the patch I wrote, the program seems to run flawlessly.

Reproducible: Always
Steps to Reproduce:
1. Run bblaunch
2.
3.

Actual Results:  
Segmentation Fault

Expected Results:  
The software should run.
Comment 1 Luke Macken (RETIRED) gentoo-dev 2004-06-15 10:20:30 UTC
Created attachment 33323 [details]
bblaunch-0.0.3-r1.ebuild

An updated ebuild bumped to -r1
Comment 2 Luke Macken (RETIRED) gentoo-dev 2004-06-15 10:21:01 UTC
Created attachment 33325 [details, diff]
files/0.0.3.patch

Patch to fix segmentation fault.
Comment 3 rabbitambulance 2004-06-25 11:07:44 UTC
for some reason the ebuild refuses to run out of the overlay directory...
Comment 4 rabbitambulance 2004-06-25 17:25:51 UTC
gah, ignore me, i'm an idiot.
is there some way to have the ebuild download the patch automagically, tho?
Comment 5 Ian Leitch (RETIRED) gentoo-dev 2004-06-25 18:19:20 UTC
Put the patch URI in SRC_URI, copy it into ${FILESDIR} from ${DISTDIR}/<patch name> -- patch as normal. 
Comment 6 Markus Nigbur (RETIRED) gentoo-dev 2004-07-03 06:50:33 UTC
thanks for the patch.
fixed in cvs - no revision bump. please reemerge.