From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#10669: More debugging Date: Sun, 05 Feb 2012 16:38:49 -0500 Message-ID: <87r4y9c652.fsf@maru.md5i.com> References: <87ipjsg5ut.fsf@maru.md5i.com> <878vkhis0o.fsf@maru.md5i.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328477969 9793 80.91.229.3 (5 Feb 2012 21:39:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 21:39:29 +0000 (UTC) To: 10669@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 05 22:39:27 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ru9nv-0004aD-Ka for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Feb 2012 22:39:23 +0100 Original-Received: from localhost ([::1]:47799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru9nv-0006lw-6P for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Feb 2012 16:39:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru9nr-0006lf-UP for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2012 16:39:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ru9no-0003Q7-9T for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2012 16:39:19 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru9no-0003Q3-5q for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2012 16:39:16 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ru9oY-0000Ng-30 for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2012 16:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Feb 2012 21:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10669 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10669-submit@debbugs.gnu.org id=B10669.13284779831435 (code B ref 10669); Sun, 05 Feb 2012 21:40:01 +0000 Original-Received: (at 10669) by debbugs.gnu.org; 5 Feb 2012 21:39:43 +0000 Original-Received: from localhost ([127.0.0.1]:55904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ru9oE-0000N6-Sp for submit@debbugs.gnu.org; Sun, 05 Feb 2012 16:39:43 -0500 Original-Received: from md5i.com ([75.151.244.229]:42391 helo=maru.md5i.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ru9oD-0000Mv-0P for 10669@debbugs.gnu.org; Sun, 05 Feb 2012 16:39:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:To:From; bh=BBZHfGnabxcxinixwbQ6OD1/M667W5I7LbMzgJqa7eE=; b=NDEybxFRJgFRfXa7RsYJHf5djeF6maqs1tH6yvPl4kS/DkE1mrz0Cf9JjxIPYmqGiV9twDfyE3FTLeJENZUI+KEcFsHDFujGVw7A5UCEc+fDyQuPbECeZk4OQqK5zE7e; Original-Received: from md5i by maru.md5i.com with local (Exim 4.77) (envelope-from ) id 1Ru9nN-0004at-7p for 10669@debbugs.gnu.org; Sun, 05 Feb 2012 16:38:49 -0500 In-Reply-To: <878vkhis0o.fsf@maru.md5i.com> (Michael Welsh Duggan's message of "Sun, 05 Feb 2012 03:49:43 -0500") User-Agent: Gnus/5.11002 (No Gnus v0.20) Emacs/24.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list 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:56536 Archived-At: Michael Welsh Duggan writes: > Okay. Here's what the infinite loop actually is: > > The C function 'command_loop' calls 'top_level_1', which eventually > evals 'top-level', which is 'normal-top-level'. 'normal-top-level' > notes that 'command-line-processed' is t, calls (message "Back to top > level."), and then returns. > > Back to 'command_loop, which then calls 'command_loop_2', which calls > command_loop_1', which calls 'read_key_sequence', which calls > 'read_char'. > > 'read_char' eventually calls 'kbd_buffer_get_event' at keyboard.c:2797. > This ends up calling getchar(), since we are running as a daemon > (keyboard.c:3796). This getchar() returns -1. 'read_char' returns this > -1. So, at this point, daemon_pipe[] == {3, 4}. It looks to me that 'daemon-initialized' isn't being called by 'command-line'. This may be due to the --eval "(server-start)"? I think I may need some help debugging further than this. -- Michael Welsh Duggan (md5i@md5i.com)