Comment 2 for bug 13639

Revision history for this message
Cms-ruinedsoft (cms-ruinedsoft) wrote :

Created an attachment (id=1548)
A simple dbus object service

Open up a terminal and run ./testserv.py.

Test the server by opening up a terminal and running python with the following
commands:
>>> import dbus
>>> b = dbus.Bus(dbus.Bus.TYPE_SESSION, False)
>>> s = b.get_service("com.test")
>>> o = s.get_object("/SimpleServ", "com.test")
>>> o.ping()
>>> o.threadone()

SimpleServ Segfaults for me on linux-686-smp when threading is enabled.

Commenting out all the thread initialization references makes the program run
properly, but calling o.threadone() doesn't work as expected (its execution
doesn't start until gtk.main() has ended).