Bug 23831 - SIGSEGV when dbus module is imported through C API
Summary: SIGSEGV when dbus module is imported through C API
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: python (show other bugs)
Version: 1.2.x
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-09 22:50 UTC by Ozan Çağlayan
Modified: 2010-12-02 09:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.