From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5443 invoked by alias); 4 Nov 2011 22:52:33 -0000 Received: (qmail 5431 invoked by uid 22791); 4 Nov 2011 22:52:32 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,T_FRT_BELOW2 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Nov 2011 22:52:19 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RMScT-0001HX-SZ from pedro_alves@mentor.com ; Fri, 04 Nov 2011 15:52:18 -0700 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 4 Nov 2011 22:52:15 +0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: internal error when setting watchpoints in programs with fork() on ppc Date: Fri, 04 Nov 2011 22:52:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-12-generic; KDE/4.7.2; x86_64; ; ) Cc: Edjunior Barbosa Machado , jan.kratochvil@redhat.com References: <4EB46474.2040206@linux.vnet.ibm.com> In-Reply-To: <4EB46474.2040206@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111042252.13043.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00126.txt.bz2 On Friday 04 November 2011 22:17:24, Edjunior Barbosa Machado wrote: > Hi, > > testing upstream gdb, I'm facing this internal error when running gdb.threads/watchpoint-fork.exp testcase (from this non-upstreamed patch http://sourceware.org/ml/gdb-patches/2010-12/msg00043.html, found in gdb from Fedora and enterprise distros) on ppc64, more specifically in the `set follow-fork-mode child' part of the test: > > ../../gdb.git/gdb/frame.c:2375: internal-error: frame_cleanup_after_sniffer: Assertion `frame->prologue_cache == NULL' failed. > > Actually, noticed that before this error, gdb fails to read r31 due to a wrong pid when issuing ptrace call on fetch_register() from ppc-linux-nat.c. This gdb-follow-child-stale-parent.patch from Jan Kratochvil (http://web.archiveorange.com/archive/v/iRKxrvg3CBOJl9wyV0pi, attached bellow) fixes this issue. Does this look ok for FSF gdb as well? I really couldn't tell what was the real problem from this description. -- Pedro Alves