Bug 197254 - segfault just trying to read a gconf key
Summary: segfault just trying to read a gconf key
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-python2
Version: 5
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 202111
TreeView+ depends on / blocked
 
Reported: 2006-06-29 18:04 UTC by Zack Cerza
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-27 03:46:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 365565 0 None None None Never

Description Zack Cerza 2006-06-29 18:04:14 UTC
Description of problem:
Python will segfault if you try to read GConf keys.

Version-Release number of selected component (if applicable):
gnome-python2-gconf-2.12.4-1.i386

How reproducible:
Always

Steps to Reproduce:
Pick one:

python -c 'import gconf; c=gconf.Client();
c.get_bool("/desktop/gnome/background/draw_background")'

python -c 'import gconf; c=gconf.Client();
c.get("/desktop/gnome/background/draw_background")'

python -c 'import gconf; c=gconf.Client();
c.get_string("/desktop/gnome/background/picture_filename")'

Probably others, but I got bored. :)

Actual results:
segmentation fault  python -c

Expected results:
A return value.

Comment 1 Jeremy Katz 2006-08-10 20:38:56 UTC
Don't you need to do 'c = gconf.client_get_default()' rather than just
instantiating a random GConfClient?

Comment 2 Zack Cerza 2006-08-10 20:43:57 UTC
oh, wow, apparently that works.

Still, though, shouldn't it not segfault?

Comment 3 John (J5) Palmieri 2006-08-10 22:16:44 UTC
Most likely shouldn't.  The bug should be filed upstream.

Comment 4 Matthias Clasen 2006-10-27 03:46:12 UTC
Filed an upstream bug to track this.


Note You need to log in before you can comment on or make changes to this bug.