GNU bug report logs - #48990
28.0.50; buffer-local and threads malarkey

Previous Next

Package: emacs;

Reported by: dick <dick.r.chiang <at> gmail.com>

Date: Sat, 12 Jun 2021 23:01:02 UTC

Severity: normal

Found in version 28.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 48990 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: dick <dick.r.chiang <at> gmail.com>
Cc: 48990 <at> debbugs.gnu.org
Subject: Re: bug#48990: 28.0.50; buffer-local and threads malarkey
Date: Tue, 28 Sep 2021 23:28:47 -0400
> # buffer-local causes let-bound variable to freak out
> src/emacs -Q --batch --eval "(setq confuse-thread t)" -l ./usurped.el

I get:

    failed in thread#1, var is local-4
    failed in thread#2, var is local-4
    failed in thread#3, var is local-4
    failed in thread#0, var is local-4
    succeeded in thread#4, var is let

which indeed is quite wrong, since the thread let-binds `doomsday` to
"let" and then doesn't mutate it anywhere.

Sounds like a bug in the context switch code.


        Stefan





This bug report was last modified 3 years and 182 days ago.

Previous Next


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