From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tsugutomo.enami@jp.sony.com Newsgroups: gmane.emacs.bugs Subject: bug#18728: 24.0.50; gnus hangs while reading mail from imap server Date: Wed, 15 Oct 2014 07:56:20 +0900 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413332848 9218 80.91.229.3 (15 Oct 2014 00:27:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2014 00:27:28 +0000 (UTC) To: 18728@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 02:27:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XeCQz-00044H-3R for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 02:27:21 +0200 Original-Received: from localhost ([::1]:40939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeCQw-0003lB-7v for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2014 20:27:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeCQn-0003kD-9v for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 20:27:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeCQg-0003Y1-Ni for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 20:27:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeCQg-0003Xp-Jz for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 20:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XeCQf-0005d4-W7 for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 20:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: tsugutomo.enami@jp.sony.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Oct 2014 00:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141333279221595 (code B ref -1); Wed, 15 Oct 2014 00:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2014 00:26:32 +0000 Original-Received: from localhost ([127.0.0.1]:43723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeCQB-0005cF-LF for submit@debbugs.gnu.org; Tue, 14 Oct 2014 20:26:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45530) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeCQ7-0005c4-RM for submit@debbugs.gnu.org; Tue, 14 Oct 2014 20:26:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeCQ2-00035q-36 for submit@debbugs.gnu.org; Tue, 14 Oct 2014 20:26:27 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeCQ1-00035e-Vi for submit@debbugs.gnu.org; Tue, 14 Oct 2014 20:26:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeCPw-0003j0-AI for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 20:26:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeCPq-000303-Pz for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 20:26:16 -0400 Original-Received: from ms13.sony.co.jp ([2001:cf8:0:57::230]:40716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeCPq-0002zK-8K for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 20:26:10 -0400 Original-Received: from ms6.sony.co.jp (ms6.sony.co.jp [IPv6:2001:cf8:0:56::204]) by ms13.sony.co.jp (R8/Sony) with ESMTP id s9EN6L4r021245 for ; Wed, 15 Oct 2014 08:06:21 +0900 (JST) Original-Received: from mta6.noc.sony.co.jp ([IPv6:2001:cf8:0:192::43]) by ms6.sony.co.jp (R8/Sony) with ESMTP id s9EN6I8J011360 for ; Wed, 15 Oct 2014 08:06:18 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.04,719,1406559600"; d="scan'208";a="40724535" Original-Received: from sigxcpu.sm.sony.co.jp ([43.4.4.150]) by mrelay6.noc.sony.co.jp with ESMTP; 15 Oct 2014 08:06:18 +0900 Original-Received: by sigxcpu.sm.sony.co.jp (Postfix, from userid 8324) id 7E3EB2DF7C; Wed, 15 Oct 2014 07:56:20 +0900 (JST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:94518 Hi. The gnus hangs while reading mail from imap server on startup, with displaying "nnimap read NNNNNNk" in mini buffer. The amount of NNNNNN was about 200Mbytes. The backtrace when debug-on-quit is set and hitting C-g is here (since it contains raw control code, the output is passed through cat -v): Debugger entered: ("Quit") byte-code("^H\203^H^@\302\303!\210\304 !\210\305\207" [debug-on-quit process debug "Quit" delete-process nil] 2) nnimap-wait-for-response(416 t) nnimap-fetch-inbox((433993 . 472075)) nnimap-split-incoming-mail() nnimap-request-scan(nil "rplaca.sm.sony.co.jp") gnus-request-scan(nil (nnimap "rplaca.sm.sony.co.jp" (nnimap-inbox "INBOX") (nnimap-split-methods (quote nnmail-split-fancy)))) gnus-get-unread-articles(nil) gnus-setup-news(nil nil nil) byte-code("^H\204^N^@ \204^N^@\306 \210\202L^@\307\310!\210\311\n!^S\f\204^^^@^M\203!^@\312 \210\313\314^N^X^H#\210\307\315!\210^N^Y\2036^@\316\317\320\"\210\321 \210\322^N^X!\210\323 \210\324\325!\210\326 \210\307\327!\210\314\207" [dont-connect did-connect gnus-startup-file gnus-current-startup-file gnus-slave gnus-use-dribble-file gnus-group-quit gnus-run-hooks gnus-startup-hook gnus-make-newsrc-file gnus-dribble-read-file gnus-setup-news nil gnus-setup-news-hook gnus-request-create-group "queue" (nndraft "") gnus-start-draft-setup gnus-group-list-groups gnus-group-first-unread-group gnus-configure-windows group gnus-group-set-mode-line gnus-started-hook level gnus-agent] 4) gnus-1(nil nil nil) gnus(nil) call-interactively(gnus t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) Last few lines of buffer named "*nnimap rplaca.sm.sony.co.jp nil *nntpd**" is here (^M is actually a raw carrige-return code): X-Spam-Flag: No^M ^M )^M 416 OK Fetch completed.^M 417 OK NOOP completed.^M 418 OK NOOP completed.^M The work around for me was adding code to ignore above NOOP lines in nnimap-wait-for-response, as follows: --- nnimap.el.orig 2011-06-01 09:27:58.000000000 +0900 +++ nnimap.el 2014-10-14 13:56:31.000000000 +0900 @@ -1683,7 +1689,8 @@ (while (and (not (bobp)) (progn (forward-line -1) - (looking-at "\\*")))) + (or (looking-at "\\*") + (looking-at "[0-9]+ OK NOOP"))))) (not (looking-at (format "%d .*\n" sequence))))) (when messagep (nnheader-message 7 "nnimap read %dk" (/ (buffer-size) 1000))) I guess the NOOP lines are response for the NOOP command sent to keep a connection. The gnus version used here is rather old but, at a glance, the function in upstream repository is almost same. enami. In GNU Emacs 24.0.50.1 (x86_64--netbsd) of 2011-06-01 on gco-w12f-177-176.sm.sony.co.jp configured using `configure 'x86_64--netbsd' '--with-x=no' 'build_alias=x86_64--netbsd' 'host_alias=x86_64--netbsd' 'target_alias=x86_64--netbsd'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: file-name-shadow-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Recent input: C-n C-n f C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p TAB C-p TAB C-@ ESC C-f ESC w C-x o TAB ( o r SPC ESC C-f ) C-b RET TAB C-y ESC C-a ESC C-f C-x C-s ESC v ESC v C-n C-x o C-x C-b C-x o C-n C-n C-n f ESC < RET RET C-p C-p * b a c k t r a c e * SPC C-x C-j q f a DEL DEL b a f f a C-n C-p C-v C-v C-v C-n C-n C-p C-v C-n C-n C-@ ESC C-f C-a C-@ C-e C-w C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p RET C-y SPC C-x C-j C-x C-j n o S a i g o SPC S u u g y o u SPC C-g C-j C-b C-b C-b C-b C-b Q C-f C-f SPC Q C-e SPC C-j C-a C-x C-s ~ / g n u s - b u g TAB . t x t RET C-x C-s C-x 1 ESC > ESC v C-v ESC < C-n C-n C-n C-n C-n C-n C-n C-n C-n ESC C-f C-f C-b ESC C-f C-a C-x C-b C-x o C-n C-n f C-x 1 C-x b SPC * DEL M i TAB TAB 0 TAB C-g q C-x C-b C-x o ESC > ESC C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-p C-n C-a f C-x 1 ESC < C-v C-v C-v C-v ESC < ESC x e m a c s SPC v TAB RET ESC x r e p o SPC r TAB RET Recent messages: Could not activate SKK SERVER on parity-error.sm.sony.co.jp. Wrote /home/enami/gnus-bug.txt (No changes need to be saved) Mark set [2 times] Making completion list... Entering debugger... Back to top level. Mark set [3 times] GNU Emacs 24.0.50.1 (x86_64--netbsd) of 2011-06-01 on gco-w12f-177-176.sm.sony.co.jp Making completion list... Load-path shadows: None found. Features: (shadow emacsbug gnus-async gnus-dup qp gnus-ml disp-table nndraft nnmh info tool-bar vc-bzr find-func debug cus-edit cus-start cus-load help-fns mail-extr sort newcomment multi-isearch mule-util skk help-mode view utf-7 rfc2104 auth-source eieio byte-opt bytecomp byte-compile cconv assoc nnimap parse-time utf7 netrc network-stream starttls tls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art image mouse mm-uu mml2015 pgg pgg-parse pgg-def epg-config mm-view mml-smime smime password-cache dig mailcap nntp gnus-cache nnir gnus-sum macroexp nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message sendmail regexp-opt format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util time-date mail-utils mm-util mail-prsvr wid-edit japan-util ediff-hook vc-hooks lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)