Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320789 - xfce4-screenshooter-1.7.9: Segmentation fault when no configuration file present
Summary: xfce4-screenshooter-1.7.9: Segmentation fault when no configuration file present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: XFCE Team
URL: http://bugzilla.xfce.org/show_bug.cgi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 20:52 UTC by Thomas
Modified: 2010-05-23 11:57 UTC (History)
0 users

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


Attachments
don't call xfce_rc_close if rc == null (patch,530 bytes, patch)
2010-05-20 20:58 UTC, Thomas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2010-05-20 20:52:52 UTC
When xfce4-screenshooter is started by a user for the first time (i. e. without configuration file), it terminates immediately with a Segmentation fault.
When libxfce4util-4.7.1 is installed, it does not crash, but libxfce4util complains about a failed assertion:
(xfce4-screenshooter:23878): libxfce4util-CRITICAL **: xfce_rc_close: assertion `rc != NULL' failed


Reproducible: Always

Steps to Reproduce:
1. rm .config/xfce4/xfce4-screenshooter
2. xfce4-screenshooter
3. -> Segmentation fault

Actual Results:  
Segmentation fault

Expected Results:  
The configuration dialog is started.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-20 20:55:15 UTC
Hi, Can you please file a bug report upstream at http://bugzilla.xfce.org/ ?
Comment 2 Thomas 2010-05-20 20:58:27 UTC
Created attachment 232283 [details, diff]
don't call xfce_rc_close if rc == null

This patch fixes the problem
Comment 3 Thomas 2010-05-20 21:00:02 UTC
(In reply to comment #1)
> Hi, Can you please file a bug report upstream at http://bugzilla.xfce.org/ ?
> 

Sure.  Could you add the patch to the gentoo patches for xfce4-screenshooter in the meantime?

TNX.
Comment 4 Christoph Mende (RETIRED) gentoo-dev 2010-05-23 10:23:35 UTC
+*xfce4-screenshooter-1.7.9-r1 (23 May 2010)
+
+  23 May 2010; Christoph Mende <angelos@gentoo.org>
+  +xfce4-screenshooter-1.7.9-r1.ebuild,
+  +files/xfce4-screenshooter-1.7.9-fix-segfault-at-startup.patch:
+  Fix segfaults at first startup (bug #320789), thanks to Thomas
Comment 5 Thomas 2010-05-23 11:57:50 UTC
Thank you for integrating the patch so quickly.  -r1 works fine on amd64, i think you can stabilize it.  (Well, the patch is simple enough. ;-)