From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#15051: 24.3; gdb -mi: breakpoint with in non-existent source file spams terminal incessantly Date: Sun, 06 Dec 2020 16:41:16 +0100 Message-ID: <87tusz7xib.fsf@gnus.org> References: <5203A15A.1080307@cs.utoronto.ca> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33086"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 15051@debbugs.gnu.org To: Ryan Johnson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 16:44:32 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 1klwD9-0008UB-PA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 16:44:31 +0100 Original-Received: from localhost ([::1]:43148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klwD8-0001i5-QR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 10:44:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klwAk-0000ld-8f for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 10:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klwAk-00048V-1p for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 10:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klwAj-00077Y-Vj for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 10:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 15:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15051 X-GNU-PR-Package: emacs Original-Received: via spool by 15051-submit@debbugs.gnu.org id=B15051.160726928827315 (code B ref 15051); Sun, 06 Dec 2020 15:42:01 +0000 Original-Received: (at 15051) by debbugs.gnu.org; 6 Dec 2020 15:41:28 +0000 Original-Received: from localhost ([127.0.0.1]:50819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klwAC-00076V-AO for submit@debbugs.gnu.org; Sun, 06 Dec 2020 10:41:28 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klwAA-00076G-Qx for 15051@debbugs.gnu.org; Sun, 06 Dec 2020 10:41:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=//N3CP5wDtsJHsvvl5XarKnrUQfwanh/jIsTzEv5zow=; b=mEiOabVmRFGNvBi7F6EOE0CD8e 2X4nqJbq2X2kB4Omv0J5CgrBPCqfGZQKQ+ltTceEC7OZIFEBQyG/vPThxPJQX86G/vDO7g9rQBjfL zW83mWor33tNfLpQPQd1ljMIbyvKaRdVWew37Jn14JmwgloK8tDihsRAUF5nnoJUWkh8=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klwA1-0005cZ-Tm; Sun, 06 Dec 2020 16:41:20 +0100 X-Now-Playing: Mouse on Mars's _Pres Rebooted_: "Playtime" In-Reply-To: <5203A15A.1080307@cs.utoronto.ca> (Ryan Johnson's message of "Thu, 08 Aug 2013 09:47:06 -0400") 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:195121 Archived-At: Ryan Johnson writes: > 1. Create the following two files: > > /* <<<--- foo.c --->>> */ > #include > extern void bar(); > int main() { > puts("Thinking about calling bar");; > puts("Planning to call bar"); > puts("About to call bar"); > bar(); > puts("Called bar"); > return 0; > }; > /* <<<--- end foo.c --->>> */ > > /* <<<--- bar.c --->>> */ > void bar() { } > /* <<<--- end bar.c --->>> */ > > 2. Compile them: `gcc -g foo.c bar.c -o bug' > > 3. Delete or move bar.c: `rm bar.c' > > 4. Invoke emacs: `emacs -Q' > > 5. M-x gdb (giving `bug' as the executable to debug) (This bug report unfortunately got no response at the time.) 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no