bug with 5 code lines

Julien Isorce julien.isorce at gmail.com
Tue Nov 17 06:25:34 PST 2009


Hi,

The following code:

---------------------------------------------------------------
DBusError e;
DBusConnection *conn = NULL;

g_type_init ();
dbus_error_init(&e);

conn = dbus_bus_get(DBUS_BUS_SESSION, &e);
--------------------------------------------------------------------

causes:

3896: assertion failed "(error) == NULL || dbus_error_is_set ((error))" file
"D:\kde\distfiles\svn-src\dbus-src\tags\1.2.4\dbus\dbus-sysdeps-win.c" line
3159 function _dbus_get_autolaunch_address
Backtrace:
4       KiFastSystemCallRet
3       WaitForSingleObject+0x12
3       dbus_print_backtrace+0x94
3       dbus_abort+0xb
3       dbus_real_assert+0x46
3       dbus_get_autolaunch_address+0x2b3
3       dbus_transport_open+0x550
3       dbus_transport_open+0x11e
3       dbus_connection_close+0xe52
3       dbus_bus_register+0x3fd
3       RegisterWaitForInputIdle+0x49


-> when the dbus-daemon is not running

I think it's not a normal behavior.

It's hard to test it on ubuntu (for example) because a lot of process needs
this daemon (so you may not want to kill it), but on win32 it's easy to
reproduce it.

version 1.2.4-1

Should i report a bug ?

Note that I 'm new to dbus so maybe I am doing something wrong.

Sincerely

Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20091117/f40d0205/attachment.htm 


More information about the dbus mailing list