GNU bug report logs - #55973
28.1; GNUS nnimap hangs with high UID

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: bateast@HIDDEN; merged with #51887; dated Tue, 14 Jun 2022 15:14:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 51887 55973. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 55973 <at> debbugs.gnu.org:


Received: (at 55973) by debbugs.gnu.org; 15 Jun 2022 12:26:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 15 08:26:51 2022
Received: from localhost ([127.0.0.1]:36814 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o1S6k-0007u1-TR
	for submit <at> debbugs.gnu.org; Wed, 15 Jun 2022 08:26:51 -0400
Received: from quimby.gnus.org ([95.216.78.240]:60524)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1o1S6j-0007tm-It
 for 55973 <at> debbugs.gnu.org; Wed, 15 Jun 2022 08:26:50 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=6y1MedjBBVzXkiG05eQuUqiQuwHnWPJSn0twF+8zRhM=; b=p1zCHdRV6LC1JPJx5ozCifGzKL
 voo+2J7nmJCf70ePpYcYMugRQHIq1YVF+5N2iXdpgc5SbwUYiJGyoyjp2OgjcKoqPdWx6LuBnsry+
 fH1iNShflY2vXY5fC2X2RBqU1rWrFIAhGkdGyEQKTE6RvORJ/P5yZpAj22p6auViVzXg=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1o1S6a-0002Ro-6K; Wed, 15 Jun 2022 14:26:43 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: bateast@HIDDEN
Subject: Re: bug#55973: 28.1; GNUS nnimap hangs with high UID
References: <87fsk7uvo3.fsf@HIDDEN>
X-Now-Playing: Neil Young's _Comes a Time_: "Motorcycle Mama"
Date: Wed, 15 Jun 2022 14:26:39 +0200
In-Reply-To: <87fsk7uvo3.fsf@HIDDEN> (bateast@HIDDEN's
 message of "Tue, 14 Jun 2022 17:11:40 +0200")
Message-ID: <87bkuui03k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: bateast@HIDDEN writes: > when opening IMAP folder with
 high (very) UID, gnus hangs on > gnu-uncompress-range. > > I have an INBOX
 folder with very high UIDNEXT (2206239514). Even though > the actual number
 of email in the f [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 55973
Cc: 55973 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

bateast@HIDDEN writes:

> when opening IMAP folder with high (very) UID, gnus hangs on
> gnu-uncompress-range.
>
> I have an INBOX folder with very high UIDNEXT (2206239514). Even though
> the actual number of email in the folder is low (33 EXISTS),
> gnus-uncompress-range try to /uncompress/ 2 billions numbers, which make
> it hangs forever.

Yes, it's a known problem, so I've merged this with bug#51887, which is
also about this.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55973; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Jun 2022 15:13:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 14 11:13:39 2022
Received: from localhost ([127.0.0.1]:35469 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o18Ec-0007r4-Uk
	for submit <at> debbugs.gnu.org; Tue, 14 Jun 2022 11:13:39 -0400
Received: from lists.gnu.org ([209.51.188.17]:54248)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bateast@HIDDEN>) id 1o18DF-0007ot-Js
 for submit <at> debbugs.gnu.org; Tue, 14 Jun 2022 11:12:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33038)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bateast@HIDDEN>)
 id 1o18DF-0000Mz-Et
 for bug-gnu-emacs@HIDDEN; Tue, 14 Jun 2022 11:12:13 -0400
Received: from erza.lautre.net ([80.67.160.89]:39046)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bateast@HIDDEN>)
 id 1o18DC-0004yU-Mt
 for bug-gnu-emacs@HIDDEN; Tue, 14 Jun 2022 11:12:13 -0400
