PDA

View Full Version : BUG: Gconf segmentation fault


spayder26
September 23rd, 2007, 02:16 AM
I found a segmentation fault bug when trying to develop python scripts via compizconfig, but only when the backend is gconf and I ran the script on shell (using the interactive python shell skips the problem).

The segfault appeared when I tried to read the Plugin configuration with gconf backend.
Example:
import compizconfig
print 1
a = compizconfig.Context()
print 2
print a.Plugins["crashhandler"].Display["directory"].Value

Execution:
1
2
Segmentation fault (core dumped)

Script exits

maniac
September 24th, 2007, 08:33 AM
I found a segmentation fault bug when trying to develop python scripts via compizconfig, but only when the backend is gconf and I ran the script on shell (using the interactive python shell skips the problem).

The segfault appeared when I tried to read the Plugin configuration with gconf backend.
Example:
import compizconfig
print 1
a = compizconfig.Context()


print 2
print a.Plugins["crashhandler"].Display["directory"].Value

Execution:
1
2
Segmentation fault (core dumped)

Script exits
Hmm, can't reproduce this here.
This:

#!/usr/bin/python

import compizconfig

print 1
a = compizconfig.Context()
print 2
print a.Plugins["crashhandler"].Display["directory"].Value


give me this


1
Backend : gconf
Integration : true
Profile : default
Adding plugin notification (Uses libnotify to display errors)
Adding plugin rotate (Würfel drehen)
Adding plugin place (Fenster platzieren)
Adding plugin clone (Clone Output)
Adding plugin text (Text)
Adding plugin mswitch (Maus-Arbeitsflächenumschalter)
Adding plugin minimize (Effekt minimieren)
Adding plugin gears (Cube Gears)
Adding plugin blur (Blur Windows)
Adding plugin plane (Desktop Plane)
Adding plugin decoration (Fensterdekoration)
Adding plugin svg (Svg)
Adding plugin resizeinfo (Fenster-Skalier-Informationen)
Adding plugin wallpaper (Wallpaper)
Adding plugin mblur (Bewegungsunschärfe)
Adding plugin scaleaddon (Scale-Erweiterungen)
Adding plugin trailfocus (Fokusverlauf)
Adding plugin schemep (Scheme-Interpreter)
Adding plugin colorfilter (Farbfilter)
Adding plugin visualevent (Visual Event)
Adding plugin tile (Kacheln)
Adding plugin group (Gruppiere und Tabbe Fenster)
Adding plugin bench (Leistungstest)
Adding plugin expo (Expo)
Adding plugin atlantis (Cube Atlantis)
Adding plugin scalefilter (Scale-Fenstertitelfilter)
Adding plugin vpswitch (Arbeitsflächenumschalter)
Adding plugin glib (GLib)
Adding plugin screenshot (Screenshot)
Adding plugin resize (Fenster skalieren)
Adding plugin animation (Animationen)
Adding plugin extrawm (Zusätzliche Fenstermanager-Aktionen)
Adding plugin wobbly (Wackelige Fenster)
Adding plugin wall (Desktop-Tafel)
Adding plugin splash (Ladebildschirm)
Adding plugin put (Fensterpositionierung)
Adding plugin inotify (Inotify)
Adding plugin png (Png)
Adding plugin water (Wassereffekt)
Adding plugin neg (Fensterinhalt negieren)
Adding plugin cubecaps (Cube Caps)
Adding plugin fs (Userspace File System)
Adding plugin zoom (Desktop zoomen)
Adding plugin reflex (Reflektionen)
Adding plugin cube (Desktop-Würfel)
Adding plugin ezoom (Enhanced Zoom Desktop)
Adding plugin snow (Schnee)
Adding plugin annotate (Annotate)
Adding plugin switcher (Anwendungs-Switcher)
Adding plugin firepaint (Zeichne Feuer auf den Bildschirm)
Adding core settings (General Options)
Adding plugin winrules (Regeln für Fenster)
Adding plugin shift (Shift Switcher)
Adding plugin screensaver (Screen Saver)
Adding plugin 3d (3D-Fenster)
Adding plugin crashhandler (Absturzverwalter)
Adding plugin fadedesktop (Desktop Einblenden)
Adding plugin cubereflex (Würfelreflektion)
Adding plugin dbus (Dbus)
Adding plugin addhelper (Konzentrationshilfe)
Adding plugin opacify (Sichtbarkeit)
Adding plugin workarounds (Workarounds)
Adding plugin widget (Widget Layer)
Adding plugin fakeargb (Farbsichtbarkeit)
Adding plugin imgjpeg (JPEG)
Adding plugin snap (Snapping Windows)
Adding plugin ring (Ring-Anwendungs-Umschalter)
Adding plugin showdesktop (Zeige Desktop)
Adding plugin move (Fenster verschieben)
Adding plugin fade (Fenster ein-/ausblenden)
Adding plugin scale (Skalieren)
Adding plugin thumbnail (Fenster-Vorschaubilder)
Adding plugin regex (Regex Matching)
Adding plugin video (Video Playback)
Initializing core options...done
2
Initializing crashhandler options...done
/tmp


BTW, moved the posting as it's not really feedback related.

spayder26
September 28th, 2007, 09:29 PM
I'm using ubuntu and 3v1n0 compiz wrapper (using the upure64 repository). It can be the reason.