+++ This bug was initially created as a clone of Bug #189607 +++ After a fix of `Bug 232837: utrace: PTRACE_ATTACH of SIGSTOPped process hangs' to update the ptrace(2) syscall behavior back to the kernel.org one GDB will start to hang during attaching to a SIGSTOPped process. A prophecy of mine. sleep 1h & pid=$! kill -STOP $pid gdb sleep $pid [WILL HANG]
Posted upstream: http://sources.redhat.com/ml/gdb-patches/2007-06/msg00059.html
Committed to RawHide CVS: * Wed Jun 20 2007 Jan Kratochvil <jan.kratochvil> - 6.6-16 - Fix attaching a stopped process on expected + upstream kernels (BZ 233852). - Fix attaching during a pending signal being delivered.
Posted an update upstream: http://sources.redhat.com/ml/gdb-patches/2007-06/msg00534.html
Updated patch committed as: * Sun Sep 16 2007 Jan Kratochvil <jan.kratochvil> - 6.6-27 - Fix attaching to stopped processes and/or pending signals.