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).
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.