Description of problem: The process is stopped by pstack Version-Release number of selected component (if applicable): 2.6.9-55.ELsmp gdb-6.3.0.0-1.143.el4 How reproducible: Always Steps to Reproduce: t.c: #include <sys/stat.h> int main(int argc, char *argv[]) { struct stat b1; while(1) { stat("/", &b1); } } 1. 'cc t.c' and run a.out 2. strace -p <pid> (where pid is the process id for the a.out process) 3. stop strace with CTRL-C 4. pstack <pid> Actual results: a.out is stopped Expected results: a.out should keep running
This is a kernel bug and it is present even in recent upstream kernels (tested 2.6.22-rc4-git7). The kernel bug reproduces a different way in RHEL-4.6 GDB, the problem has been resubmitted as Bug 276861. Thanks for the notification. RHEL-5 and F-7 kernels provide a utrace interface which does not have this bug.