This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/366: HPUX hangs during fork


The following reply was made to PR gdb/366; it has been noted by GNATS.

From: Andrew Cagney <ac131313@cygnus.com>
To: ezannoni@redhat.com, law@redhat.com, ac131313@redhat.com,
	gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: gdb/366: HPUX hangs during fork
Date: Sun, 07 Apr 2002 17:13:36 -0400

 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=366
 
 Scott Zetlan <same> at aol dot com wrote:
 
 I'm getting an odd runtime error from gdb 5.1.1 which I compiled under HP-UX
 11.00.  Here's the banner from gdb when it starts up:
 
 GNU gdb 5.1.1
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "hppa2.0w-hp-hpux11.00".
 
 I've been building in a separate directory from the code, and my configure
 line looks like:
 /home/szetlan/.../configure --prefix=/home/szetlan/binutil
 
 Here's the problem: gdb starts just fine, but then when I attempt to run a
 program, it hangs.  I've gotten a core dump from gdb, which I traced with
 gdb, and found that it's hanging at add_thread (thread.c) called from
 child_acknowledge_created_inferior (infttrace.c).
 
 It appears that child...inferior () accepts an int (int pid) as an argument,
 and then passes that int to add_thread (line 3126).  The add_thread()
 function actually takes a ptid_t (typdef'd in def.h as a struct ptid) as an
 argument.  My core dump shows that gdb is attempting to access memory at
 0x3d4, which evaluates to 980, or the pid of the child process.
 
 I've been able to build the same code just fine under Solaris.  So... any
 ideas what I'm missing?  The only other major difference I can see is that
 on HP, I'm running gcc 3.0, and on Solaris, I've got 3.0.4.
 
 Scott
 
 
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]