This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/366: HPUX hangs during fork
- From: ac131313 at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Cc: ezannoni at redhat dot com, law at redhat dot com
- Date: 20 Feb 2002 15:58:54 -0000
- Subject: gdb/366: HPUX hangs during fork
- Reply-to: ac131313 at redhat dot com
>Number: 366
>Category: gdb
>Synopsis: HPUX hangs during fork
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 20 08:08:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: ac131313@redhat.com
>Release: unknown-1.0
>Organization:
>Environment:
HP/UX 10.20
>Description:
>From ezannoni:
Just a heads up, in case somebody else is running in the same problem:
Gdb on both hpux10.20 and hpux11.00 hangs after the 'run' command is
issued.
It seems that the problem is due to a broken vfork() implementation.
(Jeff, correct me if I am wrong here)
If fork() is used to start the inferior, all works fine.
A possible workaround, courtesy of Jeff Law, is to define vfork() to
fork().
Something like this works (analogous for 11.00):
Index: hpux1020.mh
===================================================================
RCS file: /cvs/uberbaum/gdb/config/pa/hpux1020.mh,v
retrieving revision 1.3
diff -u -r1.3 hpux1020.mh
--- hpux1020.mh 2002/01/18 04:51:05 1.3
+++ hpux1020.mh 2002/01/21 19:01:06
@@ -1,10 +1,10 @@
# Host: Hewlett-Packard PA-RISC machine, running HPUX 10.20
-MH_CFLAGS = -D__HP_CURSES
+MH_CFLAGS = -D__HP_CURSES -Dvfork=fork
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: