I'm running with python 2.4.3, dbus-1.0.1, and dbus-python-0.71 from the Gentoo repositories. When I try to use introspection on the example-service.py (modified to use the SystemBus, but vanilla other than that), the python instance running the server crashes with a segmentation fault. The code that triggers this is:
<br><br>>>> import dbus<br>>>> bus=dbus.SystemBus()<br>>>> obj=bus.get_object('org.designfu.SampleService', '/SomeObject')<br>>>> obj.Introspect()<br><br>The backtrace for the crashed python server is:
<br><br>(gdb) bt<br>#0 0xb7ceda93 in strlen () from /lib/libc.so.6<br>#1 0xb7e32365 in PyString_FromString () from /usr/lib/libpython2.4.so.1.0<br>#2 0xb7b90b3e in ?? ()<br> from /usr/lib/python2.4/site-packages/dbus/dbus_bindings.so
<br>#3 0x00000000 in ?? ()<br><br>I'll be digging into this for a bit, but just in case, is Introspection on python-based dbus servers known to fail? For comparison, the following python code:<br><br>>>> import dbus
<br>>>> bus=dbus.SystemBus()<br>>>> dbus_object = bus.get_object('org.freedesktop.DBus', '/org/freedesktop/DBus')<br>>>> dbus_object.Introspect()<br><br>gives me a nice XML listing of methods exported by the central DBus object (which I assume is written in C). Any assistance would be much appreciated.
<br>