Comment 48 for bug 899858

Revision history for this message
Eric Miao (eric.y.miao) wrote :

I did some more testings:

1. checked the source, there are two libdbus-glib functions locally implemented in daemon/dbus-gmain.c, which are

  - dbus_connection_setup_with_g_main
  - dbus_server_setup_with_g_main

  as talked with seb128 and pitti, I did a trial building after renaming these functions to local_*. gvfs-mount exited immediately with the error message below:

  $ gvfs-mount obex://[00:1f:5c:01:ac:64]
  Error mounting location: DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

  Note this happened almost immediately, and followed by a crash report of gvfsd-obexftp, title of which being:
  "gvfsd-obexftp crashed with SIGSEGV in _dbus_message_new_from_gerror()

2. Confirmed that making libgvfsdaemon statically linked is enough to solve this issue. Attached is the minimal change I used.