(gdb) thread apply all bt Thread 6 (Thread 0xb59d3b90 (LWP 29240)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7aed8d6 in nanosleep () from /lib/libc.so.6 #2 0xb7db7f42 in IA__g_usleep (microseconds=3046978108) at gtimer.c:170 #3 0xb7e6c28d in osyncClientDisconnectCallback (data=0x8052728) at /home/dani/projects/opensync/opensync/opensync/client/opensync_client.c:1392 #4 0xb7d908a1 in g_idle_dispatch (source=0x805ba28, callback=0, user_data=0x8052728) at gmain.c:4132 #5 0xb7d92446 in IA__g_main_context_dispatch (context=0x8054890) at gmain.c:2061 #6 0xb7d957e2 in g_main_context_iterate (context=0x8054890, block=1, dispatch=1, self=0x805a9c8) at gmain.c:2694 #7 0xb7d95bc7 in IA__g_main_loop_run (loop=0x805a968) at gmain.c:2898 #8 0xb7db5aef in g_thread_create_proxy (data=0x805a9c8) at gthread.c:635 #9 0xb7a4c192 in start_thread () from /lib/libpthread.so.0 #10 0xb7b2202e in clone () from /lib/libc.so.6 Thread 5 (Thread 0xb61d4b90 (LWP 29239)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7b18817 in poll () from /lib/libc.so.6 #2 0xb7d95815 in g_main_context_iterate (context=0x8058120, block=1, dispatch=1, self=0x8059680) at gmain.c:2996 #3 0xb7d95bc7 in IA__g_main_loop_run (loop=0x8057a70) at gmain.c:2898 #4 0xb7db5aef in g_thread_create_proxy (data=0x8059680) at gthread.c:635 #5 0xb7a4c192 in start_thread () from /lib/libpthread.so.0 #6 0xb7b2202e in clone () from /lib/libc.so.6 Thread 4 (Thread 0xb69d5b90 (LWP 29238)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7b18817 in poll () from /lib/libc.so.6 #2 0xb7eb70bf in osync_queue_poll (queue=0x8057b80) at /home/dani/projects/opensync/opensync/opensync/ipc/opensync_queue.c:841 #3 0xb7eb45f6 in _source_check (source=0x8058318) at /home/dani/projects/opensync/opensync/opensync/ipc/opensync_queue.c:339 #4 0xb7d951cb in IA__g_main_context_check (context=0x8057900, max_priority=2147483647, fds=0x8057870, n_fds=1) at gmain.c:2569 #5 0xb7d955b6 in g_main_context_iterate (context=0x8057900, block=1, dispatch=1, self=0x80583c0) at gmain.c:2691 #6 0xb7d95bc7 in IA__g_main_loop_run (loop=0x8057bf0) at gmain.c:2898 #7 0xb7db5aef in g_thread_create_proxy (data=0x80583c0) at gthread.c:635 #8 0xb7a4c192 in start_thread () from /lib/libpthread.so.0 #9 0xb7b2202e in clone () from /lib/libc.so.6 Thread 3 (Thread 0xb71d6b90 (LWP 29237)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7b18817 in poll () from /lib/libc.so.6 #2 0xb7d95815 in g_main_context_iterate (context=0x8055560, block=1, dispatch=1, self=0x8056550) at gmain.c:2996 #3 0xb7d95bc7 in IA__g_main_loop_run (loop=0x8056670) at gmain.c:2898 #4 0xb7db5aef in g_thread_create_proxy (data=0x8056550) at gthread.c:635 #5 0xb7a4c192 in start_thread () from /lib/libpthread.so.0 #6 0xb7b2202e in clone () from /lib/libc.so.6 Thread 1 (Thread 0xb7a0d6c0 (LWP 29228)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7a4d575 in pthread_join () from /lib/libpthread.so.0 #2 0xb7d5f9b6 in g_thread_join_posix_impl (thread=0x805a9e4) at gthread-posix.c:385 #3 0xb7db577f in IA__g_thread_join (thread=0x805a9c8) at gthread.c:703 #4 0xb7e5c2de in osync_thread_stop (thread=0x8059fe8) at /home/dani/projects/opensync/opensync/opensync/opensync_support.c:532 #5 0xb7e6c6d8 in osync_client_shutdown (client=0x8052728) at /home/dani/projects/opensync/opensync/opensync/client/opensync_client.c:1432 #6 0xb7e6c894 in osync_client_error_shutdown (client=0x8052728, error=0x805a0e0) at /home/dani/projects/opensync/opensync/opensync/client/opensync_client.c:1448 #7 0x0804b7d8 in client_run (_i=0) at /home/dani/projects/opensync/opensync/tests/client-tests/check_client.c:160 #8 0xb7b97470 in srunner_run_all () from /usr/lib/libcheck.so.0 #9 0x0804c160 in main () at /home/dani/projects/opensync/opensync/tests/client-tests/check_client.c:220