From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62236 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: XEmacs/GNUs eats all memory and dies Date: Tue, 14 Mar 2006 14:43:04 +0100 Message-ID: References: <86ek15xk4l.fsf@dellbeast.localnet> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142344067 13335 80.91.229.2 (14 Mar 2006 13:47:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2006 13:47:47 +0000 (UTC) Cc: bugs@gnus.org Original-X-From: ding-owner+m10763@lists.math.uh.edu Tue Mar 14 14:47:43 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 1FJ9sD-0004ua-Jm for ding-account@gmane.org; Tue, 14 Mar 2006 14:47:41 +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 1FJ9s3-00085n-00; Tue, 14 Mar 2006 07:47:31 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FJ9o2-00085V-00 for ding@lists.math.uh.edu; Tue, 14 Mar 2006 07:43:22 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FJ9nx-0007gS-QP for ding@lists.math.uh.edu; Tue, 14 Mar 2006 07:43:22 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FJ9nw-0003W3-00; Tue, 14 Mar 2006 14:43:16 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id k2EDh4pu028224; Tue, 14 Mar 2006 14:43:04 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 1B19411489; Tue, 14 Mar 2006 14:43:04 +0100 (CET) Original-To: Julian Stecklina , ding@gnus.org, Simon Josefsson Mail-Followup-To: Julian Stecklina , ding@gnus.org X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm In-Reply-To: <86ek15xk4l.fsf@dellbeast.localnet> (Julian Stecklina's message of "Tue, 14 Mar 2006 13:53:46 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC--Metrics: gemini 1074; Body=4 Fuz1=4 Fuz2=4 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62236 Archived-At: 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? ,----[ lisp/ChangeLog ] | 2006-03-03 Daniel Pittman | | * nnimap.el (nnimap-request-update-info-internal): Optimize. `---- --8<---------------cut here---------------start------------->8--- --- 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))) --8<---------------cut here---------------end--------------->8--- [...] > 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/