This crash is occurring because ggl-gtk is not able to connect to the
DBus system bus and it ends up blindly trying to invoke a method on the
uninitialized NULL pointer for its system bus object.  In
Machine::Machine(), the code calls DBusProxy::NewSystemProxy(), which
fails internally (and silently) and just returns NULL, so the first
CallMethod() operation gets a SEGV.

I enabled more tracing, and I see that NewSystemProxy is failing when
trying to invoke the Ping method on the system bus; the code

      if (dbus_error_is_set(&error))
        DLOG("Failed to retrieve reply from %s|%s, error: %s, %s",
            name_.c_str(), path_.c_str(), error.name, error.message);

in RetrieveReplyMessage() in dbus_proxy.cc prints:

Failed to retrieve reply from
org.freedesktop.Hal|/org/freedesktop/Hal/devices/computer, error:
org.freedesktop.DBus.Error.AccessDenied, Rejected send message, 1
matched rules; type="method_call", sender=":1.168" (uid=1000 pid=22508
comm="ggl-gtk ") interface="org.freedesktop.DBus.Peer" member="Ping"
error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal"
(uid=0 pid=3267 comm="/usr/sbin/hald "))

which is not surprising since ggl-gtk is an unprivileged app trying to
use the system bus.

-- 
ggl-gtk crashed with SIGSEGV in ggadget::dbus::DBusProxy::CallMethod()
https://bugs.launchpad.net/bugs/319874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to