Debugging and NPTL
Ali Ijaz Sheikh <[email protected]> Mon, 17 May 2004 15:11:45 -0400
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have recently started seeing some problems with debugging of multithrea= ded applications with NPTL on 2.6 series kernels. It seems that GDB is no lo= nger being informed of the events occurring in the child threads because create_thread (nptl/sysdeps/pthread/create_thread.c) routine does not pas= s the CLONE_PTRACE flag to the clone system call. For example, if the child th= read gets a SEGV, the whole thread group is terminated without GDB ever being = told. When creating a thread in a thread group that is being ptraced, shouldn't= the child thread be created with a CLONE_PTRACE? It this a nptl bug? Or is = this GDB's fault? A simple program that creates a thread and does raise(SIGSEGV) in the chi= ld thread can be used to reproduce this problem. Try running that in gdb. -Ali [email protected] --=20 Phil-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/phil-list