public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* gdb/2498: Processes run under gdb on HP-UX don't die until gdb exits
@ 2008-08-10 22:58 dave.anglin
  0 siblings, 0 replies; only message in thread
From: dave.anglin @ 2008-08-10 22:58 UTC (permalink / raw)
  To: gdb-gnats


>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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-10 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-10 22:58 gdb/2498: Processes run under gdb on HP-UX don't die until gdb exits dave.anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).