From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6362 invoked by alias); 4 Apr 2002 14:54:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6314 invoked from network); 4 Apr 2002 14:54:58 -0000 Received: from unknown (HELO mx.compgen.com) (158.155.2.6) by sources.redhat.com with SMTP; 4 Apr 2002 14:54:58 -0000 Received: from bass.compgen.com.compgen.com (IDENT:jlm@bass.compgen.com [158.155.4.59]) by mx.compgen.com (8.11.6/8.11.6) with ESMTP id g34ErqQ15106; Thu, 4 Apr 2002 09:53:52 -0500 From: Jesse Marlin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15532.26945.839385.236750@bass.compgen.com> Date: Thu, 04 Apr 2002 06:54:00 -0000 To: Andrew Cagney Cc: jlm@compgen.com, gdb@sources.redhat.com Subject: Re: Can't attach to child using gdb-5.1.1 on Linux In-Reply-To: <3CAC629D.9000304@cygnus.com> References: <15515.20096.343244.71499@bass.compgen.com> <3CAC629D.9000304@cygnus.com> Reply-To: jlm@compgen.com X-Face: FbxF/xY!V>vZ.$FXyN9:*'ZV?cib-\o'fWz2=}_Pb!#.JveZp_T18ZKC5T0RXNN=~_HPOF > I have a process that forks a child. If I try to attach to the > > child it reads the symbols and shows an accurate stack trace, but when > > I set a breakpoint and try to continue I get the following: > > > > (gdb) c > > Continuing. > > lin-lwp.c:1003: gdb-internal-error: lin_lwp_wait: Assertion `WIFSTOPPED (status) && WSTOPSIG (status) == SIGSTOP' failed. > > An internal GDB error was detected. This may make further > > debugging unreliable. Continue this debugging session? (y or n) n > > > > Create a core file containing the current state of GDB? (y or n) n > > > > Inferior GDB exited abnormally with code 1 > > > > > > I answered yes to the above also, but it did not improve the situation. Has > > anybody seen this behvior before. I am using gcc-2.95.3 for compilation. > > (not sure if someone has responded to this) No this is first. > > The first thing to do is get a more recent GDB from: I have been using gdb-5.1.1. More recent as in the current CVS? Thanks for the response. > > http://sources.redhat.com/gdb/current/ > > many problems have been fixed and if this problem still occures things > have been narrowed down a bit. > > Andrew >