This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2498: Processes run under gdb on HP-UX don't die until gdb exits
- From: dave dot anglin at nrc-cnrc dot gc dot ca
- To: gdb-gnats at sources dot redhat dot com
- Date: 10 Aug 2008 22:55:09 -0000
- Subject: gdb/2498: Processes run under gdb on HP-UX don't die until gdb exits
- Reply-to: dave dot anglin at nrc-cnrc dot gc dot ca
>Number: 2498
>Category: gdb
>Synopsis: Processes run under gdb on HP-UX don't die until gdb exits
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Aug 10 22:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Dave Anglin
>Release: 6.8.50.20080810-cvs, 6.8, etc
>Organization:
>Environment:
hppa2.0w-hpux11.11 and hppa64-hp-hpux11.11
>Description:
With following test program
int
main ()
{
return 0;
}
# gdb main
GNU gdb (GDB) 6.8.50.20080810-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.11".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) r
Starting program: /xxx/gnu/gdb/objdir/main
warning: Private mapping of shared library text was not specified
by the executable; setting a breakpoint in a shared library which
is not privately mapped will not work. See the HP-UX 11i v3 chatr
manpage for methods to privately map shared library text.
Program exited normally.
(gdb) r
Starting program: /xxx/gnu/gdb/objdir/main
warning: Private mapping of shared library text was not specified
by the executable; setting a breakpoint in a shared library which
is not privately mapped will not work. See the HP-UX 11i v3 chatr
manpage for methods to privately map shared library text.
Program exited normally.
...
If main is run enough times, you run out vfork resources.
-bash-3.2$ ps -ef|grep main
bin 3506 3501 0 18:44:05 pts/0 0:00 /xxx/gnu/gdb/objdir/main
bin 3502 3501 0 18:44:01 pts/0 0:00 /xxx/gnu/gdb/objdir/main
bin 3505 3501 0 18:44:03 pts/0 0:00 /xxx/gnu/gdb/objdir/main
bin 3501 16305 0 18:43:58 pts/0 0:00 gdb main
bin 3504 3501 0 18:44:02 pts/0 0:00 /xxx/gnu/gdb/objdir/main
dave 3508 23113 1 18:44:13 pts/2 0:00 grep main
This doesn't happen on hppa-unknown-linux-gnu.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: