From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#30846: 26.0.91; debug-watch of kill-all-local-variables triggers 'assertion failed: found == !EQ (blv->defcell, blv->valcell)' Date: Sun, 18 Mar 2018 10:20:54 -0400 Message-ID: <87po41tqgp.fsf@gmail.com> References: <87sh8xttpq.fsf@gmail.com> <837eq9pjdm.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521382817 21343 195.159.176.226 (18 Mar 2018 14:20:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Mar 2018 14:20:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 30846@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 18 15:20:13 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exZAQ-0005Pu-Du for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Mar 2018 15:20:10 +0100 Original-Received: from localhost ([::1]:38066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exZCT-0001h9-KX for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Mar 2018 10:22:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exZCK-0001en-5U for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 10:22:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exZCF-0004nH-7g for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 10:22:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exZCF-0004my-4K for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 10:22:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1exZCD-0006dX-N3 for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 10:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Mar 2018 14:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30846 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30846-submit@debbugs.gnu.org id=B30846.152138286425438 (code B ref 30846); Sun, 18 Mar 2018 14:22:01 +0000 Original-Received: (at 30846) by debbugs.gnu.org; 18 Mar 2018 14:21:04 +0000 Original-Received: from localhost ([127.0.0.1]:40255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exZBI-0006cD-FB for submit@debbugs.gnu.org; Sun, 18 Mar 2018 10:21:04 -0400 Original-Received: from mail-it0-f49.google.com ([209.85.214.49]:37536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exZBG-0006bJ-4V for 30846@debbugs.gnu.org; Sun, 18 Mar 2018 10:21:02 -0400 Original-Received: by mail-it0-f49.google.com with SMTP id k79-v6so7256007ita.2 for <30846@debbugs.gnu.org>; Sun, 18 Mar 2018 07:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=4iVNkg1Emji2m9MmIpJ/pMRNEhmax33z/m+/48J7BnM=; b=UY+6d/pE3tEAURInXqMh0RAqo/FxYPon3d0UQcZ7DaU9bwtYRy97GuTM7B3jbpL7Wz jVINQ2M0XPyiiCOHMSJ7BoE2pV+A8FJrzdc1PztMepkXL+F9LAlwFInOlVbeQGwrOJI/ sNace/SwtoFO6jWv+EkvGWggaQgNav03dJLoWijsefhM37RBHPEM3X3vHHO7grFvW6EU i3E+Q6KKEDHGNZXn8wTuy+ZBjpxeQhXKMTCwoX7XucsYOARYqaG3hwhlZW0X7cD0CNb0 PIY7JPxuaEmh4b5oQGlhZYUV+PWosfeKBnn9hXwlIxsA5Jc/ie/7NnRAlFjpOYfz2RnW 79Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=4iVNkg1Emji2m9MmIpJ/pMRNEhmax33z/m+/48J7BnM=; b=DVsLg9172ier+1CGqLb5yme4X6JUjnPaFu+HdC2XSQGIGs85zCeG6UkJvbmTlnJUnC WoLWhHrlZs22feLSgYVPh5OdBfT9TcMXYODNr5e1IjvC6G9AdAdXgx3OZ+TgqHUqYo5u M8zG7UsfTQBjTzkGWUrAoHYbKo3RXOzf35QMtt5AGm4Lop7AVf8BTZ72tNQbI2NxzLZk GR+idrj2v4sisK2ZGKwQBt0dQM0eV8ISfiEIuMvSVwQuqOSJdEs+dMbaT8in62lrxpoy dCBd1qXZcpXO5ofGFdIb1IGfDbZ1c3VYRV9B4lSe/xzFS1WXnuQIpPyfuUKNG/gTDKhl 2oAQ== X-Gm-Message-State: AElRT7HgmZkUiW/NWos1MT11bYXUIHViy3IPEJWeS9kgL2RAYiuqilUV ogBkrk7TFEDU1lqlo6wGFL6kPQ== X-Google-Smtp-Source: AG47ELtA103BuIS+z9JUwWYn7HG5CED9tf40J6QaEl74txJdkOwDBSB0Tw7RD4a5aF/aWhvkPnktnA== X-Received: by 2002:a24:545:: with SMTP id 66-v6mr856166itl.1.1521382856311; Sun, 18 Mar 2018 07:20:56 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e142-v6sm2409181ite.3.2018.03.18.07.20.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 07:20:55 -0700 (PDT) In-Reply-To: <837eq9pjdm.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 18 Mar 2018 16:07:33 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144384 Archived-At: Eli Zaretskii writes: >> From: Noam Postavsky >> Date: Sun, 18 Mar 2018 09:10:41 -0400 >> >> Evaluate the following from 'emacs -Q': >> >> (setq-local foo 1) >> >> ;; Simulate (debug-watch 'foo) + continue from *Backtrace* >> (add-variable-watcher 'foo (lambda (symbol newval operation where) >> (with-temp-buffer >> (kill-all-local-variables)))) >> (fundamental-mode) >> >> This results in >> >> ../../src/data.c:98: Emacs fatal error: assertion failed: found == !EQ (blv->defcell, blv->valcell) >> >> Backtrace attached. I guess it has something to do with the recursive >> `kill-all-local-variables' call, although I'm not familiar enough with >> the local variable machinery to say more about it. > > Do you mean that the inner call to kill-all-local-variables steps on > toes of the outer call, and thus corrupts the local values or > something? If so, do you see any signs of such a corruption? Because > otherwise maybe the assertion is wrong? No, I haven't seen any signs of corrupted values, though I'm not sure exactly where to look. It's possible the assertion is wrong (or more precisely, that the variable watcher breaks the assertion without breaking anything else). I don't really understand what the assertion is testing, at a high level (that is, why does it expect 'defcell' and 'valcell' to have that relation).