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: law@redhat.com
Cc: ezannoni@redhat.com, ac131313@redhat.com,
	gdb-gnats@sources.redhat.com
Subject: Re: gdb/366: HPUX hangs during fork
Date: Mon, 08 Apr 2002 12:50:34 -0400

 >  > 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.
 > So what happens instead of passing the pid to add_thread you instead pass
 > pid_to_ptid(pid))?
 
 I believe the parameter passing bug was fixed in current sources.  I'm 
 not clear if the hang occures with that fixed.  I'm pretty sure it still 
 does though.
 
 Andrew
 


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