From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17385 invoked by alias); 7 May 2011 06:05:04 -0000 Received: (qmail 17330 invoked by uid 22791); 7 May 2011 06:05:02 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_JK,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 07 May 2011 06:04:44 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4764abY002566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 7 May 2011 02:04:36 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4764Yc1003709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 7 May 2011 02:04:36 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p4764XbS014877; Sat, 7 May 2011 08:04:33 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p4764WHK014808; Sat, 7 May 2011 08:04:32 +0200 Date: Sat, 07 May 2011 06:05:00 -0000 From: Jan Kratochvil To: Janis Johnson Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Regression: Re: [patch] let gdb.base/reread.exp handle multiple binary files Message-ID: <20110507060431.GA28099@host1.jankratochvil.net> References: <4DC18331.1020505@codesourcery.com> <201105041855.32567.pedro@codesourcery.com> <4DC2D106.3060806@codesourcery.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <4DC2D106.3060806@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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-05/txt/msg00208.txt.bz2 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 1403 On Thu, 05 May 2011 18:32:06 +0200, Janis Johnson wrote: > On 05/04/2011 10:55 AM, Pedro Alves wrote: > > On Wednesday 04 May 2011 17:47:45, Janis Johnson wrote: > >> * lib/gdb.exp (exec_target_file, exec_symbol_file, > >> gdb_rename_execfile, gdb_touch_execfile): New. > >> * gdb.base/reread.exp: Use new procs to handle multiple > >> exec files. > > > > Okay. > > Thanks, I got set up with write access and checked it in. -PASS: gdb.base/reread.exp: run to foo() second time +FAIL: gdb.base/reread.exp: run to foo() second time -PASS: gdb.base/reread.exp: second pass: run to foo() second time +FAIL: gdb.base/reread.exp: second pass: run to foo() second time 52dbcea59b9496cbbdfe0ca30c0308b16e892c0d is the first bad commit commit 52dbcea59b9496cbbdfe0ca30c0308b16e892c0d Author: janis Date: Thu May 5 16:29:57 2011 +0000 * lib/gdb.exp (exec_target_file, exec_symbol_file, gdb_rename_execfile, gdb_touch_execfile): New. * gdb.base/reread.exp: Use new procs to handle multiple exec files. :040000 040000 21dd778fff93776e04803a94be62e784971e25b9 bde8683b59aaf5806cc96c6a3f8f8ae30a128a2f M gdb bisect run success On {x86_64,x86_64-m32,i686}-fedora{13,14,15,rawhide}-linux-gnu. It reliably PASSed before, now it FAILs in 90% of cases but occasionally PASSes, there is some race, I will check it later, it may be machine dependent. Thanks, Jan --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename=1 Content-length: 4439 diff -dup -ru pass/gdb.log fail/gdb.log --- pass/gdb.log 2011-05-07 07:55:06.000000000 +0200 +++ fail/gdb.log 2011-05-07 07:59:23.000000000 +0200 @@ -1,4 +1,4 @@ -Test Run By jkratoch on Sat May 7 07:55:04 2011 +Test Run By jkratoch on Sat May 7 07:59:22 2011 Native configuration is x86_64-unknown-linux-gnu === gdb tests === @@ -49,19 +49,17 @@ shell sleep 1 (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y -`/home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/reread' has changed; re-reading symbols. Starting program: /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/reread - -Breakpoint 1, foo () at ./gdb.base/reread2.c:9 -9 x++; -(gdb) PASS: gdb.base/reread.exp: run to foo() second time +This is foo +[Inferior 1 (process 2994) exited normally] +(gdb) FAIL: gdb.base/reread.exp: run to foo() second time dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir ./gdb.base Source directories searched: /home/jkratoch/redhat/gdb-clean/gdb/testsuite/./gdb.base:$cdir:$cwd (gdb) kill -Kill the program being debugged? (y or n) y +The program is not being run. (gdb) file /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/reread Load new symbol table from "/home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/reread"? (y or n) y Reading symbols from /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/reread...done. @@ -77,20 +75,19 @@ Breakpoint 1, foo () at ./gdb.base/rerea (gdb) PASS: gdb.base/reread.exp: second pass: run to foo() continue Continuing. -[Inferior 1 (process 28071) exited normally] +[Inferior 1 (process 3000) exited normally] (gdb) PASS: gdb.base/reread.exp: continue until exit at second pass run -`/home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/reread' has changed; re-reading symbols. Starting program: /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/reread - -Breakpoint 1, foo () at ./gdb.base/reread2.c:9 -9 x++; -(gdb) PASS: gdb.base/reread.exp: second pass: run to foo() second time -testcase ./gdb.base/reread.exp completed in 2 seconds +This is foo +[Inferior 1 (process 3003) exited normally] +(gdb) FAIL: gdb.base/reread.exp: second pass: run to foo() second time +testcase ./gdb.base/reread.exp completed in 1 seconds === gdb Summary === -# of expected passes 7 +# of expected passes 5 +# of unexpected failures 2 Executing on host: /home/jkratoch/redhat/gdb-clean/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/jkratoch/redhat/gdb-clean/gdb/testsuite/../data-directory --version (timeout = 300) spawn -ignore SIGHUP /home/jkratoch/redhat/gdb-clean/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/jkratoch/redhat/gdb-clean/gdb/testsuite/../data-directory --version GNU gdb (GDB) 7.3.50.20110506-cvs @@ -104,4 +101,4 @@ For bug reporting instructions, please s . /home/jkratoch/redhat/gdb-clean/gdb/testsuite/../../gdb/gdb version 7.3.50.20110506-cvs -nw -nx -data-directory /home/jkratoch/redhat/gdb-clean/gdb/testsuite/../data-directory -runtest completed at Sat May 7 07:55:06 2011 +runtest completed at Sat May 7 07:59:23 2011 diff -dup -ru pass/gdb.sum fail/gdb.sum --- pass/gdb.sum 2011-05-07 07:55:06.000000000 +0200 +++ fail/gdb.sum 2011-05-07 07:59:23.000000000 +0200 @@ -1,4 +1,4 @@ -Test Run By jkratoch on Sat May 7 07:55:04 2011 +Test Run By jkratoch on Sat May 7 07:59:22 2011 Native configuration is x86_64-unknown-linux-gnu === gdb tests === @@ -10,14 +10,15 @@ Running target unix Running ./gdb.base/reread.exp ... PASS: gdb.base/reread.exp: breakpoint foo in first file PASS: gdb.base/reread.exp: run to foo() -PASS: gdb.base/reread.exp: run to foo() second time +FAIL: gdb.base/reread.exp: run to foo() second time PASS: gdb.base/reread.exp: second pass: breakpoint foo in first file PASS: gdb.base/reread.exp: second pass: run to foo() PASS: gdb.base/reread.exp: continue until exit at second pass -PASS: gdb.base/reread.exp: second pass: run to foo() second time +FAIL: gdb.base/reread.exp: second pass: run to foo() second time === gdb Summary === -# of expected passes 7 +# of expected passes 5 +# of unexpected failures 2 /home/jkratoch/redhat/gdb-clean/gdb/testsuite/../../gdb/gdb version 7.3.50.20110506-cvs -nw -nx -data-directory /home/jkratoch/redhat/gdb-clean/gdb/testsuite/../data-directory --qDbXVdCdHGoSgWSk--