From patchwork Tue Jun 17 19:24:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 1542 Received: (qmail 494 invoked by alias); 17 Jun 2014 19:24:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 482 invoked by uid 89); 17 Jun 2014 19:24:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 17 Jun 2014 19:24:11 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5HJOAiv000942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 17 Jun 2014 15:24:10 -0400 Received: from host2.jankratochvil.net (ovpn-116-65.ams2.redhat.com [10.36.116.65]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5HJO7YU025048 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 17 Jun 2014 15:24:09 -0400 Date: Tue, 17 Jun 2014 21:24:06 +0200 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Regression with default scheduler-locking=step [Re: [pushed] Consecutive step-overs trigger internal error.] Message-ID: <20140617192406.GB10997@host2.jankratochvil.net> References: <1398191068-7631-1-git-send-email-palves@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1398191068-7631-1-git-send-email-palves@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes On Tue, 22 Apr 2014 20:24:28 +0200, Pedro Alves wrote: > Tested on x86_64 Fedora 17, native and gdbserver, and also native on > top of my "software single-step on x86_64" series. 483805cf9ea5a6dace41415d8830e93fccc49c43 is the first bad commit commit 483805cf9ea5a6dace41415d8830e93fccc49c43 Author: Pedro Alves Date: Tue Apr 22 15:00:56 2014 +0100 Consecutive step-overs trigger internal error. (gdb) next^M [Thread 0x7ffff7fda700 (LWP 27168) exited]^M [New LWP 27168]^M [Thread 0x7ffff74ee700 (LWP 27174) exited]^M process 27168 is executing new program: /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.threads/thread-execl^M [Thread debugging using libthread_db enabled]^M Using host libthread_db library "/lib64/libthread_db.so.1".^M infrun.c:5225: internal-error: switch_back_to_stepped_thread: Assertion `!schedlock_applies (1)' failed.^M A problem internal to GDB has been detected,^M further debugging may prove unreliable.^M Quit this debugging session? (y or n) FAIL: gdb.threads/thread-execl.exp: get to main in new image (GDB internal error) Resyncing due to internal error. The regressions happens only with the attached patch which I am not sure if it is considered as a valid FSF GDB regression or not but I think it is. Jan diff --git a/gdb/infrun.c b/gdb/infrun.c index 47604c7..3f0d46b 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1661,7 +1661,7 @@ static const char *const scheduler_enums[] = { schedlock_step, NULL }; -static const char *scheduler_mode = schedlock_off; +static const char *scheduler_mode = schedlock_step; static void show_scheduler_mode (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)