GNU bug report logs - #24695
impossible to use weak hash tables inside gc hooks

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Stefan Israelsson Tampe <stefan.itampe@HIDDEN>; dated Fri, 14 Oct 2016 18:56:02 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 24695 <at> debbugs.gnu.org:


Received: (at 24695) by debbugs.gnu.org; 1 Mar 2017 12:50:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 01 07:50:05 2017
Received: from localhost ([127.0.0.1]:32942 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cj3hl-0006Y3-JF
	for submit <at> debbugs.gnu.org; Wed, 01 Mar 2017 07:50:05 -0500
Received: from pb-sasl1.pobox.com ([64.147.108.66]:64122
 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wingo@HIDDEN>) id 1cj3hk-0006Xv-8e
 for 24695 <at> debbugs.gnu.org; Wed, 01 Mar 2017 07:50:04 -0500
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1])
 by pb-sasl1.pobox.com (Postfix) with ESMTP id C06D75E718;
 Wed,  1 Mar 2017 07:50:02 -0500 (EST)
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=J40oQJD60zc3KxSuwIS7ICmaY8g=; b=oEaHEy
 X9y9qKL4Mnjj73Z0OtoimknGdd5ONyLagXdVtEiZXuu7rd+oE41p2Jrr0anu1Kf5
 xylRoaT1Zob5WFAPD6+HLRjUbg/tSrSGil0b+8m+2mVWNH0DrnQA1fMk+eo/RuYg
 LIZRBCGPxOC+/S+zf4YntUd09xTQS68KdTGSM=
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=jYWjrFCsgh9eDTdxA3BtJAs8bNHsLPa9
 2/TApbDF2/OpM2uphbL8iM6DBjODEEluAV2yGtN65asANC9+TfZ1qI7anZnZ8sLN
 q+47xFQ32DcUJQlXtpJtnW2YuGEVdIJnD809E0EwZyqeQfIrBxl/1CeeM3p4UpoO
 aqOQb0mQjMw=
Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1])
 by pb-sasl1.pobox.com (Postfix) with ESMTP id 76B1A5E715;
 Wed,  1 Mar 2017 07:50:02 -0500 (EST)
Received: from clucks (unknown [109.190.228.233])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 36CE45E714;
 Wed,  1 Mar 2017 07:50:00 -0500 (EST)
From: Andy Wingo <wingo@HIDDEN>
To: Stefan Israelsson Tampe <stefan.itampe@HIDDEN>
Subject: Re: bug#24695: impossible to use weak hash tables inside gc hooks
References: <CAGua6m3rdMOsnCNihhMn3Mbn2X9QiU5KFPv4HLdvK8tWbC=PBg@HIDDEN>
Date: Wed, 01 Mar 2017 13:49:53 +0100
In-Reply-To: <CAGua6m3rdMOsnCNihhMn3Mbn2X9QiU5KFPv4HLdvK8tWbC=PBg@HIDDEN>
 (Stefan Israelsson Tampe's message of "Fri, 14 Oct 2016 20:54:56
 +0200")
Message-ID: <87wpc9go0e.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Pobox-Relay-ID: 9581AA8E-FE7D-11E6-BBA9-B667064AB293-02397024!pb-sasl1.pobox.com
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 24695
Cc: 24695 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Fri 14 Oct 2016 20:54, Stefan Israelsson Tampe <stefan.itampe@HIDDEN> writes:

> For more advanced gc concepts it would be nice to keep a set a objects
> in a weak key hash table and at gc loop over the alive ones the
> various gc hooks that is available for the c
> coder.
>
> The problem is that current guile data structure would hang on folding
> because inside the guile weak folder gc is assumed to be
> prevented. Not sure what to do here. This might be a
> feature request or a bug report dependning on how you view it.

What does "at GC" mean?  After GC?  Before GC is a pretty tense
situation as you can't allocate memory.  Also I suspect you could do
this with a weak vector (or other structure with disappearing links) and
a before_gc C hook.  WDYT?

I am tempted to just close this one as out of scope for Guile :)

Andy




Information forwarded to bug-guile@HIDDEN:
bug#24695; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Oct 2016 18:55:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 14 14:55:11 2016
Received: from localhost ([127.0.0.1]:55562 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bv7dP-0000W6-3m
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2016 14:55:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53043)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefan.itampe@HIDDEN>) id 1bv7dN-0000Vt-F7
 for submit <at> debbugs.gnu.org; Fri, 14 Oct 2016 14:55:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <stefan.itampe@HIDDEN>) id 1bv7dH-0002H9-Hn
 for submit <at> debbugs.gnu.org; Fri, 14 Oct 2016 14:55:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50404)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <stefan.itampe@HIDDEN>)
 id 1bv7dH-0002Gp-E5
 for submit <at> debbugs.gnu.org; Fri, 14 Oct 2016 14:55:03 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44002)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <stefan.itampe@HIDDEN>) id 1bv7dF-0003Fm-1R
 for bug-guile@HIDDEN; Fri, 14 Oct 2016 14:55:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <stefan.itampe@HIDDEN>) id 1bv7dD-0002Fw-1i
 for bug-guile@HIDDEN; Fri, 14 Oct 2016 14:54:59 -0400
Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:37078)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <stefan.itampe@HIDDEN>)
 id 1bv7dC-0002FN-RA
 for bug-guile@HIDDEN; Fri, 14 Oct 2016 14:54:58 -0400
