Threading problems in WinDBus

Olivier Hochreutiner olivier.hochreutiner at gmail.com
Fri Jul 6 21:46:09 EEST 2007


After a try on Debian 4.0, the same problem exist in the linux distro of D-Bus.


2007/7/6, Olivier Hochreutiner <olivier.hochreutiner at gmail.com>:
> Hi!
>
> As you can see I am still working on D-Bus when I have time :-) and I
> am having problems with the win32 version of WinDBus.
> The problem can be easily reproduced with the echo-server example of
> the c++ binding.
> Just building it and using the "echo-client" program attached allows
> to reproduce the problem.
>
> Every time there is one of the following 4 asserts in the client (but
> maybe others can happen ?):
>
> ----------SNIP----------
> assertion failed "connection->io_path_acquired" file
> "..\..\branches\patched\dbus\dbus-connection.c" line 1082 function
> _dbus_connection_release_io_path
>
> assertion failed "!(connection)->have_connection_lock" file
> "..\..\branches\patched\dbus\dbus-connection.c" line 351 function
> _dbus_connection_lock
>
> assertion failed "(connection)->have_connection_lock" file
> "..\..\branches\patched\dbus\dbus-connection.c" line 362 function
> _dbus_connection_unlock
>
> assertion failed "!(connection)->have_connection_lock" file
> "..\..\branches\patched\dbus\dbus-connection.c" line 2188 function
> check_for_reply_and_update_dispatch_unlocked
> ----------SNIP----------
>
> Note that the function DBus::_init_threading_default() at the
> beginning is just a wrapper to dbus_threads_init_default().
> I didn't have this situation under WinCE so I tried to build the WinCE
> version for Win32 but the problem is the same. I also tried an older
> version from SVN (revision 609 from may 14th) without success.
> I tried to investigate the bug further but I think I am not familiar
> enough with D-Bus internals... What I can say is that it seems to be a
> thread/lock problem (as suggested by the asserts ...)
>
> Having no linux box where I can try, I did not try under that OS.
>
> Any clue of what it can be ?
>
> Thanks,
>
> Olivier
>
>


More information about the dbus mailing list