Subject: bug#12910: Gnus in stuck state with gnus-demon

From: Haider Rizvi <[email-masked]>
Date: Sun, 24 Feb 2013 12:32:53 -0500

Sorry, I had forgotten about posting this info. Here is an example of what I see when I break, this was showing stuck when starting up gnus normally. 

Debugger entered--Lisp error: (quit)
  signal(quit nil)
  byte-code("\204\301 \210\302\303\304\"\207" [debug-on-quit nntp-close-server signal quit nil] 3)
  byte-code("\306	\n#\210\205\307\310\311#\312\216\310\313\314\217*\310\207" [-group -server -connectionless nntp-connection-timeout -timer nntp-with-open-group-internal nntp-possibly-change-group run-at-time nil #[nil "\n	;\203\306	!\202	\307\211
\2038
\211A@\211\2038	\211A@)=\203@\307\211\204\f\205T\310\f!\311>\203H\f\202T\312\313\f!!\210\314\n\"\307-\211\205_\313!\211\205r\315!\316=\205r\312!*\207" [nntp-server-buffer buffer nntp-connection-alist entry process alist get-buffer nil process-status (open run) nntp-kill-buffer process-buffer delq buffer-size 0 x -process -buffer] 5] ((byte-code "\203\301!\210\301\207" [-timer nnheader-cancel-timer] 2)) (funcall -bodyfun) ((quit (byte-code "\204\301 \210\302\303\304\"\207" [debug-on-quit nntp-close-server signal quit nil] 3)))] 4)
  nntp-with-open-group-function(nil "news.us.usenet-news.net" nil #[nil "\306!\307	@@	@\"\310\311r
q\210\312)
\205\347\205\347r
q\210
\211\2052\313\314!!)\203_\nb\210\315\203C\316\202D\317\312\320#\203PT\2029`W\203_\321 \210\202%\322 \210\204\225ed{rq\210\323 \210\203\324!\202\201c\210eb\210*rq\210\325\f\320#)\202\346eb\210\315\326\312\320#\203\253\310\224\311y\210`|\210\202\230ed{rq\210\323 \210\203\303\324!\202\305c\210eb\210*rq\210\327\330	@8:\203\337\330	@8\202\340\f\312\320$)),\207" [nntp-server-buffer infos last-point received method buf nntp-find-connection-buffer gnus-find-method-for-group 0 1 nil buffer-live-p get-buffer re-search-forward "^[.]" "^[0-9]" t nntp-accept-response nnheader-strip-cr erase-buffer mm-string-to-multibyte gnus-groups-to-gnus-format "^[.2-5]" gnus-active-to-gnus-format 4 nntp-retrieval-in-progress count buffer nntp-server-list-active-group string enable-multibyte-characters gnus-active-hashtb] 6])
  nntp-finish-retrieve-group-infos("news.us.usenet-news.net" (("nntp+news.us.usenet-news.net:comp.databases.ibm-db2" 3 ((1 . 122796)) ((seen (122376 . 122542) (122544 . 122570) (122572 . 122587) (122589 . 122796)) (download 122556 122739)) (nntp "news.us.usenet-news.net")) ("nntp+news.us.usenet-news.net:gnu.emacs.gnus" 3 ((1 . 64861)) ((seen (64515 . 64577) (64580 . 64581) (64584 . 64644) (64646 . 64667) (64669 . 64687) (64691 . 64693) (64695 . 64817) (64819 . 64837) (64847 . 64861)) (tick 64663 64714 64857)) (nntp "news.us.usenet-news.net")) ("nntp+news.us.usenet-news.net:gnu.emacs.help" 3 ((1 . 145351)) ((seen (142668 . 142693) (142695 . 142698) (142701 . 142710) (142712 . 142716) (142718 . 142780) (142782 . 142789) (142791 . 142809) (142811 . 142813) (142815 . 142822) (142824 . 142828) (142831 . 142841) (142843 . 142874) (142876 . 142898) (142901 . 142903) (142905 . 142906) (142908 . 142909) (142911 . 142979) (142981 . 143072) (143074 . 143146) (143148 . 143251) (143253 . 143254) 143256 (143258 . 143294) (143300 . 143301) (143305 . 143323) (143325 . 143351) (143353 . 143408) (143410 . 143424) (143426 . 143490) (143492 . 143493) (143499 . 143500) 143502 (143509 . 143609) (143611 . 143612) (143614 . 143678) (143680 . 143985) (143987 . 144002) (144004 . 144053) (144096 . 144115) (144141 . 144203) (144205 . 144407) (144410 . 144620) (144699 . 144881) (144883 . 145107) (145109 . 145228) (145230 . 145351)) (download (143547 . 143548) 143628 144418 145267) (expire 143875)) (nntp "news.us.usenet-news.net"))) 3)
  gnus-finish-retrieve-group-infos((nntp "news.us.usenet-news.net") (("nntp+news.us.usenet-news.net:comp.databases.ibm-db2" 3 ((1 . 122796)) ((seen (122376 . 122542) (122544 . 122570) (122572 . 122587) (122589 . 122796)) (download 122556 122739)) (nntp "news.us.usenet-news.net")) ("nntp+news.us.usenet-news.net:gnu.emacs.gnus" 3 ((1 . 64861)) ((seen (64515 . 64577) (64580 . 64581) (64584 . 64644) (64646 . 64667) (64669 . 64687) (64691 . 64693) (64695 . 64817) (64819 . 64837) (64847 . 64861)) (tick 64663 64714 64857)) (nntp "news.us.usenet-news.net")) ("nntp+news.us.usenet-news.net:gnu.emacs.help" 3 ((1 . 145351)) ((seen (142668 . 142693) (142695 . 142698) (142701 . 142710) (142712 . 142716) (142718 . 142780) (142782 . 142789) (142791 . 142809) (142811 . 142813) (142815 . 142822) (142824 . 142828) (142831 . 142841) (142843 . 142874) (142876 . 142898) (142901 . 142903) (142905 . 142906) (142908 . 142909) (142911 . 142979) (142981 . 143072) (143074 . 143146) (143148 . 143251) (143253 . 143254) 143256 (143258 . 143294) (143300 . 143301) (143305 . 143323) (143325 . 143351) (143353 . 143408) (143410 . 143424) (143426 . 143490) (143492 . 143493) (143499 . 143500) 143502 (143509 . 143609) (143611 . 143612) (143614 . 143678) (143680 . 143985) (143987 . 144002) (144004 . 144053) (144096 . 144115) (144141 . 144203) (144205 . 144407) (144410 . 144620) (144699 . 144881) (144883 . 145107) (145109 . 145228) (145230 . 145351)) (download (143547 . 143548) 143628 144418 145267) (expire 143875)) (nntp "news.us.usenet-news.net"))) 3)
  gnus-read-active-for-groups((nntp "news.us.usenet-news.net") (("nntp+news.us.usenet-news.net:comp.databases.ibm-db2" 3 ((1 . 122796)) ((seen (122376 . 122542) (122544 . 122570) (122572 . 122587) (122589 . 122796)) (download 122556 122739)) (nntp "news.us.usenet-news.net")) ("nntp+news.us.usenet-news.net:gnu.emacs.gnus" 3 ((1 . 64861)) ((seen (64515 . 64577) (64580 . 64581) (64584 . 64644) (64646 . 64667) (64669 . 64687) (64691 . 64693) (64695 . 64817) (64819 . 64837) (64847 . 64861)) (tick 64663 64714 64857)) (nntp "news.us.usenet-news.net")) ("nntp+news.us.usenet-news.net:gnu.emacs.help" 3 ((1 . 145351)) ((seen (142668 . 142693) (142695 . 142698) (142701 . 142710) (142712 . 142716) (142718 . 142780) (142782 . 142789) (142791 . 142809) (142811 . 142813) (142815 . 142822) (142824 . 142828) (142831 . 142841) (142843 . 142874) (142876 . 142898) (142901 . 142903) (142905 . 142906) (142908 . 142909) (142911 . 142979) (142981 . 143072) (143074 . 143146) (143148 . 143251) (143253 . 143254) 143256 (143258 . 143294) (143300 . 143301) (143305 . 143323) (143325 . 143351) (143353 . 143408) (143410 . 143424) (143426 . 143490) (143492 . 143493) (143499 . 143500) 143502 (143509 . 143609) (143611 . 143612) (143614 . 143678) (143680 . 143985) (143987 . 144002) (144004 . 144053) (144096 . 144115) (144141 . 144203) (144205 . 144407) (144410 . 144620) (144699 . 144881) (144883 . 145107) (145109 . 145228) (145230 . 145351)) (download (143547 . 143548) 143628 144418 145267) (expire 143875)) (nntp "news.us.usenet-news.net"))) 3)
  gnus-get-unread-articles(nil nil)
  gnus-setup-news(nil nil nil)
  byte-code("\204	\204\306 \210\202L\307\310!\210\311\n!\f\204
\203!\312 \210\313\314#\210\307\315!\210\2036\316\317\320\"\210\321 \210\322!\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)

Regards, 
-- 
Haider

On 2012-12-25, at 10:36 AM, Lars Ingebrigtsen <[email-masked]> wrote:

> Haider Rizvi <[email-masked]> writes:
> 
>> For my gnus setup, I have various nntp servers, nnimap, and nnrss servers. 
>> 
>> I have set the following for fetching mail and news automatically: 
>> (gnus-demon-add-handler 'gnus-demon-scan-news 30 1)
>> (gnus-demon-add-handler 'gnus-demon-scan-mail 31 t)
>> (gnus-demon-init)
>> 
>> Quite often, I see gnus stuck, the last message being about nndraft. I
>> can break out of it by pressing ctrl-g. It doesn't seem to be just gnus
>> getting msgs, I have been patient and waited for a while with no
>> movement.
> 
> Set `debug-on-quit' and post the backtrace you get when you `C-g' when
> it hangs.
> 
> -- 
> (domestic pets only, the antidote for overdose, milk.)
>  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen