From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10285: 23.3; Gud hangs terminal when not running gdb --annotate=3 Date: Mon, 12 Dec 2011 16:40:39 -0500 Message-ID: References: <4EE66C58.6000303@cfl.rr.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323726060 20528 80.91.229.12 (12 Dec 2011 21:41:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2011 21:41:00 +0000 (UTC) Cc: 10285@debbugs.gnu.org To: Phillip Susi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 12 22:40:56 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RaDcG-0008Gh-FN for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Dec 2011 22:40:56 +0100 Original-Received: from localhost ([::1]:40683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaDcG-0000VE-1c for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Dec 2011 16:40:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaDcB-0000Sj-Kk for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2011 16:40:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaDc8-0003fo-W7 for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2011 16:40:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaDc8-0003fG-OQ for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2011 16:40:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RaDdK-0004gM-Ff for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2011 16:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Dec 2011 21:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10285 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10285-submit@debbugs.gnu.org id=B10285.132372611917990 (code B ref 10285); Mon, 12 Dec 2011 21:42:02 +0000 Original-Received: (at 10285) by debbugs.gnu.org; 12 Dec 2011 21:41:59 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RaDdG-0004g5-Lu for submit@debbugs.gnu.org; Mon, 12 Dec 2011 16:41:59 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RaDdD-0004fx-Jq for 10285@debbugs.gnu.org; Mon, 12 Dec 2011 16:41:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAKNz5k5FxLI7/2dsb2JhbABDqwaBBoFyAQEEAVYjBQsLDiIEEhQYDSSIG7U+iFWDGASIMZo0hFE X-IronPort-AV: E=Sophos;i="4.71,341,1320642000"; d="scan'208";a="152022081" Original-Received: from 69-196-178-59.dsl.teksavvy.com (HELO ceviche.home) ([69.196.178.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Dec 2011 16:40:40 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0D2DB660D4; Mon, 12 Dec 2011 16:40:40 -0500 (EST) In-Reply-To: <4EE66C58.6000303@cfl.rr.com> (Phillip Susi's message of "Mon, 12 Dec 2011 16:04:24 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Dec 2011 16:42:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54910 Archived-At: > Ever since upgrading to emacs23 I have been unable to run gdb with sudo > under emacs gud mode ( it never gets my password ). I have recently studied > the issue in depth and found that the problem is more broad than sudo. > When starting gud mode with M-x gdb, it prompts you for what to run, and if > you don't run gdb --annotate=3, then gud mode hangs and nothing you type is > sent to the inferior process. It seems --annotate=3 generates some magic > output that gud mode is waiting on and until it sees it, will not forward > anything you type to the inferior process. Indeed. This has more or less always been the case to some extent, but the gdb-ui code in Emacs-23 made it worse. Emacs-24 replaced that code with gdb-mi (which uses --ui=mi instead of --annotate=3) which suffers from the same problem, but we've added a check that signals an error to the user pointing out the source of the problem, instead of just hanging silently. Could you check the Emacs-24 pretest to see if it addresses the problem? Presumably now that you know you need to add the magic argument, you are able to fix the command to make your gdb+sudo case work, right? Stefan