Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 233852 - attach will start to hang on SIGSTOPped processes
Summary: attach will start to hang on SIGSTOPped processes
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact:
Depends On: 189607 232837 233853 235521 243555
TreeView+ depends on / blocked
Reported: 2007-03-25 14:08 UTC by Jan Kratochvil
Modified: 2007-11-30 22:12 UTC (History)
1 user (show)

Fixed In Version: gdb-6.6-27.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-09-16 23:16:55 UTC
Type: ---

Attachments (Terms of Use)

Description Jan Kratochvil 2007-03-25 14:08:29 UTC
+++ 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 &
kill -STOP $pid
gdb sleep $pid

Comment 1 Jan Kratochvil 2007-06-06 18:45:20 UTC
Posted upstream:

Comment 2 Jan Kratochvil 2007-06-20 14:42:09 UTC
Committed to RawHide CVS:
* Wed Jun 20 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-16
- Fix attaching a stopped process on expected + upstream kernels (BZ 233852).
 - Fix attaching during a pending signal being delivered.

Comment 3 Jan Kratochvil 2007-06-30 10:23:13 UTC
Posted an update upstream:

Comment 4 Jan Kratochvil 2007-09-16 23:16:55 UTC
Updated patch committed as:
* Sun Sep 16 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-27
- Fix attaching to stopped processes and/or pending signals.

Note You need to log in before you can comment on or make changes to this bug.