Bug 256404 - KDE crash in dbus_connection_get_data: NULL connection
Summary: KDE crash in dbus_connection_get_data: NULL connection
Status: RESOLVED DUPLICATE of bug 248163
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: polkit-kde-authentication-agent-1 (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Jaroslav Reznik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-09 00:02 UTC by Joe Harvell
Modified: 2013-03-25 13:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
VNC log including output of startkde (91.26 KB, text/plain)
2010-11-09 00:21 UTC, Joe Harvell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Harvell 2010-11-09 00:02:40 UTC
Application: polkit-kde-authentication-agent-1 (0.1)
KDE Platform Version: 4.5.3 (KDE 4.5.3)
Qt Version: 4.6.3
Operating System: Linux 2.6.34-gentoo-r2-cujo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

Started KDE.  After a few seconds polkit-kde-authentication agent crashes with a failed assertion as follows:

process 18053: arguments to dbus_connection_get_data() were incorrect, assertion
 "connection != NULL" failed in file /var/tmp/portage/sys-apps/dbus-1.4.0/work/d
bus-1.4.0/dbus/dbus-connection.c line 5980.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
KCrash: Application 'polkit-kde-authentication-agent-1' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
QDBusObjectPath: invalid path ""
QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(Solid:
:DeviceInterface::Type)  error:  "org.freedesktop.DBus.Error.Disconnected"

The crash can be reproduced every time.

-- Backtrace:
Application: PolicyKit1-KDE (polkit-kde-authentication-agent-1), signal: Aborted
[KCrash Handler]
#6  0x00007f270ecc7445 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f270ecc8860 in abort () at abort.c:92
#8  0x00007f27095f7bc5 in _dbus_abort () at /var/tmp/portage/sys-apps/dbus-1.4.0/work/dbus-1.4.0/dbus/dbus-sysdeps.c:94
#9  0x00007f27095eeb1a in _dbus_warn_check_failed (format=0x7f27095fd560 "arguments to %s() were incorrect, assertion \"%s\" failed in file %s line %d.\nThis is normally a bug in some application using the D-Bus library.\n") at /var/tmp/portage/sys-apps/dbus-1.4.0/work/dbus-1.4.0/dbus/dbus-internals.c:289
#10 0x00007f27095d3f46 in dbus_connection_get_data (connection=0x0, slot=<value optimized out>) at /var/tmp/portage/sys-apps/dbus-1.4.0/work/dbus-1.4.0/dbus/dbus-connection.c:5980
#11 0x00007f2709162728 in dbus_connection_setup_with_g_main (connection=0x0, context=0x222e840) at /var/tmp/portage/dev-libs/dbus-glib-0.88/work/dbus-glib-0.88/dbus/dbus-gmain.c:572
#12 0x00007f270939e23e in egg_dbus_connection_constructed (object=<value optimized out>) at eggdbusconnection.c:490
#13 0x00007f270c3b0986 in IA__g_object_newv (object_type=<value optimized out>, n_parameters=<value optimized out>, parameters=0x0) at gobject.c:1289
#14 0x00007f270c3b11bb in IA__g_object_new_valist (object_type=36423104, first_property_name=0x0, var_args=0x7fff7165d670) at gobject.c:1377
#15 0x00007f270c3b13f1 in IA__g_object_new (object_type=36423104, first_property_name=0x7f27093b65b2 "bus-type") at gobject.c:1095
#16 0x00007f270939dfa8 in egg_dbus_connection_get_for_bus (bus_type=<value optimized out>) at eggdbusconnection.c:602
#17 0x00007f270cb00ee3 in polkit_unix_session_initable_init (initable=0x22baa30, cancellable=0x0, error=0x7fff7165d958) at polkitunixsession.c:510
#18 0x00007f270c13201f in IA__g_initable_new_valist (object_type=<value optimized out>, first_property_name=0x7f270cb0cdaa "pid", var_args=0x7fff7165d7f0, cancellable=0x0, error=0x7fff7165d958) at ginitable.c:242
#19 0x00007f270c13210b in IA__g_initable_new (object_type=18053, cancellable=<value optimized out>, error=<value optimized out>, first_property_name=0x0) at ginitable.c:162
#20 0x00007f270cb0091b in polkit_unix_session_new_for_process_sync (pid=18053, cancellable=0x0, error=0x7fff7165d958) at polkitunixsession.c:314
#21 0x00007f270ea8d747 in PolkitQt1::UnixSessionSubject::UnixSessionSubject (this=0x22ba3f0, pid=18053) at /var/tmp/portage/sys-auth/polkit-qt-0.96.1/work/polkit-qt-1-0.96.1/core/polkitqt1-subject.cpp:153
#22 0x0000000000408281 in PolicyKitKDE::PolicyKitKDE (this=0x7fff7165da70) at /var/tmp/portage/sys-auth/polkit-kde-0.95.1-r1/work/polkit-kde-1-0.95.1/agent/policykitkde.cpp:32
#23 0x00000000004095b1 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/sys-auth/polkit-kde-0.95.1-r1/work/polkit-kde-1-0.95.1/agent/main.cpp:41

Reported using DrKonqi
Comment 1 Joe Harvell 2010-11-09 00:21:13 UTC
Created attachment 53261 [details]
VNC log including output of startkde
Comment 2 Radek Novacek 2010-11-09 09:23:29 UTC
It looks like you don't have DBus (SystemBus) running, according to this line:

** (process:18053): WARNING **: Error connecting to bus: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

Can you try to call some method on SystemBus manually?
Comment 3 Joe Harvell 2010-11-15 21:03:55 UTC
dbus-daemon was not running because I did not start the dbus service.  If this is required for KDE to work properly, I was not aware of it.

I'm guessing since dbus-daemon is not running you don't need me to call something on SystemBus manually.
Comment 4 Jaroslav Reznik 2010-11-19 15:43:48 UTC
(In reply to comment #3)
> dbus-daemon was not running because I did not start the dbus service.  If this
> is required for KDE to work properly, I was not aware of it.
> 
> I'm guessing since dbus-daemon is not running you don't need me to call
> something on SystemBus manually.

Yes, 
Polkit 1 - as used on Linux as KAuth backend - is heavily DBus based service. On the other hand we should assure that it does not crash when DBus is not available (and probably auth. agent shouldn't be running then at all).
Comment 5 Dario Andres 2010-12-21 14:04:04 UTC
[Comment from a bug triager]
There is another related report at bug 248163.
Regards
Comment 6 Martin Bříza 2013-03-25 13:52:42 UTC

*** This bug has been marked as a duplicate of bug 248163 ***