From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alex Newsgroups: gmane.emacs.devel Subject: Re: Help please! To track down GC trying to free an already freed object. Date: Thu, 04 Apr 2019 22:49:22 -0600 Message-ID: <87bm1l6oq5.fsf@gmail.com> References: <20190402112537.GA6212@ACM> <20190402202412.GA25792@ACM> <4a2df4442b4acf2eb2dabd3c2c4227c5.squirrel@dancol.org> <20190402210013.GD25792@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27941"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: Daniel Colascione , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 05 06:50:08 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCGnl-00073n-BU for ged-emacs-devel@m.gmane.org; Fri, 05 Apr 2019 06:50:05 +0200 Original-Received: from localhost ([127.0.0.1]:36000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCGnk-0002g0-D4 for ged-emacs-devel@m.gmane.org; Fri, 05 Apr 2019 00:50:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCGnC-0002ff-LM for emacs-devel@gnu.org; Fri, 05 Apr 2019 00:49:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCGnB-0008RG-Kc for emacs-devel@gnu.org; Fri, 05 Apr 2019 00:49:30 -0400 Original-Received: from mail-it1-x130.google.com ([2607:f8b0:4864:20::130]:37139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCGnB-0008Jn-E8 for emacs-devel@gnu.org; Fri, 05 Apr 2019 00:49:29 -0400 Original-Received: by mail-it1-x130.google.com with SMTP id u65so7501222itc.2 for ; Thu, 04 Apr 2019 21:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=syVpqJTckqq8IcKw4x+Zne9XpexKF2C94LoiRpDiYtE=; b=juVx9p6SguWqE24zTUUB93S/arH360reiJogSefuPJ8i9TQfARPEg/KMaiVbk97bUQ dai1oJ5cJbVOqPo/sMDkx0o6AfL3QCVYnqz2M9O2UlhwOJtVBGcZXarzlfANSC7h3KjX WuItQbGlbeJUkNrr2wTko2NORE44wFeMIfij70K7coDcq2sxKAnFCTDifGFjWwX7ZCIH DGgc+hk75ZyRqKEVBT/C4LN6ZB36puQVeEHaSQK+NXHgvq7KwT+GCAZD3007bQtmzOn2 CyCB8xW9iyqDiAuvWWhhUqR0GFWQb5LcefYGHfN4sIle2etQsDQKZWnVbHt7PiljnWWJ lXLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=syVpqJTckqq8IcKw4x+Zne9XpexKF2C94LoiRpDiYtE=; b=XtbqLkcaYvkQLrjF6OFRnLX0oNxXoUPZ6J0lSnuHBeTTWe9jyXxjm6SRz0cLeDX8tJ W/sXlA9b4HHfUoaHzo4AWReB4Hg9p90F7RQBFO27qmT36FfhcrOfe5ogO7H1o5GPCWhS jkw4hAIApE+wPMaQyuMSQPnH0x1IAqdV74KysQc+3CNhPriSYCC8XIsWTF0fHx8zXET1 tVO3oZQmlsHRBYQK5ytl9KgILZSvrRAVaO80LvhQrIhU3T40qpm/2LbaqKCZgnOsm21U 3IcNmDwkf+dfZ8alNIVzh7y+Bj02IJuEDAfAfrj6E3cb0xKEG5kh2Ww7YtKccEiAloSu MbAA== X-Gm-Message-State: APjAAAW6AAPSOVM0sBx8dWPBxBqqaYfCKM3yRHspjIHU5VtYLC4SQgPV pWtTCJzfig5ls+tURAuiA7rtQtBo X-Google-Smtp-Source: APXvYqxdGbXwFuaIlrhrQsySHVnjL4tjfa+3EbdD/qnbnWxXDwBpnpkHLxdEXt0a+bKpBI6v81gwWw== X-Received: by 2002:a24:7a8b:: with SMTP id a133mr6882179itc.118.1554439766804; Thu, 04 Apr 2019 21:49:26 -0700 (PDT) Original-Received: from lylat ([2604:3d09:e37f:1500:1a72:4878:e793:7302]) by smtp.gmail.com with ESMTPSA id f132sm8817672ioa.76.2019.04.04.21.49.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 21:49:25 -0700 (PDT) In-Reply-To: <20190402210013.GD25792@ACM> (Alan Mackenzie's message of "Tue, 2 Apr 2019 21:00:13 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::130 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234965 Archived-At: Alan Mackenzie writes: > Hello again, Daniel. > > On Tue, Apr 02, 2019 at 13:33:02 -0700, Daniel Colascione wrote: > >> So if I read symbol foo from file1.el and symbol foo from file2.el, I get >> two different symbol-with-location instances, each tagged with a different >> source location? Do these symbol objects compare eq to each other? > > They do, yes. Otherwise the byte compiler wouldn't work, as it > frequently compares a symbol-with-position with a constant ("ordinary") > symbol using eq. > > However, it is envisaged the flag symbols-with-pos-enable will be bound > to non-nil only by the byte compiler. The reader resets this position to > zero for each top-level form it reads. I apologize if this topic already reached its conclusion, but IMO having eq return true for two different object types is quite surprising behaviour. Is it out of the question to leave eq alone and introduce, e.g., eq-excluding-position that strips possible positions before comparison?