Invoking DBus method call crashes server

Bug #69593 reported by Jonas Eschenburg
2
Affects Status Importance Assigned to Milestone
dbus-python (Ubuntu)
Fix Released
Undecided
Matthias Klose

Bug Description

Both a server and a client communicating via DBus are implemented in Python. Calling a method of the server object crashes the server program.

HOW TO REPRODUCE
1. Run the server
  ./server.py
2. Run the client
  ./client.py

RESULT
1. The server exits with:
   Segmentation fault (core dumped)
2. The client exits with
  Traceback (most recent call last):
    File "./client.py", line 6, in ?
      obj.DoSomething()
    File "/var/lib/python-support/python2.4/dbus/proxies.py", line 25, in __call__
      ret = self._proxy_method (*args, **keywords)
    File "/var/lib/python-support/python2.4/dbus/proxies.py", line 102, in __call__
      reply_message = self._connection.send_with_reply_and_block(message, timeout)
    File "dbus_bindings.pyx", line 455, in dbus_bindings.Connection.send_with_reply_and_block
  dbus_bindings.DBusException: Message did not receive a reply (timeout by message bus)

REMARK
The crash does not happen if 'dbus-send' is used:
> dbus-send --dest=local.Server --type=method_call --print-reply /local/Server local.IServer.DoSomething
method return sender=:1.42 -> dest=:1.43
   int32 42

UBUNTU RELEASE
edgy

INSTALLED SOFTWARE
ii dbus 0.93-0ubuntu3 simple interprocess messaging system
un dbus-1 <none> (no description available)
un dbus-1-dev <none> (no description available)
ii dbus-1-doc 0.93-0ubuntu2 simple interprocess messaging system (docume
ii dbus-1-utils 0.93-0ubuntu2 simple interprocess messaging system (utilit
un dbus-glib-1-de <none> (no description available)
un dbus-qt-1 <none> (no description available)
un dbus-qt-1c2 <none> (no description available)
ii kdbus 0.8.6-0ubuntu2 D-BUS service browser for KDE
un libdbus-1-1 <none> (no description available)
ii libdbus-1-2 0.60-6ubuntu8 simple interprocess messaging system
ii libdbus-1-3 0.93-0ubuntu3 simple interprocess messaging system
ii libdbus-1-cil 0.63.git.20060 CLI binding for D-BUS interprocess messaging
ii libdbus-1-dev 0.93-0ubuntu3 simple interprocess messaging system (develo
un libdbus-cil <none> (no description available)
ii libdbus-glib-1 0.71-1ubuntu1 simple interprocess messaging system (GLib-b
ii libdbus-glib-1 0.71-1ubuntu1 simple interprocess messaging system (GLib i
un libdbus-glib-d <none> (no description available)
un libdbus-glib0- <none> (no description available)
un libdbus-qt-1-1 <none> (no description available)
ii libdbus-qt-1-1 0.62.git.20060 simple interprocess messaging system (Qt-bas
un libdbus0 <none> (no description available)
un libdbus0-dev <none> (no description available)
un libdbus0-doc <none> (no description available)
ii libnet-dbus-pe 0.33.2-0ubuntu Perl XS API to the dbus inter-application me
ii python-dbus 0.71-2ubuntu1 simple interprocess messaging system (Python
pn python2.4-dbus <none> (no description available)
un python2.5-dbus <none> (no description available)

Revision history for this message
Jonas Eschenburg (indyjo) wrote :

Attached server and client code

Revision history for this message
Matthias Klose (doko) wrote :

this seems to be fixed in feisty (dbus-python 0.80.2), please reopen, if you can still reproduce it.

Changed in dbus-python:
assignee: nobody → doko
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.