GNU bug report logs - #46906
28.0.50; byte compiler infloops trying to compile infloop

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: Pip Cet <pipcet@HIDDEN>; dated Wed, 3 Mar 2021 21:15:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 46906) by debbugs.gnu.org; 5 Mar 2021 13:16:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 05 08:16:16 2021
Received: from localhost ([127.0.0.1]:33209 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lIAJU-0003cP-AS
	for submit <at> debbugs.gnu.org; Fri, 05 Mar 2021 08:16:16 -0500
Received: from quimby.gnus.org ([95.216.78.240]:34514)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1lIAJS-0003Vz-EG
 for 46906 <at> debbugs.gnu.org; Fri, 05 Mar 2021 08:16:15 -0500
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=9+Vblm4vaS8bHBAwbL4vOAfCI8BZscIjAqdSHPL/QcU=; b=mXp6FUuE7t7cNU9KcJbmInHubJ
 rsKG62JAPfG67q7WIWAsUNHJ2qIsGwqTxr6dYi/pCsF8zAj5LkfJ7sw78nsyHwnE6OO0zefQOF7hL
 AuaBSRQ0H3MGA3ToJLR6jrDmqfQdD+AZvf0rMTE2gVLWVKnRuR1AO6iR3mIAvbYJ3QEk=;
Received: from cm-84.212.220.105.getinternet.no ([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 1lIAJJ-0006b4-PO; Fri, 05 Mar 2021 14:16:08 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#46906: 28.0.50; byte compiler infloops trying to compile
 infloop
References: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
 <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <86y2f3vmmb.fsf@HIDDEN>
 <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
 <878s73b7p6.fsf@HIDDEN>
 <CAOqdjBcuPEtL7UUgfNPtDSBfbgBr_tTSrs-5weDv5=hzsPY8XQ@HIDDEN>
 <87blbzw4n7.fsf@HIDDEN>
 <CAOqdjBe4_aMTO13XjkZq3SOSHEEb7R9pBXsiN=YhJAPx0mnFaw@HIDDEN>
X-Now-Playing: Girls's _Reunion_: "Keep It Simple"
Date: Fri, 05 Mar 2021 14:16:04 +0100
In-Reply-To: <CAOqdjBe4_aMTO13XjkZq3SOSHEEb7R9pBXsiN=YhJAPx0mnFaw@HIDDEN>
 (Pip Cet's message of "Thu, 4 Mar 2021 12:15:17 +0000")
Message-ID: <87o8fxrbaj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Pip Cet <pipcet@HIDDEN> writes: > I think we're just going
 to have to put in a test which, on systems > with the bug, loops indefinitely.
 We could make it "expensive", though > it isn't, really. > > (I'm not sure
 how many people are [...] 
 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: 0.0 (/)
X-Debbugs-Envelope-To: 46906
Cc: Andy Moreton <andrewjmoreton@HIDDEN>, 46906 <at> debbugs.gnu.org,
 Juri Linkov <juri@HIDDEN>
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: -1.0 (-)

Pip Cet <pipcet@HIDDEN> writes:

> I think we're just going to have to put in a test which, on systems
> with the bug, loops indefinitely. We could make it "expensive", though
> it isn't, really.
>
> (I'm not sure how many people are trying to run the Emacs 28 testsuite
> against Emacs 27, or anything like that. It might be a non-issue.)

It's probably not an issue in practice, but it does seem rather
unsatisfactory that we don't have a mechanism for doing tests for
infloops in general.

I wonder whether we could cobble up something just for ert.  For
instance... doing a
(start-process ... "sleep 1; kill -s SIGUSR1 $EMACS_PID") or similar,
and then hook the SIGUSR1 handler to...  er...  do something useful
here.

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




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

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


Received: (at 46906) by debbugs.gnu.org; 4 Mar 2021 18:51:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 13:51:34 2021
Received: from localhost ([127.0.0.1]:60228 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHt4Q-0004bU-6c
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 13:51:34 -0500
Received: from mail-ot1-f49.google.com ([209.85.210.49]:35447)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pipcet@HIDDEN>) id 1lHt4O-0004bG-5d
 for 46906 <at> debbugs.gnu.org; Thu, 04 Mar 2021 13:51:33 -0500
Received: by mail-ot1-f49.google.com with SMTP id r19so28315919otk.2
 for <46906 <at> debbugs.gnu.org>; Thu, 04 Mar 2021 10:51:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=EI8CscLWSeRvFoQWPDNGFB6WPH21Tr129hGZtX9p1GQ=;
 b=rW9Dii1MVbHvraaDfRUpxYfMrmul5ZiJhHF4YQCxlmMnjrzzah03WoXUybuiRURpej
 MeB6yMRpRU6uSwDsWoGvIgptgo0JfbpcQMVpTXJYQWIl36+mRwUbpcIOj1GiYbDQL364
 IHDfsfSPyJP85diWUn/edAnrM4Jz06ZEbPOGN5gjURt98vCJAGctoBgPCAiyT2uFp7hI
 naa4tD6mM2mTITiXvrfCHKTQIdbwWgTRcgt9Tyf20leLZlby7KLnd4IgoTtIvdd49CQj
 65Ii0ARHfKK8JekadyPYFG4WeevU2mYU/Pp7i6MXJtdn1OZ0291TQTX4RRzsQblraHFE
 bjgg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=EI8CscLWSeRvFoQWPDNGFB6WPH21Tr129hGZtX9p1GQ=;
 b=n/oLdWOMrw6IWAa7WZBq/h/9kaLwFIEK65t9GQoU8D1eFsXAhjKQFte9zsoJNjfScM
 C+/rAJu8ugn/anzWSNF1s91OBhXWOeUeXW5FyAhYedbfW9sipjEdTrMwyJEvff34Y0CJ
 x5aI9/xVV9++L+hMX4Ba4ipD0PDSnht/XCmax712EDLAxFbJU0QmI5dWATd3fweXmr3j
 rKDbz7vV1CrEX0LYZ+NFND8pL66hKel23dirsRiNkZo6xYQ5p6yqVY7RVwalNMDjSVIJ
 4dcUVVMmhIlJecnAuKZHYGUSC+64dOa164o4/r74yKNfAQiUw6Q8Wp+zFtpNpYthWwY2
 YsyA==
X-Gm-Message-State: AOAM530yxfbWalV7lBlZl+G/l+YV31n71Mbk9x+RPY5/lKjxBcwb2oVp
 e39tWogcFgzJSL7zzxGEcC3gz1XW374vYTCQ7hY=
X-Google-Smtp-Source: ABdhPJyv+ly+KKiRKSjk68Lq9pGfT5kw0SXgMUQk8voXqi97XBTYGpgBV7C9RR90RsqajLUA5xP3Gxa87e2pRiwTv7M=
X-Received: by 2002:a05:6830:11d4:: with SMTP id
 v20mr4486968otq.287.1614883886501; 
 Thu, 04 Mar 2021 10:51:26 -0800 (PST)
MIME-Version: 1.0
References: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
 <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <86y2f3vmmb.fsf@HIDDEN>
 <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
 <878s73b7p6.fsf@HIDDEN>
 <CAOqdjBcuPEtL7UUgfNPtDSBfbgBr_tTSrs-5weDv5=hzsPY8XQ@HIDDEN>
 <87pn0ej0ap.fsf@HIDDEN>
In-Reply-To: <87pn0ej0ap.fsf@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Date: Thu, 4 Mar 2021 18:50:49 +0000
Message-ID: <CAOqdjBdv5s3f80PLoXs6-x4RgMd+qMYgkZExmzCdF_vPJBu=9g@HIDDEN>
Subject: Re: bug#46906: 28.0.50;
 byte compiler infloops trying to compile infloop
To: Juri Linkov <juri@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46906
Cc: Andy Moreton <andrewjmoreton@HIDDEN>, 46906 <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: -1.0 (-)

On Thu, Mar 4, 2021 at 6:44 PM Juri Linkov <juri@HIDDEN> wrote:
> > On Thu, Mar 4, 2021 at 10:16 AM Juri Linkov <juri@HIDDEN> wrote:
> >> Maybe 'with-timeout' could help not to loop forever in tests?
> >
> > I don't think so, because it doesn't work for Lisp infloops.
> > (with-timeout (1 (error "foo")) (while t)) doesn't work here, at
> > least.
>
> Then maybe run a possibly infinite loop in a separate thread?

Or even as a separate process, maybe. That's what I'd like to do for
(apply nil)...

Pip




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

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


Received: (at 46906) by debbugs.gnu.org; 4 Mar 2021 18:44:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 13:44:34 2021
Received: from localhost ([127.0.0.1]:60216 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHsxe-0004Qk-0p
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 13:44:34 -0500
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51633)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1lHsxb-0004QU-Td
 for 46906 <at> debbugs.gnu.org; Thu, 04 Mar 2021 13:44:32 -0500
X-Originating-IP: 91.129.96.116
Received: from mail.gandi.net (m91-129-96-116.cust.tele2.ee [91.129.96.116])
 (Authenticated sender: juri@HIDDEN)
 by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id A3D4DE000A;
 Thu,  4 Mar 2021 18:44:24 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#46906: 28.0.50; byte compiler infloops trying to compile
 infloop
Organization: LINKOV.NET
References: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
 <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <86y2f3vmmb.fsf@HIDDEN>
 <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
 <878s73b7p6.fsf@HIDDEN>
 <CAOqdjBcuPEtL7UUgfNPtDSBfbgBr_tTSrs-5weDv5=hzsPY8XQ@HIDDEN>
Date: Thu, 04 Mar 2021 19:58:30 +0200
In-Reply-To: <CAOqdjBcuPEtL7UUgfNPtDSBfbgBr_tTSrs-5weDv5=hzsPY8XQ@HIDDEN>
 (Pip Cet's message of "Thu, 4 Mar 2021 10:19:18 +0000")
Message-ID: <87pn0ej0ap.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46906
Cc: Andy Moreton <andrewjmoreton@HIDDEN>, 46906 <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: -1.7 (-)

> On Thu, Mar 4, 2021 at 10:16 AM Juri Linkov <juri@HIDDEN> wrote:
>> Maybe 'with-timeout' could help not to loop forever in tests?
>
> I don't think so, because it doesn't work for Lisp infloops.
> (with-timeout (1 (error "foo")) (while t)) doesn't work here, at
> least.

Then maybe run a possibly infinite loop in a separate thread?




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

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


Received: (at 46906) by debbugs.gnu.org; 4 Mar 2021 12:16:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 07:16:01 2021
Received: from localhost ([127.0.0.1]:57997 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHmtd-0004ol-GR
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 07:16:01 -0500
Received: from mail-oo1-f52.google.com ([209.85.161.52]:35450)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pipcet@HIDDEN>) id 1lHmtb-0004oV-VN
 for 46906 <at> debbugs.gnu.org; Thu, 04 Mar 2021 07:16:00 -0500
Received: by mail-oo1-f52.google.com with SMTP id p6so6529048oot.2
 for <46906 <at> debbugs.gnu.org>; Thu, 04 Mar 2021 04:15:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=/AqhvypM67/p2T2vysltT4zMieMBSGsGsScbHzaKexw=;
 b=aQfpBMKJ0lRSbXfSD0hidC2I7CGLFl4URR2EsvX1P6TlHqEw1cUO4nswUi02clNxha
 gY8yuPlT+8kjPHIgMqeN9h5tmHgKNZomLJQxJ2I6VJba/jomq6r8DfTl2PLgUXUWZ5p2
 BPtCMPekUyRWzrT+5SDpS2bfTsj1arE1XMETisAc8Ujr7oDbbkGIOFNLrshEMBOV2wUN
 mt2RQIpsS6ZIHEyeumbi1iuFXAuT8OJiG6QYfQqL9D9egFXFswQJ6Z/nWtPkBNpLyFeN
 kQuFHpBRCwfPDL0BFN61RN9sDhEzYzdi7AMNcsHGEuNGEBQCXy0tBUg+/P7JKbDYFqZ6
 8umg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=/AqhvypM67/p2T2vysltT4zMieMBSGsGsScbHzaKexw=;
 b=n6MA4sY2xcWqaBC8O/842CQNmDd+F6WKoJ8nxnF1+AOWHNPe7+XY2+1I1SuERlO020
 hb+91dv99eHbdNtC/QbUr+dd96Vq+bKZdg+/Rd2MV+egTzvSVYIXgIBxt4KsntlwhQ8E
 5whlxRDIe6Im+z7KINynJKkITGgB81iot2elnrCQiUy+O6jnWe1Np0iJFJxUtsBULlEd
 hWEQ4gJ1Me/uqUuS5A0kWl8iopaFA92ZkOZVVSdVdS4bQYcWEyRjAwOI3ag8Gwz+tn+E
 4tB03XO3CD7WVPs8UG0QhsgKS83IbqbPfw1sbKSCk5L9bmx1zMPG9qZ+ysa3AiFppilo
 j4ng==
X-Gm-Message-State: AOAM532POrPsvOZs0HVADf+k2CFSFRGaPrPuYkkwOo9zq3Uyj29jRtYl
 UiV5bJCrfqHGDrd3LC2ZypFFhZySJ1HzWnmC76I=
X-Google-Smtp-Source: ABdhPJzC59WT7BoJuaMRt/6okMFB8Z5KOfB5T/NtO02S+aR9b+erq3ipBMootOUJKa+SPINA+MHez/nFnqIQgmeXsCg=
X-Received: by 2002:a4a:d781:: with SMTP id c1mr3146938oou.44.1614860154395;
 Thu, 04 Mar 2021 04:15:54 -0800 (PST)
MIME-Version: 1.0
References: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
 <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <86y2f3vmmb.fsf@HIDDEN>
 <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
 <878s73b7p6.fsf@HIDDEN>
 <CAOqdjBcuPEtL7UUgfNPtDSBfbgBr_tTSrs-5weDv5=hzsPY8XQ@HIDDEN>
 <87blbzw4n7.fsf@HIDDEN>
In-Reply-To: <87blbzw4n7.fsf@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Date: Thu, 4 Mar 2021 12:15:17 +0000
Message-ID: <CAOqdjBe4_aMTO13XjkZq3SOSHEEb7R9pBXsiN=YhJAPx0mnFaw@HIDDEN>
Subject: Re: bug#46906: 28.0.50;
 byte compiler infloops trying to compile infloop
To: Lars Ingebrigtsen <larsi@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46906
Cc: Andy Moreton <andrewjmoreton@HIDDEN>, 46906 <at> debbugs.gnu.org,
 Juri Linkov <juri@HIDDEN>
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: -1.0 (-)

On Thu, Mar 4, 2021 at 11:16 AM Lars Ingebrigtsen <larsi@HIDDEN> wrote:
> Pip Cet <pipcet@HIDDEN> writes:
> > I don't think so, because it doesn't work for Lisp infloops.
> > (with-timeout (1 (error "foo")) (while t)) doesn't work here, at
> > least.
>
> Yes, you need to put something that yields in there for `with-timeout'
> to work.  For instance:
>
> (with-timeout (1 (error "foo")) (while t (sleep-for 0.1)))
>
> However, I haven't checked whether this form triggers the bug that we're
> trying to reproduce.

Even if it would, that wouldn't solve our issue: it's the optimizer
which infloops trying to compile the form, and the optimizer certainly
does not yield anywhere that I'm aware of...

I think we're just going to have to put in a test which, on systems
with the bug, loops indefinitely. We could make it "expensive", though
it isn't, really.

(I'm not sure how many people are trying to run the Emacs 28 testsuite
against Emacs 27, or anything like that. It might be a non-issue.)

Pip




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

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


Received: (at 46906) by debbugs.gnu.org; 4 Mar 2021 11:16:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 06:16:25 2021
Received: from localhost ([127.0.0.1]:57949 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHlxx-000118-Jp
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 06:16:25 -0500
Received: from quimby.gnus.org ([95.216.78.240]:49462)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1lHlxw-00010v-3U
 for 46906 <at> debbugs.gnu.org; Thu, 04 Mar 2021 06:16:24 -0500
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=EmM6xTpgV+MIJayddDOhwcg7b7iLtj+yUUNTiYbnqUE=; b=qe9+Wkv02m0J08d1BDtVSO7oJd
 7e9y0itfHvsXJoLMlE7NwMstgrrc6+VbAHczVuHqwXB8o0MWmKIAAWKJ5lYuVHz3Qxfui7iXYl1O4
 emBZejS0BEv4nq3iu76juwNBzBkGO7cKcETuK4tqEiV5syeYg2Z72ZlRkDrCXpc6fAkI=;
Received: from cm-84.212.220.105.getinternet.no ([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 1lHlxl-0002BW-M2; Thu, 04 Mar 2021 12:16:17 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#46906: 28.0.50; byte compiler infloops trying to compile
 infloop
References: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
 <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <86y2f3vmmb.fsf@HIDDEN>
 <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
 <878s73b7p6.fsf@HIDDEN>
 <CAOqdjBcuPEtL7UUgfNPtDSBfbgBr_tTSrs-5weDv5=hzsPY8XQ@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEUwGA+kTy7olFT/
 //+IyZgpAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UDBAoxAIlVT3IAAADuSURBVCjPjc8xbsMwDABA
 ETB/EP6HAerdQyjAmtMhekWf0KFTpw42EOuVJSlZdjrVg8QzRZEKYf9IpMeXM3DUGHaB3HpGIf9B
 mOkEeoEfQ+EzwrGRdxto9l8OpIet6CXgB4i4Zu5eUxG/bGvT2tR9JqvRF16nBk0IOea79pXJqzCt
 DqjYDOygVKyeR4PkzSBivfEhFUu4eD9DXIJo/G4XSFrAIA0otvsE+Yk3R9ClPHGihmiQivituDbk
 ohgbSilLzyh+GsDwiXzgAxg7GJh6DcNEaY0H8tbwZljzDrvgD+AVKZcBGBwp520Ae2T5BQcodEfp
 GrRSAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAAGQoAMABAAA
 AAEAAAGQAAAAADj5TfYAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDMtMDRUMTA6NDk6MDArMDA6
 MDC9EHEiAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAzLTA0VDEwOjQ5OjAwKzAwOjAwzE3JngAA
 ABJ0RVh0ZXhpZjpFeGlmT2Zmc2V0ADI2UxuiZQAAABh0RVh0ZXhpZjpQaXhlbFhEaW1lbnNpb24A
 NDAwQPmChgAAABh0RVh0ZXhpZjpQaXhlbFlEaW1lbnNpb24ANDAw3fZj8AAAAABJRU5ErkJggg==
X-Now-Playing: Sam Amidon's _All Is Well_: "Fall On My Knees"
Date: Thu, 04 Mar 2021 12:16:12 +0100
In-Reply-To: <CAOqdjBcuPEtL7UUgfNPtDSBfbgBr_tTSrs-5weDv5=hzsPY8XQ@HIDDEN>
 (Pip Cet's message of "Thu, 4 Mar 2021 10:19:18 +0000")
Message-ID: <87blbzw4n7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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:  Pip Cet <pipcet@HIDDEN> writes: > I don't think so,
 because
 it doesn't work for Lisp infloops. > (with-timeout (1 (error "foo")) (while
 t)) doesn't work here, at > least. Yes, you need to put something that yields
 in there for `with-timeout' to work. For instance: 
 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: 0.0 (/)
X-Debbugs-Envelope-To: 46906
Cc: Andy Moreton <andrewjmoreton@HIDDEN>, 46906 <at> debbugs.gnu.org,
 Juri Linkov <juri@HIDDEN>
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: -1.0 (-)

Pip Cet <pipcet@HIDDEN> writes:

> I don't think so, because it doesn't work for Lisp infloops.
> (with-timeout (1 (error "foo")) (while t)) doesn't work here, at
> least.

Yes, you need to put something that yields in there for `with-timeout'
to work.  For instance:

(with-timeout (1 (error "foo")) (while t (sleep-for 0.1)))

However, I haven't checked whether this form triggers the bug that we're
trying to reproduce.

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




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

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


Received: (at 46906) by debbugs.gnu.org; 4 Mar 2021 10:20:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 05:20:01 2021
Received: from localhost ([127.0.0.1]:57831 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHl5N-0007vp-D1
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 05:20:01 -0500
Received: from mail-ot1-f52.google.com ([209.85.210.52]:46495)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pipcet@HIDDEN>) id 1lHl5L-0007vS-Sp
 for 46906 <at> debbugs.gnu.org; Thu, 04 Mar 2021 05:20:00 -0500
Received: by mail-ot1-f52.google.com with SMTP id u3so8520929otg.13
 for <46906 <at> debbugs.gnu.org>; Thu, 04 Mar 2021 02:19:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=MT2YszfNtdViZCC/s/BSEL3kwGn0Vwaw4zxOuiyV0bI=;
 b=SZmMsHA+rMCks45wgAj4zZtQUJtH5YQgWN9O3JvcQOb8G72RE6F0JHjgfSQwKwj6t8
 rrz0R2PWx6a606NiWQjbSXMlW0dVUQfLp7/GlF/z9AWs1qt7dSi2fx+Z7XGqGnssouSs
 ftgM5kdMEFf+6zCNACC3fpaRftSGog+qjfnt7VeioSM6vkHLDpo9hGpeAIpOJFlkC4BT
 Zu/IfGJhhglQ5YMKSE3xNQ9Euu6/Er6UwRoeFZyil9Kc9DcOvR877/mxwctTuAWw1wq9
 Rbr/SiZnXReARUa9bQL/+nL4OvHykf+0Dq7xl7TQcLm+sx2Uob2eRToowhSTpo/a64fz
 OrDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=MT2YszfNtdViZCC/s/BSEL3kwGn0Vwaw4zxOuiyV0bI=;
 b=fRl3V5U5+zm9CKMyJmaw3ITXDw1aSQFAvLI2LI0V6a4tfsiiL+/cQGE6vPQ3ER6oaO
 WdcfeDiI/cSxk9/cvnjw5eNRi8J7BAB6ujK9XeMO9WwUxNsT47+iyQjgyYjps3FjvxPe
 pppQTgisPmi7LyCk7GRtZmULaLNl7rkd74ApCbE04ZAgsU3AW85lO6+RDwIfOvweFk2C
 PbtQX5iLlRifVG993rkZWp6UuoacTG9dGPUSEj6Bd25RV6HDEFaDE8yqShxq4AnT/7uh
 J8H0rKH09HqvzUZKiSmkDtq52hEh2UZWawamaxks38wjjBG7/SkIn1Qt0Fy+QEnHJ4WE
 eCUw==
X-Gm-Message-State: AOAM532stbuaaBq2wBlwqnNjXH06fiYbUFMeVHKF6k16TcmVOaz7mzke
 /KbaHH1RORS4OfWF/Lp9EdhMjy5FvF+r4sOyn6M=
X-Google-Smtp-Source: ABdhPJzlB+E1VX61Ydqv/PPfWpeydj3hYb94PPdDT5EKwQLGdzhMPnydeSUhURIzpd8bD+5iUO4lDJcFbG7JyYchDEU=
X-Received: by 2002:a05:6830:1e51:: with SMTP id
 e17mr2895945otj.292.1614853194364; 
 Thu, 04 Mar 2021 02:19:54 -0800 (PST)
MIME-Version: 1.0
References: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
 <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <86y2f3vmmb.fsf@HIDDEN>
 <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
 <878s73b7p6.fsf@HIDDEN>
In-Reply-To: <878s73b7p6.fsf@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Date: Thu, 4 Mar 2021 10:19:18 +0000
Message-ID: <CAOqdjBcuPEtL7UUgfNPtDSBfbgBr_tTSrs-5weDv5=hzsPY8XQ@HIDDEN>
Subject: Re: bug#46906: 28.0.50;
 byte compiler infloops trying to compile infloop
To: Juri Linkov <juri@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46906
Cc: Andy Moreton <andrewjmoreton@HIDDEN>, 46906 <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: -1.0 (-)

On Thu, Mar 4, 2021 at 10:16 AM Juri Linkov <juri@HIDDEN> wrote:
> Maybe 'with-timeout' could help not to loop forever in tests?

I don't think so, because it doesn't work for Lisp infloops.
(with-timeout (1 (error "foo")) (while t)) doesn't work here, at
least.

Pip




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

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


Received: (at 46906) by debbugs.gnu.org; 4 Mar 2021 10:16:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 05:16:22 2021
Received: from localhost ([127.0.0.1]:57772 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHl1q-0007lS-GD
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 05:16:22 -0500
Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41687)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1lHl1n-0007l9-I2
 for 46906 <at> debbugs.gnu.org; Thu, 04 Mar 2021 05:16:20 -0500
X-Originating-IP: 91.129.96.116
Received: from mail.gandi.net (m91-129-96-116.cust.tele2.ee [91.129.96.116])
 (Authenticated sender: juri@HIDDEN)
 by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id A444A60017;
 Thu,  4 Mar 2021 10:16:11 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#46906: 28.0.50; byte compiler infloops trying to compile
 infloop
Organization: LINKOV.NET
References: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
 <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <86y2f3vmmb.fsf@HIDDEN>
 <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
Date: Thu, 04 Mar 2021 11:15:49 +0200
In-Reply-To: <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
 (Pip Cet's message of "Thu, 4 Mar 2021 07:17:54 +0000")
Message-ID: <878s73b7p6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46906
Cc: Andy Moreton <andrewjmoreton@HIDDEN>, 46906 <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: -1.7 (-)

>> Perhaps add your reproducer as a test case ?
>
> Absolutely, thanks for the suggestion. See attached patch.
>
> Should there, maybe, be a tag for tests that are known to loop forever
> when they fail? It feels weird to write a test without a single should
> in it...

Maybe 'with-timeout' could help not to loop forever in tests?




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

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


Received: (at 46906) by debbugs.gnu.org; 4 Mar 2021 07:18:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 02:18:39 2021
Received: from localhost ([127.0.0.1]:57542 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHiFq-0001N2-RZ
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 02:18:39 -0500
Received: from mail-ot1-f49.google.com ([209.85.210.49]:41055)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pipcet@HIDDEN>) id 1lHiFp-0001Mk-6N
 for 46906 <at> debbugs.gnu.org; Thu, 04 Mar 2021 02:18:37 -0500
Received: by mail-ot1-f49.google.com with SMTP id w3so6578150oti.8
 for <46906 <at> debbugs.gnu.org>; Wed, 03 Mar 2021 23:18:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=+kz1+UpCVv9VqdkdtZIy6DCNOQ8bG7wdUl4ChORY4HA=;
 b=C2wdTmiPdZXTHO0VXClayGhyrJX7wr8uoj9lBwK6CEk+3GJYQfJZ1nyvsqPJuRw2Yc
 S/KWS5RFEXISInNgSN+dTyKfLDspqRNW1KCBKg0+CNRDeM0FDVzNbZ1LLbPy7y5WiuSr
 1BU4HdPLoRLDTiGB1jimIL+01wMKo+WvNv+2Q5YVmizDlb4yxGvGlbh4nWuvcOKN/VyT
 fSjRuxMFpEHVb4vcYEYm3lFSGKqHCrCHKACjydnXGEokwwv1Mk1zCmxJHPmG/sS3csmd
 pE8wB5rrt5Cfifrfmo7FN3KrrAscTocCoZY4raiS7okkbH6NPRucHP5tE3rza3zGhyXK
 jE+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=+kz1+UpCVv9VqdkdtZIy6DCNOQ8bG7wdUl4ChORY4HA=;
 b=PwV0wwwXrbve0TUoPbgFlElA+MXkxr5D6/CUs3B8JJmuN905r38Uy0sNTZ/1pG7nnQ
 rlcllIUkw159Xe/QGSYqsTfhVtrNnxrW2xpT9aAX/uX18LgKALKqlhZuPlmuL9tOS0RM
 AgKhuZwp1JLYXdB1EXjshWcNa5f+Qf2iJxK87HJHY9pvq6lzpccRBP3t1dFkVesRjfQc
 937Wyv+KZWBvsNocqsyAkxKrGwXlixOFX4ExRcAWPGhGazR29QaVpLFEDY9hpX05JNEr
 hkKLqLE3YRkH8LQL0DYUSYTZf1nUXFPYBz+Wo/FwOeZGj3nTV2DbHgwJvFhngx/06KXf
 3wwg==
X-Gm-Message-State: AOAM531q5TszQhflgctnB+kyATP8mTryDcTUlm98crG+y8FhUntOoCF8
 CiemmFjXUIfMvV/qB+EPy722iX+gzP1d/eHQddk=
X-Google-Smtp-Source: ABdhPJxqoH8jFLXDByzza/6pZlEPJJd5L7Nh6SHEMPjL27mZUFSp7114Fus/M2oaPSyNf3Py0Qm49OUrRkv7dkAyEr0=
X-Received: by 2002:a05:6830:1011:: with SMTP id
 a17mr205651otp.154.1614842311521; 
 Wed, 03 Mar 2021 23:18:31 -0800 (PST)
MIME-Version: 1.0
References: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
 <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <86y2f3vmmb.fsf@HIDDEN>
In-Reply-To: <86y2f3vmmb.fsf@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Date: Thu, 4 Mar 2021 07:17:54 +0000
Message-ID: <CAOqdjBfr6K7w8UvvJrUFuYQOiaFhNeqZcMZNq1NOfAHRoSZAWA@HIDDEN>
Subject: Re: bug#46906: 28.0.50;
 byte compiler infloops trying to compile infloop
To: Andy Moreton <andrewjmoreton@HIDDEN>
Content-Type: multipart/mixed; boundary="00000000000058d60905bcb0c656"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46906
Cc: 46906 <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: -1.0 (-)

--00000000000058d60905bcb0c656
Content-Type: text/plain; charset="UTF-8"

On Wed, Mar 3, 2021 at 11:34 PM Andy Moreton <andrewjmoreton@HIDDEN> wrote:
> On Wed 03 Mar 2021, Pip Cet wrote:
> > On Wed, Mar 3, 2021 at 9:15 PM Pip Cet <pipcet@HIDDEN> wrote:
> >>
> >> Recipe in emacs -Q:
> >>
> >> In *scratch*, evaluate:
> >>
> >> (byte-compile (lambda (x)
> >>                 (if x (f))
> >>                 (while t)))
> >>
> >> Expected result:
> >>
> >> A (fairly useless) bytecode object
> >>
> >> Actual result:
> >>
> >> A spinning hourglass.
> >
> > Seems to be a fairly obvious bug in byte-opt.el, patch attached.
>
> Perhaps add your reproducer as a test case ?

Absolutely, thanks for the suggestion. See attached patch.

Should there, maybe, be a tag for tests that are known to loop forever
when they fail? It feels weird to write a test without a single should
in it...

Pip

--00000000000058d60905bcb0c656
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-Fix-bytecompiler-infloop-compiling-infloops-bug-4690.patch"
Content-Disposition: attachment; 
	filename="0001-Fix-bytecompiler-infloop-compiling-infloops-bug-4690.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_klujcb6c0>
X-Attachment-Id: f_klujcb6c0

RnJvbSAyZjQzMDEwN2Y0NmI1MDZkYmI4ZGQ3OWQ5Y2U1YTEwY2MyYjNkZTliIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaXAgQ2V0IDxwaXBjZXRAZ21haWwuY29tPgpEYXRlOiBXZWQs
IDMgTWFyIDIwMjEgMjE6Mzc6MTMgKzAwMDAKU3ViamVjdDogW1BBVENIXSBGaXggYnl0ZWNvbXBp
bGVyIGluZmxvb3AgY29tcGlsaW5nIGluZmxvb3BzIChidWcjNDY5MDYpCgoqIGxpc3AvZW1hY3Mt
bGlzcC9ieXRlLW9wdC5lbCAoYnl0ZS1vcHRpbWl6ZS1sYXBjb2RlKTogRG9uJ3QgYXBwbHkKb3B0
aW1pemF0aW9uIGlmIHdlIGNhbid0IGNoYW5nZSBhbnl0aGluZy4KKiB0ZXN0L2xpc3AvZW1hY3Mt
bGlzcC9ieXRlY29tcC10ZXN0cy5lbCAoYnl0ZWNvbXAtaW5mbG9vcCk6IE5ldyB0ZXN0LgotLS0K
IGxpc3AvZW1hY3MtbGlzcC9ieXRlLW9wdC5lbCAgICAgICAgICAgIHwgNiArKystLS0KIHRlc3Qv
bGlzcC9lbWFjcy1saXNwL2J5dGVjb21wLXRlc3RzLmVsIHwgNSArKysrKwogMiBmaWxlcyBjaGFu
Z2VkLCA4IGluc2VydGlvbnMoKyksIDMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9l
bWFjcy1saXNwL2J5dGUtb3B0LmVsIGIvbGlzcC9lbWFjcy1saXNwL2J5dGUtb3B0LmVsCmluZGV4
IGI1MWJhODAxNTUyZDYuLmFlZGZkZTZjMGM2YWIgMTAwNjQ0Ci0tLSBhL2xpc3AvZW1hY3MtbGlz
cC9ieXRlLW9wdC5lbAorKysgYi9saXNwL2VtYWNzLWxpc3AvYnl0ZS1vcHQuZWwKQEAgLTIwMTIs
OSArMjAxMiw5IEBAIGJ5dGUtb3B0aW1pemUtbGFwY29kZQogCSAoKGFuZCAobWVtcSAoY2FyIGxh
cDApIGJ5dGUtZ290by1vcHMpCiAJICAgICAgIChtZW1xIChjYXIgKHNldHEgdG1wIChudGggMSAo
bWVtcSAoY2RyIGxhcDApIGxhcCkpKSkKIAkJICAgICAnKGJ5dGUtZ290byBieXRlLXJldHVybikp
KQotCSAgKGNvbmQgKChhbmQgKG5vdCAoZXEgdG1wIGxhcDApKQotCQkgICAgICAob3IgKGVxIChj
YXIgbGFwMCkgJ2J5dGUtZ290bykKLQkJCSAgKGVxIChjYXIgdG1wKSAnYnl0ZS1nb3RvKSkpCisJ
ICAoY29uZCAoKGFuZCAob3IgKGVxIChjYXIgbGFwMCkgJ2J5dGUtZ290bykKKwkJCSAgKGVxIChj
YXIgdG1wKSAnYnl0ZS1nb3RvKSkKKyAgICAgICAgICAgICAgICAgICAgICAobm90IChlcSAoY2Ry
IHRtcCkgKGNkciBsYXAwKSkpKQogCQkgKGJ5dGUtY29tcGlsZS1sb2ctbGFwICIgICVzIFslc11c
dC0tPlx0JXMiCiAJCQkJICAgICAgIChjYXIgbGFwMCkgdG1wIHRtcCkKIAkJIChpZiAoZXEgKGNh
ciB0bXApICdieXRlLXJldHVybikKZGlmZiAtLWdpdCBhL3Rlc3QvbGlzcC9lbWFjcy1saXNwL2J5
dGVjb21wLXRlc3RzLmVsIGIvdGVzdC9saXNwL2VtYWNzLWxpc3AvYnl0ZWNvbXAtdGVzdHMuZWwK
aW5kZXggMDNjMjY3Y2NkMGZlZi4uZWViNzVjNTNlZTJhOSAxMDA2NDQKLS0tIGEvdGVzdC9saXNw
L2VtYWNzLWxpc3AvYnl0ZWNvbXAtdGVzdHMuZWwKKysrIGIvdGVzdC9saXNwL2VtYWNzLWxpc3Av
Ynl0ZWNvbXAtdGVzdHMuZWwKQEAgLTEyMjIsNiArMTIyMiwxMSBAQCBieXRlY29tcC1yZWlmeS1m
dW5jdGlvbgogICAgICAgICAoYnl0ZS1jb21waWxlICdjb3VudGVyKQogICAgICAgICAoc2hvdWxk
IChlcXVhbCAoY291bnRlcikgMSkpKSkpKQogCisoZXJ0LWRlZnRlc3QgYnl0ZWNvbXAtaW5mbG9v
cCAoKQorICAiQ2hlY2sgdGhhdCBvcHRpbWl6aW5nIGFuIGluZmluaXRlIGxvb3AgZG9lcyBub3Qg
bG9vcCBpbmRlZmluaXRlbHkuIgorICA7OyBUaGlzIGZvcm0gc2hvdWxkIG5vdCBjYXVzZSB0aGUg
b3B0aW1pemVyIHRvIGxvb3AgKGJ1ZyM0NjkwNikKKyAgKGJ5dGUtY29tcGlsZSAobGFtYmRhICh4
KSAoaWYgKGVxIHggeCkgKGYpKSAod2hpbGUgdCkpKSkKKwogOzsgTG9jYWwgVmFyaWFibGVzOgog
Ozsgbm8tYnl0ZS1jb21waWxlOiB0CiA7OyBFbmQ6Ci0tIAoyLjMwLjEKCg==
--00000000000058d60905bcb0c656--




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

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


Received: (at submit) by debbugs.gnu.org; 3 Mar 2021 23:33:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 03 18:33:30 2021
Received: from localhost ([127.0.0.1]:57229 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHazi-0000SD-El
	for submit <at> debbugs.gnu.org; Wed, 03 Mar 2021 18:33:30 -0500
Received: from lists.gnu.org ([209.51.188.17]:60124)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1lHazf-0000S4-Pn
 for submit <at> debbugs.gnu.org; Wed, 03 Mar 2021 18:33:28 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:39322)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1lHazf-0004pq-H8
 for bug-gnu-emacs@HIDDEN; Wed, 03 Mar 2021 18:33:27 -0500
Received: from ciao.gmane.io ([116.202.254.214]:55838)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1lHazd-0000Cy-Im
 for bug-gnu-emacs@HIDDEN; Wed, 03 Mar 2021 18:33:26 -0500
Received: from list by ciao.gmane.io with local (Exim 4.92)
 (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1lHaza-0005zO-N8
 for bug-gnu-emacs@HIDDEN; Thu, 04 Mar 2021 00:33:22 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Andy Moreton <andrewjmoreton@HIDDEN>
Subject: Re: bug#46906: 28.0.50;
 byte compiler infloops trying to compile infloop
Date: Wed, 03 Mar 2021 23:33:16 +0000
Message-ID: <86y2f3vmmb.fsf@HIDDEN>
References: <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
 <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt)
Cancel-Lock: sha1:Ukuw0S+CYhpFCqPaQ+HCS36iOY8=
Received-SPF: pass client-ip=116.202.254.214;
 envelope-from=geb-bug-gnu-emacs@HIDDEN; helo=ciao.gmane.io
X-Spam_score_int: 5
X-Spam_score: 0.5
X-Spam_bar: /
X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001,
 FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: submit
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: -0.9 (/)

On Wed 03 Mar 2021, Pip Cet wrote:

> On Wed, Mar 3, 2021 at 9:15 PM Pip Cet <pipcet@HIDDEN> wrote:
>>
>> Recipe in emacs -Q:
>>
>> In *scratch*, evaluate:
>>
>> (byte-compile (lambda (x)
>>                 (if x (f))
>>                 (while t)))
>>
>> Expected result:
>>
>> A (fairly useless) bytecode object
>>
>> Actual result:
>>
>> A spinning hourglass.
>
> Seems to be a fairly obvious bug in byte-opt.el, patch attached.

Perhaps add your reproducer as a test case ?

    AndyM





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

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


Received: (at 46906) by debbugs.gnu.org; 3 Mar 2021 21:44:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 03 16:44:46 2021
Received: from localhost ([127.0.0.1]:57154 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHZIU-0006I6-1D
	for submit <at> debbugs.gnu.org; Wed, 03 Mar 2021 16:44:46 -0500
Received: from mail-ot1-f52.google.com ([209.85.210.52]:44861)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pipcet@HIDDEN>) id 1lHZIS-0006Hu-9z
 for 46906 <at> debbugs.gnu.org; Wed, 03 Mar 2021 16:44:44 -0500
Received: by mail-ot1-f52.google.com with SMTP id f33so25106002otf.11
 for <46906 <at> debbugs.gnu.org>; Wed, 03 Mar 2021 13:44:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=I0rHMOSIsZnIu87HbSqLmWzbjZLwuqeRxEvsMqyvK8M=;
 b=QOKnsAS1WQCbbpz9JZTGv/87JlAXjowfRK1eVVzOioQJfSidlymUKMJcsd2eYqWfTD
 gVpeO++G/hZ9hmeEvUZ2ouDe2mOuRvedgqBnevPcfXc9wGsaRDTFb4uD8tfkkpwXpaTF
 hPt6nDY5YeVrXyIxcueJG2ceL6cSpce9gHj6FC6d5I8XltfxsxKLWj4VUSSE4tgk0/cJ
 lDQyxIxzmznYNpzpGG5WY4MUCBnCBzncHSZe+LIA/9Uirh7xstBmk34CIFBT1OPUHV/V
 //zBalOPCX4mGzqjMsy1v26MuTH2DxHon6HC6CbENXIjYVVTQOeNlxjYQDQqVNJjs8pw
 jr6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=I0rHMOSIsZnIu87HbSqLmWzbjZLwuqeRxEvsMqyvK8M=;
 b=a+JH9ZzxHa4K9UE6BFEk+zq/ZYRn2sAMt3RU9SZnCne+7ZD3IF/q0oqtl5nngMGDUv
 To2Rs2o3Uqu/E18sQyH9A2q0knL/MZqH3ccu5cmDOfOxL7SBx1vTbuVDhpC5nAmg5SyX
 KHZLE4WsGeNMuKl9NkAFU/tHkiq4dyL0uwEzdTKso5I5yrl5UwhlQYS/pJQPX2VXSe2B
 T27raTR27BcV7EnOm6QhijASGWZXe3O5PtRvUWgMr/eeL3dXnRxRNqqXGotW5BAlevRa
 9zdqlPuqgHyQnW0/AXkiE8brdR5kDQLfZL1MNcP8L7NCLvWjCnM86xY39iufeqbXn/0y
 67kg==
X-Gm-Message-State: AOAM532fMZ6Z86q9GNTLfADZNa57Pb71ZzP9FdcXPofl4MX607oaocLj
 MS9Ru1ivXtE+UaeFT+nHApmZhRSnolAh4wt+sTN65JK5f74=
X-Google-Smtp-Source: ABdhPJyZV03q/kn08WoinHKdbZP29lrlEoDoVhUA+14DqFSZS+jaGzKbfbDU/nK51Mx0STnWZOHmK9BsKrm/Pd8HarY=
X-Received: by 2002:a05:6830:1e51:: with SMTP id
 e17mr979413otj.292.1614807878593; 
 Wed, 03 Mar 2021 13:44:38 -0800 (PST)
MIME-Version: 1.0
References: <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
In-Reply-To: <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Date: Wed, 3 Mar 2021 21:44:02 +0000
Message-ID: <CAOqdjBfWDRbiDM5HxvQXB6JjYJ=+7Kz9ANrcreGbRQzDYySV-g@HIDDEN>
Subject: Re: bug#46906: 28.0.50;
 byte compiler infloops trying to compile infloop
To: 46906 <at> debbugs.gnu.org
Content-Type: multipart/mixed; boundary="000000000000fc14c905bca8c113"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46906
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: -1.0 (-)

--000000000000fc14c905bca8c113
Content-Type: text/plain; charset="UTF-8"

On Wed, Mar 3, 2021 at 9:15 PM Pip Cet <pipcet@HIDDEN> wrote:
>
> Recipe in emacs -Q:
>
> In *scratch*, evaluate:
>
> (byte-compile (lambda (x)
>                 (if x (f))
>                 (while t)))
>
> Expected result:
>
> A (fairly useless) bytecode object
>
> Actual result:
>
> A spinning hourglass.

Seems to be a fairly obvious bug in byte-opt.el, patch attached.

Okay to commit?

Pip

--000000000000fc14c905bca8c113
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-Fix-bytecompiler-infloop-compiling-infloops-bug-4690.patch"
Content-Disposition: attachment; 
	filename="0001-Fix-bytecompiler-infloop-compiling-infloops-bug-4690.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_kltyvz2a0>
X-Attachment-Id: f_kltyvz2a0

RnJvbSA1ODUyY2JlMGJmN2IyZTcwNjM2ZDI1MmNiZjViZjU0NWI2YTVjZDM5IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaXAgQ2V0IDxwaXBjZXRAZ21haWwuY29tPgpEYXRlOiBXZWQs
IDMgTWFyIDIwMjEgMjE6Mzc6MTMgKzAwMDAKU3ViamVjdDogW1BBVENIXSBGaXggYnl0ZWNvbXBp
bGVyIGluZmxvb3AgY29tcGlsaW5nIGluZmxvb3BzIChidWcjNDY5MDYpCgoqIGxpc3AvZW1hY3Mt
bGlzcC9ieXRlLW9wdC5lbCAoYnl0ZS1vcHRpbWl6ZS1sYXBjb2RlKTogRG9uJ3QgYXBwbHkKb3B0
aW1pemF0aW9uIGlmIHdlIGNhbid0IGNoYW5nZSBhbnl0aGluZy4KLS0tCiBsaXNwL2VtYWNzLWxp
c3AvYnl0ZS1vcHQuZWwgfCA2ICsrKy0tLQogMSBmaWxlIGNoYW5nZWQsIDMgaW5zZXJ0aW9ucygr
KSwgMyBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9saXNwL2VtYWNzLWxpc3AvYnl0ZS1vcHQu
ZWwgYi9saXNwL2VtYWNzLWxpc3AvYnl0ZS1vcHQuZWwKaW5kZXggYjUxYmE4MDE1NTJkNi4uYWVk
ZmRlNmMwYzZhYiAxMDA2NDQKLS0tIGEvbGlzcC9lbWFjcy1saXNwL2J5dGUtb3B0LmVsCisrKyBi
L2xpc3AvZW1hY3MtbGlzcC9ieXRlLW9wdC5lbApAQCAtMjAxMiw5ICsyMDEyLDkgQEAgYnl0ZS1v
cHRpbWl6ZS1sYXBjb2RlCiAJICgoYW5kIChtZW1xIChjYXIgbGFwMCkgYnl0ZS1nb3RvLW9wcykK
IAkgICAgICAgKG1lbXEgKGNhciAoc2V0cSB0bXAgKG50aCAxIChtZW1xIChjZHIgbGFwMCkgbGFw
KSkpKQogCQkgICAgICcoYnl0ZS1nb3RvIGJ5dGUtcmV0dXJuKSkpCi0JICAoY29uZCAoKGFuZCAo
bm90IChlcSB0bXAgbGFwMCkpCi0JCSAgICAgIChvciAoZXEgKGNhciBsYXAwKSAnYnl0ZS1nb3Rv
KQotCQkJICAoZXEgKGNhciB0bXApICdieXRlLWdvdG8pKSkKKwkgIChjb25kICgoYW5kIChvciAo
ZXEgKGNhciBsYXAwKSAnYnl0ZS1nb3RvKQorCQkJICAoZXEgKGNhciB0bXApICdieXRlLWdvdG8p
KQorICAgICAgICAgICAgICAgICAgICAgIChub3QgKGVxIChjZHIgdG1wKSAoY2RyIGxhcDApKSkp
CiAJCSAoYnl0ZS1jb21waWxlLWxvZy1sYXAgIiAgJXMgWyVzXVx0LS0+XHQlcyIKIAkJCQkgICAg
ICAgKGNhciBsYXAwKSB0bXAgdG1wKQogCQkgKGlmIChlcSAoY2FyIHRtcCkgJ2J5dGUtcmV0dXJu
KQotLSAKMi4zMC4xCgo=
--000000000000fc14c905bca8c113--




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

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


Received: (at submit) by debbugs.gnu.org; 3 Mar 2021 21:14:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 03 16:14:59 2021
Received: from localhost ([127.0.0.1]:57140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHYpf-0005ax-C7
	for submit <at> debbugs.gnu.org; Wed, 03 Mar 2021 16:14:59 -0500
Received: from lists.gnu.org ([209.51.188.17]:53410)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pipcet@HIDDEN>) id 1lHYpd-0005ap-JL
 for submit <at> debbugs.gnu.org; Wed, 03 Mar 2021 16:14:57 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38020)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pipcet@HIDDEN>) id 1lHYpd-00067J-Ds
 for bug-gnu-emacs@HIDDEN; Wed, 03 Mar 2021 16:14:57 -0500
Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:41111)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <pipcet@HIDDEN>) id 1lHYpc-0001KY-0m
 for bug-gnu-emacs@HIDDEN; Wed, 03 Mar 2021 16:14:57 -0500
Received: by mail-ot1-x32b.google.com with SMTP id w3so5315878oti.8
 for <bug-gnu-emacs@HIDDEN>; Wed, 03 Mar 2021 13:14:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=IHWL5iLuEI2l7sQEyBWD0ku6wtHH6VXDJ668SoWpfXA=;
 b=kGM/6mNGaxS+aWE5hfIIkdF0fh5tEqB7MGW3BKr8i0aWxjHKR7tpIqmlKx77VuKGPy
 woh/ir6zdMsTPS8mYH368CxkmUNCjAdpBqlwJ8Ap6GdlpgoU9+3ij8oCMh3H4ZEad/hh
 9WViYiP8xnoHTaFwJovPNxigBOAy3Hs91+rk569LBCXFtx883fQ1yupmEuBrMbxKDJSH
 UFVl5khqWDMNQb+/5EVpVc2jHI9G4rXCteLjR1VeyliGMLXTW/5BotpyLV84+4ENk4Tm
 qW0hfyhF31UcnGznlAKWWym+gvsx/sL4MRfhVIvz9R9FRMGfL7YTcP371k2vHtsRSoXY
 +K4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=IHWL5iLuEI2l7sQEyBWD0ku6wtHH6VXDJ668SoWpfXA=;
 b=qN67dhGoZz7FrxFlxBfv7FRsUL78AbLxFzlWzF1j1u9VAGfWXqNsSiANQPQNZDQTD7
 cMqdoSZg74m4vbUEC7Q0xYCepRacPkoxFGM5b1HWTJAgNabp2X4Tfd0w+e56Lqv5DTDJ
 fv6K4Lonlgrp6gGkEWJin1LttmOZ1mdxt9VMIQf5kf4hCXjnwDYocm7Czk0b3v+MHxoi
 AhGRlpnIfQXx3KKTjtP2rsCaFuy332d2IFHvCnbbqx9uA/Op8+HIjZ5JJzsowagb8V7i
 oPHB/U+vJqJrvU/Pt2u8c2a/7gnoVWHu4sA2/twu+FIUfUkwoVXHbkmK1ktN6AJEk29I
 vqtw==
X-Gm-Message-State: AOAM530JWfuAHh7GKHnGYEItLiQO+I+WjtxFnA+beiP0b2NHr+qC1Cue
 qNhuQKurI0mVWLTM3pmyAOlSM8lubIMms/sCDXJMyXaEvs/2PQ==
X-Google-Smtp-Source: ABdhPJwpc9SsS8kX3KY16sWEzKl85qH563r1X6JeY2Ujz/3prF6BZtfCsnyoLox9F054b/Efh1hel4k+4VGCdwyGZ64=
X-Received: by 2002:a05:6830:11d4:: with SMTP id
 v20mr831775otq.287.1614806094833; 
 Wed, 03 Mar 2021 13:14:54 -0800 (PST)
MIME-Version: 1.0
From: Pip Cet <pipcet@HIDDEN>
Date: Wed, 3 Mar 2021 21:14:18 +0000
Message-ID: <CAOqdjBegzojbh5YreKNm8r1mFqzSDLX1Lne1zFg=y3w5xoqx6g@HIDDEN>
Subject: 28.0.50; byte compiler infloops trying to compile infloop
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::32b;
 envelope-from=pipcet@HIDDEN; helo=mail-ot1-x32b.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
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.3 (--)

Recipe in emacs -Q:

In *scratch*, evaluate:

(byte-compile (lambda (x)
                (if x (f))
                (while t)))

Expected result:

A (fairly useless) bytecode object

Actual result:

A spinning hourglass.




Acknowledgement sent to Pip Cet <pipcet@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#46906; 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: Fri, 5 Mar 2021 13:15:02 UTC

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