Gnus development mailing list
 help / color / mirror / Atom feed
* Crash on startup with recent gnus-agent.el patch
@ 2006-05-30  8:07 Simon Josefsson
  2006-05-30  8:34 ` Katsumi Yamaoka
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Josefsson @ 2006-05-30  8:07 UTC (permalink / raw)


These changes:

2006-05-30  Katsumi Yamaoka  <yamaoka@jpl.org>

	* gnus-agent.el (directory-files-and-attributes): Move forward.

2006-05-29  Kevin Greiner  <kevin.greiner@compsol.cc>

	* gnus-agent.el (Added gnus-agent-flush*) to purge agent info.
	(gnus-agent-read-agentview): Fixed handling of end-of-file error.
	(gnus-agent-read-local): All symbols allocated in my-obarray
	(gnus-agent-set-local): Skip invalid entries (min and/or max is nil).
	(gnus-agent-regenerate-group): Check numeric names to see if they are
	messages or groups.
	(gnus-agent-total-fetched-for): Ignore 'dummy.group' (there should be a
	better way of do this...)

appear to cause problems for me when I start Gnus, I get the backtrace
below.  If I revert to 7.57 of gnus-agent.el, it works.

Debugger entered--Lisp error: (file-error "Opening directory" "no such file or directory" "/home/jas/News/agent/nntp/news.gmane.org/gmane.ietf.techspec")
  directory-files-and-attributes("/home/jas/News/agent/nntp/news.gmane.org/gmane.ietf.techspec" nil "^[0-9]+$" t)
  (let* (alist (file-attributes ...)) (while file-attributes (let* ... ...)) alist)
  (condition-case nil (progn (nnheader-insert-file-contents file) (goto-char ...) (let ... ... ... alist)) ((end-of-file file-error) (let* ... ... alist)))
  (save-current-buffer (set-buffer temp-buffer) (condition-case nil (progn ... ... ...) (... ...)))
  (with-current-buffer temp-buffer (condition-case nil (progn ... ... ...) (... ...)))
  (unwind-protect (with-current-buffer temp-buffer (condition-case nil ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (let ((temp-buffer ...)) (unwind-protect (with-current-buffer temp-buffer ...) (and ... ...)))
  (with-temp-buffer (condition-case nil (progn ... ... ...) (... ...)))
  gnus-agent-read-agentview("/home/jas/News/agent/nntp/news.gmane.org/gmane.ietf.techspec/.agentview")
  gnus-cache-file-contents("/home/jas/News/agent/nntp/news.gmane.org/gmane.ietf.techspec/.agentview" gnus-agent-file-loading-cache gnus-agent-read-agentview)
  (setq gnus-agent-article-alist (gnus-cache-file-contents (gnus-agent-article-name ".agentview" group) (quote gnus-agent-file-loading-cache) (quote gnus-agent-read-agentview)))
  (let ((gnus-agent-read-agentview group)) (setq gnus-agent-article-alist (gnus-cache-file-contents ... ... ...)))
  gnus-agent-load-alist("nntp+news.gmane.org:gmane.ietf.techspec")
  (let* ((gnus-agent-article-alist gnus-agent-article-alist) (gnus-agent-file-loading-cache gnus-agent-file-loading-cache) (alist ...)) (when alist (setq minmax ...) (gnus-agent-set-local group ... ... gmane gnus-command-method local)))
  (if minmax nil (let* (... ... ...) (when alist ... ...)))
  (unless minmax (let* (... ... ...) (when alist ... ...)))
  (let* ((gmane ...) (gnus-command-method ...) (local ...) (symb ...) (minmax ...)) (unless minmax (let* ... ...)) minmax)
  gnus-agent-get-local("nntp+news.gmane.org:gmane.ietf.techspec")
  (let* ((local ...) (active-min ...) (active-max ...) (agent-min ...) (agent-max ...)) (when (< agent-min active-min) (setcar active agent-min)) (when (> agent-max active-max) (setcdr active agent-max)) (when (and info ...) (let ... ...) (gnus-agent-set-local group agent-min ...)))
  (progn (let* (... ... ... ... ...) (when ... ...) (when ... ...) (when ... ... ...)))
  (if (gnus-agent-method-p gnus-command-method) (progn (let* ... ... ... ...)))
  (when (gnus-agent-method-p gnus-command-method) (let* (... ... ... ... ...) (when ... ...) (when ... ...) (when ... ... ...)))
  (let* ((gnus-command-method ...)) (when (gnus-agent-method-p gnus-command-method) (let* ... ... ... ...)))
  gnus-agent-possibly-alter-active("nntp+news.gmane.org:gmane.ietf.techspec" (1 . 236) ("nntp+news.gmane.org:gmane.ietf.techspec" 3 ((1 . 236)) ((seen ... ... ... 222 225 228 230 232 ...)) "nntp:news.gmane.org"))
  gnus-get-unread-articles(nil)
  gnus-setup-news(nil nil nil)
  byte-code("\b\x0e	\x0eà ‚QÃÃ!�\n!\f\x1e\r!à \x0eƒ+ÃÃÃ\"�ÃÃ\"�Ã\x0e\b#�Ã!� �^[!� �Ã!� �Ã!�" [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-request-create-group "queue" (nndraft "") "drafts" (nndraft "") gnus-setup-news nil gnus-setup-news-hook 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 gnus-agent level] 4)
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Crash on startup with recent gnus-agent.el patch
  2006-05-30  8:07 Crash on startup with recent gnus-agent.el patch Simon Josefsson
@ 2006-05-30  8:34 ` Katsumi Yamaoka
  2006-05-30  9:01   ` Simon Josefsson
  0 siblings, 1 reply; 5+ messages in thread
From: Katsumi Yamaoka @ 2006-05-30  8:34 UTC (permalink / raw)


>>>>> In <87veroj5pj.fsf@latte.josefsson.org> Simon Josefsson wrote:

> These changes:

> 2006-05-30  Katsumi Yamaoka  <yamaoka@jpl.org>

> 	* gnus-agent.el (directory-files-and-attributes): Move forward.

> 2006-05-29  Kevin Greiner  <kevin.greiner@compsol.cc>

> 	* gnus-agent.el (Added gnus-agent-flush*) to purge agent info.
> 	(gnus-agent-read-agentview): Fixed handling of end-of-file error.
> 	(gnus-agent-read-local): All symbols allocated in my-obarray
> 	(gnus-agent-set-local): Skip invalid entries (min and/or max is nil).
> 	(gnus-agent-regenerate-group): Check numeric names to see if they are
> 	messages or groups.
> 	(gnus-agent-total-fetched-for): Ignore 'dummy.group' (there should be a
> 	better way of do this...)

> appear to cause problems for me when I start Gnus, I get the backtrace
> below.  If I revert to 7.57 of gnus-agent.el, it works.

> Debugger entered--Lisp error: (file-error "Opening directory" "no such file or directory" "/home/jas/News/agent/nntp/news.gmane.org/gmane.ietf.techspec")

The gmane.ietf.techspec group was created recently, wasn't it?
I got a similar error and reported it in this list[1] a moment
ago together with a way to reproduce that error.  A workaround I
tried is to remove an entry of the group in question from the
~/.newsrc.eld file.

[1] <b4mhd383r9g.fsf@jpl.org>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Crash on startup with recent gnus-agent.el patch
  2006-05-30  8:34 ` Katsumi Yamaoka
