From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2134 invoked by alias); 3 Aug 2012 00:15:16 -0000 Received: (qmail 1941 invoked by uid 22791); 3 Aug 2012 00:15:01 -0000 X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,TW_VG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp01.br.ibm.com (HELO e24smtp01.br.ibm.com) (32.104.18.85) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Aug 2012 00:14:47 +0000 Received: from /spool/local by e24smtp01.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 2 Aug 2012 21:14:45 -0300 Received: from d24dlp02.br.ibm.com (9.18.248.206) by e24smtp01.br.ibm.com (10.172.0.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 2 Aug 2012 21:14:43 -0300 Received: from d24relay02.br.ibm.com (d24relay02.br.ibm.com [9.13.184.26]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id BA2A91DC0050 for ; Thu, 2 Aug 2012 20:14:41 -0400 (EDT) Received: from d24av03.br.ibm.com (d24av03.br.ibm.com [9.8.31.95]) by d24relay02.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q730DoaF40829030 for ; Thu, 2 Aug 2012 21:13:50 -0300 Received: from d24av03.br.ibm.com (loopback [127.0.0.1]) by d24av03.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q72MExQe012059 for ; Thu, 2 Aug 2012 19:14:59 -0300 Received: from [9.12.224.99] ([9.12.224.99]) by d24av03.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q72MEs34011958; Thu, 2 Aug 2012 19:14:55 -0300 Message-ID: <501B17EA.90000@linux.vnet.ibm.com> Date: Fri, 03 Aug 2012 00:15:00 -0000 From: Edjunior Barbosa Machado User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Sergio Durigan Junior CC: Jan Kratochvil , Philippe Waroquiers , Pedro Alves , Joel Brobecker , gdb-patches@sourceware.org, "Maciej W. Rozycki" , Tom Tromey Subject: Re: [commit+7.5] [patchv2] Write bpt at the ON_STACK bpt address References: <5012B1B6.1030003@redhat.com> <1343339398.2258.119.camel@soleil> <20120727184633.GA14182@host2.jankratochvil.net> <20120731073643.GA18696@host2.jankratochvil.net> <501B03E4.1020209@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12080300-1524-0000-0000-0000034D1C54 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: 2012-08/txt/msg00090.txt.bz2 On 08/02/2012 08:09 PM, Sergio Durigan Junior wrote: > On Thursday, August 02 2012, Edjunior Barbosa Machado wrote: > >> On 07/31/2012 04:36 AM, Jan Kratochvil wrote: >>>> gdb/testsuite/ >>>> 2012-07-27 Jan Kratochvil >>>> >>>> * gdb.base/valgrind-infcall.c: New file. >>>> * gdb.base/valgrind-infcall.exp: New file. >> >> I've faced this internal-error when running this testcase on Fedora17 (which has valgrind-3.7.0) on ppc64: >> >> ... >> (gdb) PASS: gdb.base/valgrind-infcall.exp: continue #1 (false warning) >> continue >> Continuing. >> ==7541== Invalid free() / delete / delete[] / realloc() >> ==7541== at 0x40458BC: free (vg_replace_malloc.c:427) >> ==7541== by 0x10000763: main (valgrind-infcall.c:38) >> ==7541== Address 0x4070040 is 0 bytes inside a block of size 1 free'd >> ==7541== at 0x40458BC: free (vg_replace_malloc.c:427) >> ==7541== by 0x10000757: main (valgrind-infcall.c:37) >> ==7541== >> ==7541== (action on error) vgdb me ... >> >> Program received signal SIGTRAP, Trace/breakpoint trap. >> ../../gdb.git/gdb/frame.c:2396: internal-error: frame_cleanup_after_sniffer: Assertion `frame->prologue_cache == NULL' failed. >> A problem internal to GDB has been detected, >> FAIL: gdb.base/valgrind-infcall.exp: continue (GDB internal error) >> further debugging may prove unreliable. >> Quit this debugging session? (y or n) n >> >> With this error, gdb connection is closed and the testsuite gets stuck >> at this point. > > (Adding Tom to CC list). > > Thanks for the report. > > Just as an FYI (or For Our Information, rather), > http://sourceware.org/ml/gdb-patches/2012-08/msg00075.html clearly fixes > the bug. I will keep an eye on this since I am interested as well. > > Thanks, > I've run the full testsuite with this patch and it indeed eliminates the internal-error on gdb.base/valgrind-infcall.exp, but now there are new failures on gdb.threads/watchpoint-fork.exp (the first and the third were already failing with the same internal-error from valgrind-infcall.exp): ... FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the first fork FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the first fork FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the second fork FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the second fork FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: finish ... Here's the detailed output: ... continue Continuing. [New process 28316] parent1: 28316 Error in re-setting breakpoint 1: reading register r31 (#31): No such process. Error in re-setting breakpoint -1: reading register r31 (#31): No such process. Error in re-setting breakpoint 2: reading register r31 (#31): No such process. Error in re-setting breakpoint 3: reading register r31 (#31): No such process. Error in re-setting breakpoint 4: reading register r31 (#31): No such process. reading register r31 (#31): No such process. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the first fork continue Continuing. reading register r31 (#31): No such process. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the first fork continue Continuing. reading register r31 (#31): No such process. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the second fork continue Continuing. reading register r31 (#31): No such process. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the second fork continue Continuing. reading register r31 (#31): No such process. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: finish -- Edjunior