From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15984 invoked by alias); 24 May 2013 20:15:48 -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 15969 invoked by uid 89); 24 May 2013 20:15:47 -0000 X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from hop-nat-141.emc.com (HELO mexforward.lss.emc.com) (168.159.213.141) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 24 May 2013 20:15:46 +0000 Received: from hop04-l1d11-si01.isus.emc.com (HOP04-L1D11-SI01.isus.emc.com [10.254.111.54]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id r4OKFhfL009884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 24 May 2013 16:15:44 -0400 Received: from mailhub.lss.emc.com ([10.254.221.251]) by hop04-l1d11-si01.isus.emc.com (RSA Interceptor) for ; Fri, 24 May 2013 16:15:35 -0400 Received: from usendtaylorx2l.lss.emc.com (usendtaylorx2l.lss.emc.com [10.243.10.188]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id r4OKFX7q014502 for ; Fri, 24 May 2013 16:15:33 -0400 Received: by usendtaylorx2l.lss.emc.com (Postfix, from userid 26043) id CAEB05B0601; Fri, 24 May 2013 16:15:32 -0400 (EDT) Received: from usendtaylorx2l (localhost [127.0.0.1]) by usendtaylorx2l.lss.emc.com (Postfix) with ESMTP id 4EDE75B03EC for ; Fri, 24 May 2013 16:15:32 -0400 (EDT) From: David Taylor To: gdb@sourceware.org Subject: internal GDB error mourning inferior Date: Fri, 24 May 2013 20:15:00 -0000 Message-ID: <29865.1369426532@usendtaylorx2l> X-EMM-MHVC: 1 X-SW-Source: 2013-05/txt/msg00117.txt.bz2 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.]