Bug 68508

Summary: gdb doesn't remove breakpoints from forked child processes
Product: [Retired] Red Hat Raw Hide Reporter: Jonathan Kamens <jik>
Component: gdbAssignee: Elena Zannoni <ezannoni>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: notting
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 08:15:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test program none

Description Jonathan Kamens 2002-07-10 19:22:34 UTC
Compile the attached test program with "gcc -g".  Run gdb with it, type "break
9" and then type "run".  When you hit the breakpoint, type "continue".

You'll see one line of output, from the parent.  You should see two, one from
the parent and one from the child.  You'll also see a core file generated, and
if you load that core file into gdb, you'll see that it came from a
trace/breakpoint trap.

The problem here is that gdb apparently doesn't remove trace/breakpoints from
detached child processes.

I think this bug goes back for several RH releases, i.e., I don't think it's new
in the current rawhide, but it still seems pretty severe.

Comment 1 Trond Eivind Glomsrxd 2002-07-10 19:53:44 UTC
There is no attachment here... also, make sure to get gdb 5.2 from Rawhide as
that's what's current.

We don't change gdb, so it  wouldn't be a Red Hat bug if it actually is one...

Comment 2 Trond Eivind Glomsrxd 2002-08-02 19:49:17 UTC
Closing for inactivity - reopen with data if needed.

Comment 3 Jonathan Kamens 2002-08-05 01:46:12 UTC
Created attachment 68844 [details]
test program

Comment 4 Jonathan Kamens 2002-08-05 01:49:28 UTC
Sorry I forgot to attach the test program before.  You should have been able to
construct it yourself pretty easily, given my description of the bug :-).

I am using gdb-5.2.1-1, and it exhibits this bug.

Note that I never got E-mail about the comment you appended to this ticket on
July 10.  I got E-mail on August 2 about the bug, and the diff in that E-mail
showed that *both* your comment from July 10 and the one from August 2 were added.

I seem to recall reading that there was some confusion in bugzilla about email
notices of bug changes.  I hope this confusion has been resolved.

I fail to see how it's relevant that "We don't change gdb, so it  wouldn't be a
Red Hat bug if it actually is one..."  I am under the impression that you track
bugs in your packages even when you didn't introduce them, and that when a
sufficiently complicated bug is introduced into a package you ship, you might
actually devote development time to finding a fix.  At the very least, I thought
you forward bug reports upstream so that people can just report bugs in Red Hat
packages to you rather than guessing whether they need to report them to you or
the upstream maintainers.


Comment 5 Bill Nottingham 2006-08-08 01:36:50 UTC
'Red Hat Raw Hide' refers to the development tree for Red Hat Linux.
Red Hat Linux is no longer supported by Red Hat, Inc. If you are still
running Red Hat Linux, you are strongly advised to upgrade to a
current Fedora Core release or Red Hat Enterprise Linux or comparable.
Some information on which option may be right for you is available at
http://www.redhat.com/rhel/migrate/redhatlinux/.

Red Hat apologizes that these issues were not resolved in a more
timely manner. However, we do want to make sure that important 
don't slip through the cracks. If these issues are still present
in a current release, such as Fedora Core 5, please move these
bugs to that product and version. Note that any remaining Red Hat
Raw Hide bugs will be closed as 'CANTFIX' on September 30, 2006.
Thanks again for your help.


Comment 6 Jonathan Kamens 2006-08-10 08:15:33 UTC
This is no longer an issue in gdb-6.3.0.0-1.131.FC6.  I don't know exactly when
it was fixed.