From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48990: 28.0.50; buffer-local and threads malarkey Date: Tue, 28 Sep 2021 23:28:47 -0400 Message-ID: References: <87r1h68z90.fsf@dick> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15085"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48990@debbugs.gnu.org To: dick Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 29 05:29:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVQHO-0003dx-Gt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 05:29:10 +0200 Original-Received: from localhost ([::1]:40210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVQHM-0008SA-HR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Sep 2021 23:29:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVQHG-0008Rz-Jq for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 23:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVQHG-0005DN-7S for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 23:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVQHG-0001Cj-0l for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 23:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Sep 2021 03:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48990 X-GNU-PR-Package: emacs Original-Received: via spool by 48990-submit@debbugs.gnu.org id=B48990.16328861394620 (code B ref 48990); Wed, 29 Sep 2021 03:29:01 +0000 Original-Received: (at 48990) by debbugs.gnu.org; 29 Sep 2021 03:28:59 +0000 Original-Received: from localhost ([127.0.0.1]:47430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVQHD-0001CR-7M for submit@debbugs.gnu.org; Tue, 28 Sep 2021 23:28:59 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:22371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVQHA-0001C9-UJ for 48990@debbugs.gnu.org; Tue, 28 Sep 2021 23:28:57 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id EC162807F7; Tue, 28 Sep 2021 23:28:49 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 95A6380675; Tue, 28 Sep 2021 23:28:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1632886128; bh=8UU5Op34NF+sjWc/oPh7yQvVyf8OH07abt0vBZ8UOqw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AityX/h+DBN3diKcvy96uw4bXcTbDfFnS7UIncoD9bjMRRwX4L5fHKWMsD/4V32a4 naGRJ4q0mNUjxgIKIFczVurxdTa7D66cox1v5L8tivdxWXVlfNstWI39fsAy8+3+54 mTZ0rvCMn+NTw9rIUPuLkvXQl6cHF2aEGIkYuZmW0Lr6rm+M+w0QuAa9ly/Y0IEICX YKtWCS5G/aMlnfyzbt+n5Nvm4VFE++30of97SRUVgQBtQsXx/FEymBs2Z6SZtHRHxI KmHx0TsOlkKS79f8/2dUaEjdxu1r+F9069wspHMyYgIL8s8KDxnZhzPlWfagRh94+V vj/SVktaw3qNQ== Original-Received: from milanesa (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6986112027F; Tue, 28 Sep 2021 23:28:48 -0400 (EDT) In-Reply-To: <87r1h68z90.fsf@dick> (dick's message of "Sat, 12 Jun 2021 19:00:27 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215811 Archived-At: > # 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