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: after-gc-hook recently broken for bdwgc 7.2alpha CVS Date: Tue, 12 Apr 2011 00:52:54 +0200 Message-ID: References: <87wrj49fqi.fsf@netris.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1302571704 26864 80.91.229.12 (12 Apr 2011 01:28:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2011 01:28:24 +0000 (UTC) Cc: guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Apr 12 03:28:20 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from [140.186.70.17] (helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9SOx-0002RO-Ru for guile-devel@m.gmane.org; Tue, 12 Apr 2011 03:28:19 +0200 Original-Received: from localhost ([::1]:58396 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9SOx-0003pN-L5 for guile-devel@m.gmane.org; Mon, 11 Apr 2011 21:28:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9SOt-0003PF-HV for guile-devel@gnu.org; Mon, 11 Apr 2011 21:28:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9Py9-0002KB-7F for guile-devel@gnu.org; Mon, 11 Apr 2011 18:52:30 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:64549 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Py9-0002Jp-4Z for guile-devel@gnu.org; Mon, 11 Apr 2011 18:52:29 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id D9CBB54AF; Mon, 11 Apr 2011 18:54:25 -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=eynkKwOZlV6fZXl4wEq2jCGBOUc=; b=pw0klX gl7VpS63O29SDbM9wNxnmyrtCwsK89urGKVfwltbPojv7NhC6y2ozAQJBXvHTvIQ rDy0Y2JmXUfEscF0iRzHxTipUkz2UI8e8H7DDzVDciXNRF5IAQFxtslJLn7Yd/ie MR/eAFg4jHH8COYD3yf8cVrKKEbkoHzouLBlU= 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=pHQt8CQABeoTqP6Dxc4yKbYFUO5kHtzn FpfK5kARiFERGyfK6OUj5jQ4moazB5lMX+eFHSmeFJygyqvCWcKLqWEdTuxG2CL9 G7ZmK4OmrGbt06dmRQoumzIyF7UrZqU/N3yfgQxyYAVC0Vop64ybG0HR5mV3HSKS iKMi1giY7Ng= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id C614E54AE; Mon, 11 Apr 2011 18:54:23 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 345F954AD; Mon, 11 Apr 2011 18:54:21 -0400 (EDT) In-Reply-To: <87wrj49fqi.fsf@netris.org> (Mark H. Weaver's message of "Sat, 09 Apr 2011 01:05:25 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: A4FCA516-648E-11E0-B8EE-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-devel=m.gmane.org@gnu.org X-Broken-Reverse-DNS: no host name found for IP address 140.186.70.17 Xref: news.gmane.org gmane.lisp.guile.devel:12212 Archived-At: On Sat 09 Apr 2011 07:05, Mark H Weaver writes: > Sometime between 2.0.0 and current stable-2.0, after-gc-hook has been > broken on my system: "FAIL: gc.test: gc: after-gc-hook gets called". > > Both 2.0.0 and current stable-2.0 are built and linked with bdwgc > 7.2alpha from CVS, circa 2011-03-27. This on gNewSense metad/mipsel > (slightly modified Debian Lenny). > > Any ideas? In 1.8, this hook was called after GC. In 2.0, it was only called on explicit (gc), because the boehm GC doesn't have hooks like this. But then in ec7f624d652eaf6e4cf06253101b4a986e1b9e8e I figured out an evil way to get a hook: simply malloc an object, and resuscitate it in its finalizer. The finalizer can then schedule the hook. If your hook is not running though, that would indicate a problem. So, no direct ideas, but good luck :-) Cheers, Andy -- http://wingolog.org/