Debugging multi-threaded programs on NPTL-enabled Linux systems (kernel 2.6.x
or later and glibc 2.3.x or later) may sometimes fails; gdb stops the program
at unexpected instances. In this case the following may help (using bash):
LD_ASSUME_KERNEL=2.4.19 kdbg myprogram
I.e. you run KDbg from the command line such that the old
Linuxthreads implementation is used.