@ 2006-05-30  9:01   ` Simon Josefsson
  2006-05-30 12:37     ` gdt
  2006-05-30 23:29     ` Katsumi Yamaoka
  0 siblings, 2 replies; 5+ messages in thread
From: Simon Josefsson @ 2006-05-30  9:01 UTC (permalink / raw)
  Cc: ding

Katsumi Yamaoka <yamaoka@jpl.org> writes:

>>>>>> In <87veroj5pj.fsf@latte.josefsson.org> Simon Josefsson wrote:
>
>> These changes:
>
>> 2006-05-30  Katsumi Yamaoka  <yamaoka@jpl.org>
>
>> 	* gnus-agent.el (directory-files-and-attributes): Move forward.
>
>> 2006-05-29  Kevin Greiner  <kevin.greiner@compsol.cc>
>
>> 	* gnus-agent.el (Added gnus-agent-flush*) to purge agent info.
>> 	(gnus-agent-read-agentview): Fixed handling of end-of-file error.
>> 	(gnus-agent-read-local): All symbols allocated in my-obarray
>> 	(gnus-agent-set-local): Skip invalid entries (min and/or max is nil).
>> 	(gnus-agent-regenerate-group): Check numeric names to see if they are
>> 	messages or groups.
>> 	(gnus-agent-total-fetched-for): Ignore 'dummy.group' (there should be a
>> 	better way of do this...)
>
>> appear to cause problems for me when I start Gnus, I get the backtrace
>> below.  If I revert to 7.57 of gnus-agent.el, it works.
>
>> Debugger entered--Lisp error: (file-error "Opening directory" "no such file or directory" "/home/jas/News/agent/nntp/news.gmane.org/gmane.ietf.techspec")
>
> The gmane.ietf.techspec group was created recently, wasn't it?

No, not really, the group didn't exist in the local Agent cache.  Not
all groups will exist locally, so code cannot assume they can access
the agent cache for all groups (or it should create the directory when
it needs it).  I didn't look at the code changes, so I don't know what
it does, nor what is intended...

> I got a similar error and reported it in this list[1] a moment
> ago together with a way to reproduce that error.  A workaround I
> tried is to remove an entry of the group in question from the
> ~/.newsrc.eld file.

It happened to a lot of groups for me, so it isn't a good workaround.
Reverting to 7.57 solves it though.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Crash on startup with recent gnus-agent.el patch
  2006-05-30  9:01   ` Simon Josefsson
