From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17370 invoked by alias); 24 May 2013 22:34:26 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 17358 invoked by uid 89); 24 May 2013 22:34:25 -0000 X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 24 May 2013 22:34:24 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Ug0Z4-0000BN-D6 from Luis_Gustavo@mentor.com ; Fri, 24 May 2013 15:34:22 -0700 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by svr-orw-fem-01.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 24 May 2013 15:34:21 -0700 Received: from [172.30.64.161] ([172.30.64.161]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 24 May 2013 15:34:21 -0700 Message-ID: <519FEAE7.8010200@codesourcery.com> Date: Fri, 24 May 2013 22:34:00 -0000 From: Luis Machado Reply-To: lgustavo@codesourcery.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: David Taylor CC: gdb@sourceware.org Subject: Re: internal GDB error mourning inferior References: <29865.1369426532@usendtaylorx2l> In-Reply-To: <29865.1369426532@usendtaylorx2l> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-05/txt/msg00118.txt.bz2 Hi David, Does this patch help? http://sourceware.org/ml/gdb-patches/2013-04/msg00658.html Luis On 05/24/2013 10:15 PM, David Taylor wrote: > In an unmodified gdb 7.6 , unmodified gdb 7.4.1, and a gdb 7.2-ubuntu, > the following sequence of steps will lead to an internal error: > > . start up a gdb server listening on local port 5432. > > . freshly started gdb, no exec file, type: > > target remote 127.0.0.1:5432 > > . kill / exit the gdb server > > . back at gdb do: > > target remote 127.0.0.1:5432 > > again. > > In 7.2-ubuntu it says: > > /build/buildd/gdb-7.2/gdb/target.c:2330: internal-error: could not find a target to follow mourn inferior > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? (y or n) y > > In 7.6, invoked with -i=mi (this is where the problem was origianlly > noticed), the complete output is: > > > =thread-group-added,id="i1" > ~"GNU gdb (GDB) 7.6\n" > ~"Copyright (C) 2013 Free Software Foundation, Inc.\n" > ~"License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" > ~"This GDB was configured as \"--host=i686-pc-linux-gnu --target=x86_64-unknown-linux-gnu\".\nFor bug reporting instructions, please see:\n" > ~".\n" > (gdb) > target remote localhost:5432 > &"target remote localhost:5432\n" > ~"Remote debugging using localhost:5432\n" > =thread-group-started,id="i1",pid="42000" > =thread-created,id="1",group-id="i1" > ~"0x00000000 in ?? ()\n" > *stopped,frame={addr="0x00000000",func="??",args=[]},thread-id="1",stopped-threads="all" > ^done > (gdb) > target remote localhost:5432 > &"target remote localhost:5432\n" > =thread-group-exited,id="i1" > &"Remote connection closed\n" > Abort (core dumped) > > I have not tried it with top of trunk. > > If it matters, it was built to be hosted on i686-pc-linux-gnu, > targetting x86_64-unknown-linux-gnu, running on an x86-64 linux box. > > [The targets we want to debug are x86-64, but not everyone has a 64 bit > desktop as yet; however, everyone has an Intel based GNU/Linux box.] > >