From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34769: Bug in emacs 26.1 gdb-send match-string applied after non-matching string-match Date: Thu, 07 Mar 2019 17:18:20 +0200 Message-ID: <83h8cebtmr.fsf@gnu.org> References: <1969119607.262870.1551871623530@email.ionos.de> <835zsvdfz4.fsf@gnu.org> <1047508139.239469.1551903054974@email.ionos.de> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="126099"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34769-done@debbugs.gnu.org To: Tobias Zawada Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 07 16:22:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1uqh-000Wh2-Mf for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Mar 2019 16:22:19 +0100 Original-Received: from localhost ([127.0.0.1]:53693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1uqg-0008BQ-Hh for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Mar 2019 10:22:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1unX-0005VD-5p for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2019 10:19:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1unW-0000HA-D7 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2019 10:19:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50259) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1unW-0000Gy-7a for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2019 10:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h1unW-0001Pu-2K for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2019 10:19:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Mar 2019 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 34769 X-GNU-PR-Package: emacs Mail-Followup-To: 34769@debbugs.gnu.org, eliz@gnu.org, i_inbox@tn-home.de Original-Received: via spool by 34769-done@debbugs.gnu.org id=D34769.15519719275419 (code D ref 34769); Thu, 07 Mar 2019 15:19:01 +0000 Original-Received: (at 34769-done) by debbugs.gnu.org; 7 Mar 2019 15:18:47 +0000 Original-Received: from localhost ([127.0.0.1]:35569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1unH-0001PK-5l for submit@debbugs.gnu.org; Thu, 07 Mar 2019 10:18:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1unF-0001P7-Ft for 34769-done@debbugs.gnu.org; Thu, 07 Mar 2019 10:18:45 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1unA-0008Ud-7l; Thu, 07 Mar 2019 10:18:40 -0500 Original-Received: from [176.228.60.248] (port=2049 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h1un9-00064J-Ci; Thu, 07 Mar 2019 10:18:39 -0500 In-reply-to: <1047508139.239469.1551903054974@email.ionos.de> (message from Tobias Zawada on Wed, 6 Mar 2019 21:10:54 +0100 (CET)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156122 Archived-At: > Date: Wed, 6 Mar 2019 21:10:54 +0100 (CET) > From: Tobias Zawada > Cc: 34769@debbugs.gnu.org > > Dear Eli, > thanks for looking into this. > > > > It is wrong to call (match-string 3 string) if (string-match gdb-control-commands-regexp string) returned nil. > > ... > > That is true, and a cleanup is a good idea. But please note that the > > undefined results are not used if control-command-p is nil, so the > > issue is not that serious. > > The match data is that one of the previous successful matching operation. > One gets an args-out-of-range signal if the indexes in the match data are larger than the width of the string argument to match-string. That is how I discovered the error. You are right; I've now fixed this on the emacs-26 branch.