From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15051: 24.3; gdb -mi: breakpoint with in non-existent source file spams terminal incessantly Date: Tue, 15 Dec 2020 19:21:54 +0200 Message-ID: <83y2hz9e8d.fsf@gnu.org> References: <5203A15A.1080307@cs.utoronto.ca> <87tusz7xib.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 15051-done@debbugs.gnu.org, ryan.johnson@cs.utoronto.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 15 18:23:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpE2Y-00059X-Ag for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 18:23:10 +0100 Original-Received: from localhost ([::1]:50598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpE2X-0005ys-Dc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 12:23:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpE2Q-0005yR-8l for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 12:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpE2Q-00053e-0j for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 12:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpE2P-00055D-T2 for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 12:23:01 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Dec 2020 17:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Mail-Followup-To: 15051@debbugs.gnu.org, eliz@gnu.org, ryan.johnson@cs.utoronto.ca Original-Received: via spool by 15051-done@debbugs.gnu.org id=D15051.160805292919456 (code D ref 15051); Tue, 15 Dec 2020 17:23:01 +0000 Original-Received: (at 15051-done) by debbugs.gnu.org; 15 Dec 2020 17:22:09 +0000 Original-Received: from localhost ([127.0.0.1]:58998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpE1Z-00053j-2i for submit@debbugs.gnu.org; Tue, 15 Dec 2020 12:22:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpE1X-00053W-9g for 15051-done@debbugs.gnu.org; Tue, 15 Dec 2020 12:22:07 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54875) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpE1R-0004xS-Sm; Tue, 15 Dec 2020 12:22:01 -0500 Original-Received: from [176.228.60.248] (port=1365 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kpE1R-0007Ys-3j; Tue, 15 Dec 2020 12:22:01 -0500 In-Reply-To: <87tusz7xib.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 06 Dec 2020 16:41:16 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196165 Archived-At: > From: Lars Ingebrigtsen > Date: Sun, 06 Dec 2020 16:41:16 +0100 > Cc: 15051@debbugs.gnu.org > > Thanks for the clear recipe to reproduce this bug. It is still present > in Emacs 28, but has changed, and is now even worse, I think. > > First of all: > > > > > 6. Execute the following commands in gdb: > > b bar > > start > > n > > n > > fin > > n > > n > > n > > quit > > After "b bar", Emacs says: > > File /tmp/"/tmp/bar.c" is read-only on disk. Make buffer read-only, too? (y or n) n > > Then, it's these, as you point out: > > (gdb) b bar > Breakpoint 1 at 0x117e: file bar.c, line 1. > (gdb) list bar.c:1 > 1 bar.c: No such file or directory. > start > Temporary breakpoint 2 at 0x1139: file foo.c, line 4. > Starting program: /tmp/bug > > Temporary breakpoint 2, main () at foo.c:4 > 4 puts("Thinking about calling bar");; > (gdb) list bar.c:1 > 1 bar.c: No such file or directory. > n > 5 puts("Planning to call bar"); > (gdb) list bar.c:1 > 1 bar.c: No such file or directory. > n > 6 puts("About to call bar"); > (gdb) list bar.c:1 > 1 bar.c: No such file or directory. > n > 7 bar(); > > And then I got 20K copies of: > > list bar.c:1 > 1 in bar.c > list bar.c:1 > 1 in bar.c > list bar.c:1 > 1 in bar.c > list bar.c:1 > 1 in bar.c > > which continued until I killed gdb. > > So this problem is still present in Emacs 28, but is now somewhat > different. I've now fixed this on the master branch.