Bug 23831

Summary: SIGSEGV when dbus module is imported through C API
Product: dbus Reporter: Ozan Çağlayan <ozancag>
Component: pythonAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium    
Version: 1.2.x   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Ozan Çağlayan 2009-09-09 22:50:41 UTC
Hi,

The following code segfaults at the PyFinalize() call when i == 1. Tracing it with gdb gives some clues about dbus.mainloop.NativeMainLoop but couldn't dig any further.

for (i = 0; i < 150; ++i) {
        printf("Iteration %d\n", i);
        Py_Initialize();
        PyRun_SimpleString("import dbus\n");
        Py_Finalize();
    }

Reproduced with dbus-python 0.83 AND (python 2.6.2 OR python 2.5.4).
Comment 1 Simon McVittie 2010-12-02 09:29:57 UTC
Fixed in git for 0.83.2. Thank you for providing such a clear and minimal test case!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.