@ 2006-05-30 12:37     ` gdt
  2006-05-30 23:29     ` Katsumi Yamaoka
  1 sibling, 0 replies; 5+ messages in thread
From: gdt @ 2006-05-30 12:37 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 242 bytes --]


This is causing me problems as well.  In my case, startup failed on my
imap INBOX, and then after I did mkdir on that on another imap box.
Reverting to 'cvs update -D 5/29' got me working Gnus.

-- 
	Greg Troxel <gdt@work.lexort.com>

[-- Attachment #2: Type: application/pgp-signature, Size: 185 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Crash on startup with recent gnus-agent.el patch
  2006-05-30  9:01   ` Simon Josefsson
  2006-05-30 12:37     ` gdt
@ 2006-05-30 23:29     ` Katsumi Yamaoka
  1 sibling, 0 replies; 5+ messages in thread
From: Katsumi Yamaoka @ 2006-05-30 23:29 UTC (permalink / raw)
  Cc: ding

Kevin, could you please fix this problem in a proper way?

>>>>> In <87r72bkht4.fsf@latte.josefsson.org> Simon Josefsson wrote:

> Katsumi Yamaoka <yamaoka@jpl.org> writes:

>> The gmane.ietf.techspec group was created recently, wasn't it?

> No, not really, the group didn't exist in the local Agent cache.  Not
> all groups will exist locally, so code cannot assume they can access
> the agent cache for all groups (or it should create the directory when
> it needs it).

I see.

>> A workaround I tried is to remove an entry of the group in question
>> from the ~/.newsrc.eld file.

> It happened to a lot of groups for me, so it isn't a good workaround.
> Reverting to 7.57 solves it though.

Here's another workaround, which should do the trick even if
there're a lot of such groups.

(defadvice gnus-cache-file-contents (around check-file-existence activate)
  "Do nothing unless FILE exists."
  (when (file-exists-p (ad-get-arg 0))
    ad-do-it))



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-30 23:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-30  8:07 Crash on startup with recent gnus-agent.el patch Simon Josefsson
2006-05-30  8:34 ` Katsumi Yamaoka
2006-05-30  9:01   ` Simon Josefsson
2006-05-30 12:37     ` gdt
2006-05-30 23:29     ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).