Subject: bug#9314: wrong-type-argument listp NIL

From: "Austin F. Frank" <[email-masked]>
Date: Wed, 17 Aug 2011 12:12:53 -0400

I tried to load all 4,067 articles from an imap server with C-u RET 4067
in the group buffer.  With debug-on-error set to t, I got the following
backtrace:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument listp NIL)
  byte-code("m?\205\337\306\307!\204`\310y\210`|\210m\203\311\312\313\"\210\202\314\310!\315\316\317 T\320#\203N\321\314\310!!\322\224\323\\`|\210``	\\{``	\\|\210\324\325\n\"c\210\202\"\326 \313\327 \210\315\330\317 \320#\205b\314\310!\327 \210\331\332\317 \320#\203\242\313\333\334\217\211:\203\206
@;\204\206
@\211\202u
@\226\335\232\203\235
A@\226\336\232\203\235\337
8\202\240\340
8)\341 \317 |\210\324\342\"c\210\310y\210	\203\273\324\343	\"c\210\f\203\305\324\344\f\"c\210\315\345\313\320#\204\320db\210\341 \317 |\210\346c\210\310y\210\202\207" [article size string bytes lines structure looking-at "\\* [0-9]+ FETCH.+UID \\([0-9]+\\)" 1 throw --cl-block-nil-- nil match-string re-search-forward "[^]][ (]{\\([0-9]+\\)}
?\n" line-end-position t string-to-number 0 2 format "%S" nnimap-get-length beginning-of-line "RFC822.SIZE \\([0-9]+\\)" search-forward "BODYSTRUCTURE" (byte-code "\300p!\207" [read] 2) ((error)) "MESSAGE" "RFC822" 9 7 line-beginning-position "211 %s Article retrieved." "Chars: %s\n" "Lines: %s\n" "^
$" "."] 5)
  nnimap-transform-headers()
  nnimap-retrieve-headers((23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 ...) "Inbox" "rochester" nil)
  gnus-retrieve-headers((23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 ...) "nnimap+rochester:Inbox" nil)
  gnus-cache-retrieve-headers((23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 ...) "nnimap+rochester:Inbox" nil)
  gnus-retrieve-headers((23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 ...) "nnimap+rochester:Inbox" nil)
  gnus-fetch-headers((23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 ...))
  gnus-select-newsgroup("nnimap+rochester:Inbox" (4) nil)
  gnus-summary-read-group-1("nnimap+rochester:Inbox" (4) t nil nil nil)
  gnus-summary-read-group("nnimap+rochester:Inbox" (4) t nil nil nil nil)
  gnus-group-read-group((4) t)
  gnus-group-select-group((4))
  gnus-topic-select-group((4))
  call-interactively(gnus-topic-select-group nil nil)
--8<---------------cut here---------------end--------------->8---

The most recent lines from the *imap log* buffer are

--8<---------------cut here---------------start------------->8---
12:05:33 108 SELECT "Inbox"
12:05:48 109 UID FETCH 23336:27402 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroup Cc)])
--8<---------------cut here---------------end--------------->8---

Please let me know if you need further information (and, if so, how I
should obtain it).

Thanks!

No Gnus v0.18
GNU Emacs 24.0.50.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36)
 of 2011-08-16 on etin.haskins.yale.edu
200 news.gmane.org InterNetNews NNRP server INN 2.5.1 ready (posting ok)
101 Capability list:
VERSION 2
IMPLEMENTATION INN 2.5.1
AUTHINFO USER
HDR
LIST ACTIVE ACTIVE.TIMES DISTRIB.PATS HEADERS NEWSGROUPS OVERVIEW.FMT
OVER
POST
READER
STARTTLS
.
382 Begin TLS negotiation now
101 Capability list:
VERSION 2
IMPLEMENTATION INN 2.5.1
AUTHINFO USER
HDR
LIST ACTIVE ACTIVE.TIMES DISTRIB.PATS HEADERS NEWSGROUPS OVERVIEW.FMT
OVER
POST
READER
.

-- 
Austin F. Frank
University of Rochester, Brain and Cognitive Sciences
428 Meliora Hall | (585) 275-2508
GPG Public Key (55924873): http://aufrank.net/academic.asc