jasper,
all the threads i created were fine. GTK itself initiates some threads. All those threads were stuck at same place. the following is bt for those threads:
Thread 14 (Thread 0x7f8b487e9700 (LWP 3138)):
#0 0x00007f8b533288dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f8b5416febc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f8b5416ffcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f8b54170009 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007f8b54196955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f8b535fe6aa in start_thread (arg=0x7f8b487e9700) at pthread_create.c:333
#6 0x00007f8b53333eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 13 (Thread 0x7f8b45b2c700 (LWP 3142)):
#0 0x00007f8b533288dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f8b5416febc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f8b54170242 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f8b5172daf6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4 0x00007f8b54196955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f8b535fe6aa in start_thread (arg=0x7f8b45b2c700) at pthread_create.c:333
#6 0x00007f8b53333eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 1 (Thread 0x7f8b559299c0 (LWP 3137)):
#0 0x00007f8b533288dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f8b5416febc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f8b54170242 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f8b55071de5 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
thread 1 (3137) is gtk_main. others were initiated by gtk.