Crash on dbus_threads_init_default
Vaillant Etienne
evaillant at anevia.com
Tue Nov 14 06:35:56 PST 2006
Hi guys,
I'm a very simple program and it crash (with an assert) when i run it.
Program :
#include <stdio.h>
#include <dbus/dbus.h>
int main(void)
{
//
//
dbus_threads_init_default();
return 0;
}
with :
- g++ 4.1.2
- dbus version 1.0.0
Run :
$ ./run
10501: assertion failed "(functions->mask &
~DBUS_THREAD_FUNCTIONS_ALL_MASK) == 0" file "dbus-threads.c" line 606
function dbus_threads_init
...
..
.
I think, I found the error : the value of DBUS_THREAD_FUNCTIONS_ALL_MASK
on file dbus/dbus-threads.h. Currently its value is (1 << 13) - 1 and I
think, it is wrong and it woud be (1 << 14) - 1.
Etienne
More information about the dbus
mailing list