From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Mark procedures Date: Mon, 20 Jun 2016 12:34:24 +0200 Message-ID: <87eg7sjgi7.fsf@pobox.com> References: <87vb9ihy6x.fsf@igalia.com> <87bnb891t8.fsf@gnu.org> <87ziyspp5d.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466418897 26313 80.91.229.3 (20 Jun 2016 10:34:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 10:34:57 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jun 20 12:34:48 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bEwXX-0005LU-JZ for guile-devel@m.gmane.org; Mon, 20 Jun 2016 12:34:47 +0200 Original-Received: from localhost ([::1]:42525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwXW-0003Sv-QO for guile-devel@m.gmane.org; Mon, 20 Jun 2016 06:34:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwXP-0003SB-HD for guile-devel@gnu.org; Mon, 20 Jun 2016 06:34:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEwXM-0004cS-9x for guile-devel@gnu.org; Mon, 20 Jun 2016 06:34:39 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:55382 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwXM-0004au-5F; Mon, 20 Jun 2016 06:34:36 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 33B4620B94; Mon, 20 Jun 2016 06:34:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=wM0rYlc8ARbxIm245clqNg1onDs=; b=Jpjmaw 4MYO3bwMfBkL0efe3mEqJL99zMJXRnAdDB0Wv/pUXZxdKd7CxBjR++zv7Cug4K5y SMkS5hyRPYp90pzrhTLVS6Y2LqUB40cfZAemlzpVllXVuiKCFVeTGz+3//txrm+O fEYEwycW33VSirZZ5kgdHstuZbSDkTlxAWR5A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=lLTj0C4FMfe1Nmef4z528yGTiMZZYYaq kOAzCzMemdbwm/nqBNFmVt8ffc+IwMLf3Vcx1ti+nVl+BY2tE6t1rMs1jVuUNcxj 4PlwU/LuuahksGL2lUufHq+4qzPyvTlgkTnVJ6Sb+1ftZPWG14Ipt+1ryoV7Pa9T XaqvAdT+ND4= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 194A720B93; Mon, 20 Jun 2016 06:34:33 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 25C5920B8E; Mon, 20 Jun 2016 06:34:32 -0400 (EDT) In-Reply-To: <87ziyspp5d.fsf@pobox.com> (Andy Wingo's message of "Thu, 05 Nov 2015 14:11:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: 9357B082-36D2-11E6-8AA9-28A6F1301B6D-02397024!pb-sasl2.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.108.67 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18362 Archived-At: Picking up an old thread.... On Thu 05 Nov 2015 14:11, Andy Wingo writes: > (1) A bug related to SMOB finalization and marking that affects > LilyPond > > For (1) it seems to me that we just have a bug. A SMOB mark function > was called on an object after the finalizer. ****Note**** that having > the finalizer called doesn't mean that the GC object was collected -- it > just means it was collectable, perhaps in a clique of objects. > Finalization being asynchronous with marking it's possible that a clique > of objects was only half-finalized when a new mark procedure runs. The > mark procedure saw an object on which free() was already called -- this > is possible. > > We should fix Guile so to "null out" the SMOB typecode when the SMOB > finalizer is called. If our mark procedure sees a SMOB that has already > been finalized, it just returns. AFAIU the Lilypond / Guile 2.0 bug is still there. Has anyone tried this strategy to fix it? Andy