From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62237 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: XEmacs/GNUs eats all memory and dies Date: Tue, 14 Mar 2006 14:53:41 +0100 Message-ID: <87bqw9f7yy.fsf@latte.josefsson.org> References: <86ek15xk4l.fsf@dellbeast.localnet> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142344480 14816 80.91.229.2 (14 Mar 2006 13:54:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2006 13:54:40 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m10764@lists.math.uh.edu Tue Mar 14 14:54:35 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FJ9yY-0007wm-Bp for ding-account@gmane.org; Tue, 14 Mar 2006 14:54:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FJ9yS-00089b-00; Tue, 14 Mar 2006 07:54:08 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FJ9yG-00089W-00 for ding@lists.math.uh.edu; Tue, 14 Mar 2006 07:53:56 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FJ9yC-0007kE-VA for ding@lists.math.uh.edu; Tue, 14 Mar 2006 07:53:56 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FJ9yB-0003d6-00 for ; Tue, 14 Mar 2006 14:53:51 +0100 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3) with ESMTP id k2EDri2p019561; Tue, 14 Mar 2006 14:53:44 +0100 Original-To: Julian Stecklina OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060314:der_julian@web.de::HY2ctcmiOdAahCtc:2bz3 X-Hashcash: 1:21:060314:ding@gnus.org::Vr33yb4Dyurhy5Fn:2CbI In-Reply-To: (Reiner Steib's message of "Tue, 14 Mar 2006 14:43:04 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62237 Archived-At: Reiner Steib writes: > On Tue, Mar 14 2006, Julian Stecklina wrote: > >> Gnus v5.10.7 >> XEmacs 21.5 (beta24) "dandelion" [Lucid] (i386--freebsd, Mule) of Sat Jan 7 2006 on dellbeast.localnet >> 200 news.gmane.org InterNetNews NNRP server INN 2.4.1 ready (posting ok). >> >> Hello, >> >> when I try to open the INBOX of my web.de IMAP account in the group >> buffer, XEmacs eats all available memory and dies, because it tries to >> build a ridiculously large list in gnus-uncompress-range. Is there any >> workaround for this? > > Maybe the change below which has been installed in the development > version might help. > > Simon, maybe we should also install it in v5-10 now, but choose the > method depending on some variable which should default to "old method" > in the v5-10 branch and "new method" in the trunk. If we have enough > testing, we can default to "new method" in all versions and remove the > "old method" code. WDYT? If it positively solve this report, I think we should install it on v5-10 too. > ,----[ lisp/ChangeLog ] > | 2006-03-03 Daniel Pittman > | > | * nnimap.el (nnimap-request-update-info-internal): Optimize. > `---- > > --- nnimap.el 21 Feb 2006 07:14:23 -0000 7.30 > +++ nnimap.el 3 Mar 2006 09:33:38 -0000 7.31 > @@ -1183,18 +1183,12 @@ > (let (seen unseen) > ;; read info could contain articles marked unread by other > ;; imap clients! we correct this > - (setq seen (gnus-uncompress-range (gnus-info-read info)) > - unseen (imap-search "UNSEEN UNDELETED") > - seen (gnus-set-difference seen unseen) > - ;; seen might lack articles marked as read by other > - ;; imap clients! we correct this > - seen (append seen (imap-search "SEEN")) > - ;; remove dupes > - seen (sort seen '<) > - seen (gnus-compress-sequence seen t) > - ;; we can't return '(1) since this isn't a "list of ranges", > - ;; and we can't return '((1)) since g-list-of-unread-articles > - ;; is buggy so we return '((1 . 1)). > + (setq unseen (gnus-compress-sequence > + (imap-search "UNSEEN UNDELETED")) > + seen (gnus-range-difference (gnus-info-read info) unseen) > + seen (gnus-range-add seen > + (gnus-compress-sequence > + (imap-search "SEEN"))) > seen (if (and (integerp (car seen)) > (null (cdr seen))) > (list (cons (car seen) (car seen))) > > [...] >> Debugger entered--Lisp error: (quit) >> gnus-uncompress-range(((1 . 937046050))) >> nnimap-request-update-info-internal("INBOX" ("nnimap+web:INBOX" 3 >> ((1 . 937046050)) ((seen ...) (recent ...)) "nnimap:web" >> ((uidvalidity . "1") (spam-contents >> gnus-group-spam-classification-ham) (spam-process ...) >> (spam-process-destination "mail.spam") (ham-process-destination >> "mail.inbox"))) "web") >> nnimap-request-group("INBOX" "web" t) >> gnus-request-group("nnimap+web:INBOX" t) >> gnus-select-newsgroup("nnimap+web:INBOX" nil nil) >> gnus-summary-read-group-1("nnimap+web:INBOX" nil t nil nil nil) >> gnus-summary-read-group("nnimap+web:INBOX" nil t nil nil nil nil) >> gnus-group-read-group(nil t) >> gnus-group-select-group(nil) >> call-interactively(gnus-group-select-group) >> >> ------------------ Environment follows ------------------ > [...] >> (setq gnus-secondary-select-methods '((nntp "news.gmane.org") >> (nnimap "web" >> (nnimap-authinfo-file "/home/blitz/.xemacs/web.auth") >> (nnimap-address "imap.web.de") >> (nnimap-stream ssl)) > [...] > > Bye, Reiner. > -- > ,,, > (o o) > ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/