Received: from arch64 (unknown [193.32.127.231])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by erza.lautre.net (Postfix) with ESMTPSA id 90070E59A6
 for <bug-gnu-emacs@HIDDEN>; Tue, 14 Jun 2022 17:12:06 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bat.fr.eu.org;
 s=alternc; t=1655219527;
 bh=7OYVGMCl2hJpSGDuGdv/VHP6tT7pCh8MlR1nlqiFFiw=;
 h=From:To:Subject:Date;
 b=bQkhjwVqHfJps7W8vdx9Ma5OFAStYxNrc95nzfcZzBxg2kOnS9ZZaL4IpXKhJkbFK
 L8YLIs0eBRYdLZ4uxqB2eNaW++xa6OacYRgIVhnCbfgAAGJnv2sD3M91wfTnPz/OvA
 Y+c7fGZQythQe145tpGbjQ0WpzU96NHjhN/iugPU=
From: bateast@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 28.1; GNUS nnimap hangs with high UID
Date: Tue, 14 Jun 2022 17:11:40 +0200
Message-ID: <87fsk7uvo3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=80.67.160.89; envelope-from=bateast@HIDDEN;
 helo=erza.lautre.net
X-Spam_score_int: -19
X-Spam_score: -2.0
X-Spam_bar: --
X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 14 Jun 2022 11:13:38 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

Hi,

when opening IMAP folder with high (very) UID, gnus hangs on
gnu-uncompress-range.

I have an INBOX folder with very high UIDNEXT (2206239514). Even though
the actual number of email in the folder is low (33 EXISTS),
gnus-uncompress-range try to /uncompress/ 2 billions numbers, which make
it hangs forever.

---
Baptiste.

---- Technical details ----

*imap commands*

796 EXAMINE "INBOX"
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $Filtered LoadRem=
oteImages $Junk $Classified $Forwarded $NotJunk gnus-expire)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 33 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1370959925] UIDs valid
* OK [UIDNEXT 2206239514] Predicted next UID
* OK [HIGHESTMODSEQ 7659] Highest

*Backtrace*

=E2=9F=B6 nnimap-get-response

SELECT
(("OK" ("READ-WRITE") "Select" "completed" ("0.000" "+" "0.000" "secs") "."=
) ("OK" ("CLOSED") "Previous" "mailbox" "closed.") ("FLAGS" ("\\Answered" "=
\\Flagged" "\\Deleted" "\\Seen" "\\Draft" "NonJunk" "$Filtered" "LoadRemote=
Images" "$Junk" "$Classified" "$Forwarded" "$NotJunk" "gnus-expire")) ("OK"=
 ("PERMANENTFLAGS" "(\\Answered" "\\Flagged" "\\Deleted" "\\Seen" "\\Draft"=
 "NonJunk" "$Filtered" "LoadRemoteImages" "$Junk" "$Classified" "$Forwarded=
" "$NotJunk" "gnus-expire" "\\*)") "Flags" "permitted.") ("33" "EXISTS") ("=
0" "RECENT") ("OK" ("UIDVALIDITY" "1370959925") "UIDs" "valid") ("OK" ("UID=
NEXT" "2206239514") "Predicted" "next" "UID") ("OK" ("HIGHESTMODSEQ" "7659"=
) "Highest"))


=E2=9F=B6 gnus-uncompress-range

gnus-uncompress-range((1 . 2206239513))

---- Versions ----

In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cair=
o version 1.17.6)
 of 2022-04-28 built on frederik
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Arch Linux

Configured using:
 'configure --sysconfdir=3D/etc --prefix=3D/usr --libexecdir=3D/usr/lib
 --localstatedir=3D/var --with-cairo --with-harfbuzz --with-libsystemd
 --with-modules --with-x-toolkit=3Dgtk3 'CFLAGS=3D-march=3Dx86-64
 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3D2
 -Wformat -Werror=3Dformat-security -fstack-clash-protection
 -fcf-protection -g -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug
 -flto=3Dauto' 'LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
 -flto=3Dauto''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE
XIM XPM GTK3 ZLIB

Important settings:
  value of $LANG: fr_FR.UTF-8
  locale-coding-system: utf-8-unix





Acknowledgement sent to bateast@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#55973; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 15 Jun 2022 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.