DBusGMainLoop segfaults python if multi-threaded
Bug #1890753 reported by
Dan Streetman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dbus-python (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
python segfaults if DBusMainLoop is used in multiple threads; e.g.:
#!/usr/bin/python3
import dbus
import sys
import threading
from gi.repository import GLib
from dbus.mainloop.glib import DBusGMainLoop
#DBusGMainLoop(
if __name__ == "__main__":
threading.
for r in range(1000):
print(".", flush=True, end="")
print("")
sys.exit(0)
$ ./test.py
.......
It will also segfault if set_as_default is set to True, even without passing it to the SessionBus's mainloop parameter.
To post a comment you must log in.