Bug 233852 - attach will start to hang on SIGSTOPped processes
attach will start to hang on SIGSTOPped processes
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gdb (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jan Kratochvil
: Regression, Reopened
Depends On: 189607 232837 233853 235521 243555
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-25 10:08 EDT by Jan Kratochvil
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version: gdb-6.6-27.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-09-16 19:16:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2007-03-25 10:08:29 EDT
+++ 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]
Comment 1 Jan Kratochvil 2007-06-06 14:45:20 EDT
Posted upstream:
http://sources.redhat.com/ml/gdb-patches/2007-06/msg00059.html
Comment 2 Jan Kratochvil 2007-06-20 10:42:09 EDT
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 06:23:13 EDT
Posted an update upstream:
http://sources.redhat.com/ml/gdb-patches/2007-06/msg00534.html
Comment 4 Jan Kratochvil 2007-09-16 19:16:55 EDT
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.