Bug 235197 - FEAT: Always display: Detaching after fork from child process ...
FEAT: Always display: Detaching after fork from child process ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gdb (Show other bugs)
5.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jan Kratochvil
: FutureFeature
Depends On: 234468
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-04 09:46 EDT by Jan Kratochvil
Modified: 2010-10-22 10:10 EDT (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2008-0332
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-05-21 12:55:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Trivial testcase. (472 bytes, text/plain)
2007-04-04 09:46 EDT, Jan Kratochvil
no flags Details

  None (edit)
Description Jan Kratochvil 2007-04-04 09:46:28 EDT
Description of problem:
Currently any fork(2)ed child processes get out of GDB tracking which may be
unexpected by the GDB user.
It has been proven on Bug 234468.

Version-Release number of selected component (if applicable):
gdb-6.5-16.el5.ia64
+RawHide
+upstream

How reproducible:
Always.

Steps to Reproduce:
1. gcc -o dinner dinner.c -Wall -ggdb3
2. gdb ./dinner
3. (gdb) break knife
4. (gdb) run

Actual results:
Starting program: /root/jkratoch/redhat/dinner 
knife
Program exited normally.

Expected results:
As one originally expects as after `set follow-fork-mode child':
Breakpoint 1, knife () at dinner.c:11
11        puts ("knife");
(gdb) 

It would be helpful to get at least:
Starting program: /root/jkratoch/redhat/dinner
Detaching after fork from child process 11836.
knife
Program exited normally.

Additional info:
Patch is a trivial oneliner.
Slightly different GDB output may be considered a Regression.
Comment 1 Jan Kratochvil 2007-04-04 09:46:28 EDT
Created attachment 151656 [details]
Trivial testcase.
Comment 2 Jan Kratochvil 2007-04-22 16:30:59 EDT
Committed to RawHide incl. the testcase `gdb.base/fork-detach.exp':
* Sun Apr 22 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-10
- Notify user of a child forked process being detached (BZ 235197).
Comment 7 Jan Kratochvil 2007-12-05 14:30:58 EST
Posted upstream:
  http://sources.redhat.com/ml/gdb-patches/2007-12/msg00087.html
Comment 13 errata-xmlrpc 2008-05-21 12:55:01 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0332.html

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