From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.devel Subject: RE: [PATCH] At-exit hook Date: Thu, 7 Nov 2024 12:23:08 +0100 Message-ID: <20241107122308.ZnP72D00T42S6aw01nP8co@laurent.telenet-ops.be> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_08739771-F14E-4646-AABB-2B28780269DE_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34821"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mikael Djurfeldt To: "mikael@djurfeldt.com" , guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Thu Nov 07 12:23:34 2024 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t90bt-0008sO-SY for guile-devel@m.gmane-mx.org; Thu, 07 Nov 2024 12:23:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t90bd-0001vD-LA; Thu, 07 Nov 2024 06:23:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t90bb-0001v2-GO for guile-devel@gnu.org; Thu, 07 Nov 2024 06:23:15 -0500 Original-Received: from laurent.telenet-ops.be ([2a02:1800:110:4::f00:19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t90bY-0004vD-UL for guile-devel@gnu.org; Thu, 07 Nov 2024 06:23:15 -0500 Original-Received: from [IPv6:2a02:1811:8c0e:ef00:45f4:a590:36c8:c699] ([IPv6:2a02:1811:8c0e:ef00:45f4:a590:36c8:c699]) by laurent.telenet-ops.be with cmsmtp id ZnP72D00T42S6aw01nP8co; Thu, 07 Nov 2024 12:23:08 +0100 Importance: normal X-Priority: 3 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r24; t=1730978588; bh=36AiUu1MmZ0XYsnNcFK/x9cirSoBKyLAF4iqPKNTv6g=; h=Message-ID:MIME-Version:To:Cc:From:Subject:Date:In-Reply-To: References:Content-Type:From; b=V7yv+PqQIMO8crKbmj7B/rnjY1znf1wfEYz3Uw/mgTjyRTxHKDJuztPQ9u3hJYm6a Uw1G6hB+K+/sQlMYC1o2Ar3rH1MCXbDjAMpPAopEuquWBfPsO6Pl9oHbkJWbQvx6RJ r9878KNE6/DGUf84aAhB0u57G+eizeaAfRTcSh/k2HlVjvue1OY1dzmBcPaarzfTto DkXvhCwLXMkQRXJIT7CLR12fMjTG9q8tMuOL5bgr/DLk7eS4ejfThpjhvMD29TazhC G2JoNiWSVaREKHEa3il8YNvK7JQ4Q43hsCEyBiBEyha0fA+IEDKrheMcrjmr0ZPQL8 QG9dInUAMtcyA== Received-SPF: pass client-ip=2a02:1800:110:4::f00:19; envelope-from=maximedevos@telenet.be; helo=laurent.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22760 Archived-At: --_08739771-F14E-4646-AABB-2B28780269DE_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" =E2=80=98atexit=E2=80=99 functions are run at =E2=80=98exit=E2=80=99. =E2= =80=98exit=E2=80=99 can be run from signal handlers (*). Since the hook run= s Scheme code, it could do a lot of AC-unsafe things, resulting in problems= . (*) glibc documentation says =E2=80=98exit=E2=80=99 is AC-unsafe, but this = is unsupported by POSIX AFAICT. OTOH the same applies to even =E2=80=98mall= oc=E2=80=99, so likely I=E2=80=99m looking in the wrong places. Best regards, Maxime Devos --_08739771-F14E-4646-AABB-2B28780269DE_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

=E2=80=98atexit=E2=80=99 functions are run at =E2=80=98exit= =E2=80=99. =E2=80=98exit=E2=80=99 can be run from signal handlers (*). Sinc= e the hook runs Scheme code, it could do a lot of AC-unsafe things, resulti= ng in problems.

 

(*) g= libc documentation says =E2=80=98exit=E2=80=99 is AC-unsafe, but this is un= supported by POSIX AFAICT. OTOH the same applies to even =E2=80=98malloc=E2= =80=99, so likely I=E2=80=99m looking in the wrong places.

 

Best regards,

Maxime Devos

= --_08739771-F14E-4646-AABB-2B28780269DE_--