Hi... > Are there any solutions in linux for debugging threaded programs, > because gdb doesnt seem to work well when a program spawns thread to > perform some computations. Not really a kernel related question IMHO. Please read about in gdb manual. For quick info, type "help thread" inside the gdb prompt. Short answer is, gdb does support thread debugging, but maybe it's not perfect. Please use the latest version of it to get rid of any possible bugs. regards, Mulyadi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/