Received: by mail-wm0-x22e.google.com with SMTP id c78so14081237wme.0
 for <bug-guile@HIDDEN>; Fri, 14 Oct 2016 11:54:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to;
 bh=K49W/RIuY6uBhVepT5+TpI6ib/RzFz/DJcCGZXfRIKw=;
 b=jsakf73wck9kKdBBbxyRNZ+ulBIwrZeAqHM7rZX2bzaDCeNHk8jgA1FKJoVIrCnU53
 wgiD75X1TVd2e/5qX2+Mck2kktBjgNRlH83GxM7PUxWhKrKYZ6wyLlq9fh5j/Q1aHihd
 vOvPdPFC+4G8otKgvl5Mbnv03jNgdoPyz2ZJBV2LdIWn/dE9c7dGtlTiweEYUDlifwSJ
 PwwgBmPt6z0ecEWaTaMIx6lXnWCQopOZjDceDXvIxO4dtE9PJVBpVxTVlbT+aZCVWl+h
 6zT0WBVQasxEEuLCPhi6WAl4vvvkffIgtmLB+vLNdz/2zswJtT9IIErav7LY2hIc+qqh
 sZRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=K49W/RIuY6uBhVepT5+TpI6ib/RzFz/DJcCGZXfRIKw=;
 b=csuBEgo4ghuTTtvUCA89u0lTWtRXEGf1HxsBh7bTw2WbcTTBLaEbEhtwddyPLgvQYb
 oHy3t0HEz7NzaBVD0MF1tE1EmzeCcoiI9zmz9dONiYt9yF3e73gwyz8zb1c33fMCZgqV
 Qal2PW5EeMvF2ZltKXdRe0UWCK2/zd/TBCsTEacQwvMDuWEsvFZhD1mO2oKbMY1ABmbr
 6irdD5Vff2V2ies0JDrR69Ub0mXbrKLum969KRMZpbAPusSgk6iBW+dq2RxSYxdHdM52
 9HfJzvyN347SQdKtC7RwwP13+ixfdWJxfL2oZhygcoHwvxQRbQ/BH7TEVmiYKvk19mJC
 6yyA==
X-Gm-Message-State: AA6/9RnBArLDJhbRgHotMMcFldgZ2F06x2mhmdHCCrzh4WnE7rVXSuzW5A3zz+PmVie1hyspYipRwnDI6pwnsg==
X-Received: by 10.28.59.9 with SMTP id i9mr6948101wma.102.1476471296829; Fri,
 14 Oct 2016 11:54:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.225.85 with HTTP; Fri, 14 Oct 2016 11:54:56 -0700 (PDT)
From: Stefan Israelsson Tampe <stefan.itampe@HIDDEN>
Date: Fri, 14 Oct 2016 20:54:56 +0200
Message-ID: <CAGua6m3rdMOsnCNihhMn3Mbn2X9QiU5KFPv4HLdvK8tWbC=PBg@HIDDEN>
Subject: impossible to use weak hash tables inside gc hooks
To: bug-guile@HIDDEN
Content-Type: multipart/alternative; boundary=001a114a04b02b2e24053ed7c30a
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

--001a114a04b02b2e24053ed7c30a
Content-Type: text/plain; charset=UTF-8

For more advanced gc concepts it would be nice to keep a set a objects in a
weak key hash table and at gc loop over the alive ones the various gc hooks
that is available for the c coder.

The problem is that current guile data structure would hang on folding
because inside the guile weak folder gc is assumed to be prevented. Not
sure what to do here. This might be a feature request or a bug report
dependning on how you view it.

Regards

--001a114a04b02b2e24053ed7c30a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">For more advanced gc concepts it would be nice to keep a s=
et a objects in a weak key hash table and at gc loop over the alive ones th=
e various gc hooks that is available for the c coder.<div><br></div><div>Th=
e problem is that current guile data structure would hang on folding becaus=
e inside the guile weak folder gc is assumed to be prevented. Not sure what=
 to do here. This might be a feature request or a bug report dependning on =
how you view it.</div><div><br></div><div>Regards</div></div>

--001a114a04b02b2e24053ed7c30a--




Acknowledgement sent to Stefan Israelsson Tampe <stefan.itampe@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#24695; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.