GNU bug report logs - #79228
30.1.90; native--compile-async sentinel can error if threads are running

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Tue, 12 Aug 2025 21:57:01 UTC

Severity: normal

Found in version 30.1.90

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: Spencer Baugh <sbaugh <at> janestreet.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: dmitry <at> gutov.dev, acorallo <at> gnu.org, johnw <at> gnu.org, 79228 <at> debbugs.gnu.org
Subject: bug#79228: 30.1.90; native--compile-async sentinel can error if threads are running
Date: Tue, 02 Sep 2025 10:40:53 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Spencer Baugh <sbaugh <at> janestreet.com>
>> Cc: dmitry <at> gutov.dev,  acorallo <at> gnu.org,  johnw <at> gnu.org,  79228 <at> debbugs.gnu.org
>> Date: Tue, 02 Sep 2025 09:18:12 -0400
>> 
>> > And it's unjustified, since if worse comes to worst, we can simply
>> > unlock the process that performs async compilation.  No need to reach
>> > far-fetched conclusions about processes in general because of this
>> > specific case.
>> 
>> Okay, then this patch should fix the bug.
>
> But does it?  You've brought up the issue, so presumably you have a
> way of recreating the problem.

Not easily, but fine, I did some more work to figure out a reliable
reproduction:

1. Delete eln-cache
2. emacs -Q --eval '(dotimes (_ 5) (make-thread (lambda () (while t (sit-for 1)))))'
3. Observe errors in *Messages* from native compilation

> Then please try this patch and tell whether it indeed solves the
> problem.

Yes, it does.




This bug report was last modified 4 days ago.

Previous Next


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