From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org
X-Spam-Level:
X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham
autolearn_force=no version=3.4.4
Received: (qmail 6163 invoked from network); 13 Apr 2023 14:13:47 -0000
Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368)
by inbox.vuxu.org with ESMTPUTF8; 13 Apr 2023 14:13:47 -0000
ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1681395227;
b=dk9mCo1rOt6g3OYk6EdCD9zMeDvXRGrD51+AARTlv1cDarRQT2cgh1rsoSD+0xRVkcDTD8WysZ
TPeZD2pZPyuA9pGFUJcpG4cQx3Rpm3PA2rk2YT1gR4NH/ZrHiejvu8nccWgZF1z1BqvhVTx5w2
vGp8xfMnZbEJ9ZoRQdNQoG86c1XKIOOldhjsnwc7iWIvBB0uaMQtg0N/l9wQVaHuPwZXyiK/Aw
opM+J+pDLMNqoVx5oV2DGWoHZTn7U1z/1HqYNNWqyt1Xk3rVG1ioJex4PxGWN7lRLFGFBOjZuL
tDIUO7uI23KPOBCjGeRN7yLZaekWnUl4VOHFHbxrfCRfOw==;
ARC-Authentication-Results: i=1; zsh.org;
iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1681395227;
bh=OCr2Sj/UawasXYqOBj1iIPi5uIXKWz8LtFso1gG4p+s=;
h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help:
List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:
References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature:
DKIM-Signature;
b=O9pD9EQIKgci3NSNO3WEDqDcqTFx7HSyYIMPKSU/G4bOIoW7E8Ymp4O9g4B0hWJzqxj7+c7peB
G8ccKvXLZ5EkMceyTS/O5T92YyzNntkrZtDI/vQPiz73qLuu/2z/Tv+nby4UR/cJ5plr/JjYbH
HlIJ2ZtihjOlSYj6O95RW3b9pRR21o44vxbuiOztjo6xwDUCr76rZaE42yELoRmnOOccoFV/Ax
qI6YICxH55UIK93nEvMXQGmgX4WcVEJBvcM1uLIUnphtp5ChBeJIiBqXDAU0H6+1dVdUe9SFhE
CdN0GQYESGpUT3gRadSx/+Ju3zloZQcJ38Yc1vMWb5KpbQ==;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org;
s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:
List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding:
Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From:
Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;
bh=FIHHCvxIr0NPrL/Qk8XYJdy99vN7/MDCu30kY9YVAXo=; b=NkEOyqmjka7QFJHSnXpMa00Eyc
LW9PEJRh2mtoE+pD2UBsezNMSsnBciqavJnzctnYHHDteg4XRo8Cz+ZQpA4c0ei+eXqHNCbljKc06
QlMqk/UKItbzXckYU1vq77NrzdxniAmc1f7qu1UKPOBWH6wLlc5Zjcn+lbUUWmLlurDoLN42r8WJm
oLuvg7briacAX5g+UHVcZUO8wP8nnEI8DicpAyMe5MHWNihZr32CQ4wNN6nh8nEx26NKLapYqiwLO
5et2UBma1daBx2YNPRC20ng1flccjZB0jEpksl8Jvdp/upkKohNcSFtzltK9sU/Yi/+VGAvsKYy7k
cd2GtUDw==;
Received: by zero.zsh.org with local
id 1pmxhq-000112-U0;
Thu, 13 Apr 2023 14:13:46 +0000
Authentication-Results: zsh.org;
iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:44568)
by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
id 1pmxhb-0000gW-7i;
Thu, 13 Apr 2023 14:13:32 +0000
Received: from [212.54.57.82] (helo=smtp3.tb.ukmail.iss.as9143.net)
by smtpq1.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1)
(envelope-from
)
id 1pmxha-0004Nf-Qu
for zsh-workers@zsh.org; Thu, 13 Apr 2023 16:13:31 +0200
Received: from oxbe10.tb.ukmail.iss.as9143.net ([172.25.160.141])
by smtp3.tb.ukmail.iss.as9143.net with ESMTP
id mxhaprHxEvML8mxhapTCCJ; Thu, 13 Apr 2023 16:13:30 +0200
X-Env-Mailfrom: p.w.stephenson@ntlworld.com
X-Env-Rcptto: zsh-workers@zsh.org
X-SourceIP: 172.25.160.141
X-CNFS-Analysis: v=2.4 cv=NuYXMeRJ c=1 sm=1 tr=0 ts=64380e0a cx=a_exe
a=f70ZRucvQZHi2l2hbwz5vQ==:117 a=wbvTLvLwOfMA:10 a=IkcTkHD0fZMA:10
a=NLZqzBF-AAAA:8 a=H9LjDfMe7IYIAdwuyy4A:9 a=QEXdDO2ut3YA:10
a=RchoEgWomvYJfgJ0MydD:22
X-Authenticated-Sender: p.w.stephenson@ntlworld.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com;
s=meg.feb2017; t=1681395210;
bh=OCr2Sj/UawasXYqOBj1iIPi5uIXKWz8LtFso1gG4p+s=;
h=Date:From:To:In-Reply-To:References:Subject;
b=MW6o2WxffUsZ6bSlWhFJWWmJplPwYezbB4FSmzLIO0FoRGEAiXOlDv+fl0BfsnAyO
NQe+HwJi/FbxVxyzM/+NWthqbnUjiisMjTz1CifD7X8Eh0x63xX4l1HOeghLAo50kU
kXGPkheMmFf0QPHhw6UhyHr2u/YcQCEYgUbE2yhXFnJI8SGP5F5GLbScv1oAagC3JM
M3sVKopW2mewjRKBrTwewq5h0eWZ2RX3IhgXe8K3+UcvmQ3A5TwJq//XwiRso4EqyP
dCuZGV/XYhqw7Lf1xv4REpWNCKQKlL7kmWmP2LgzQ5kN2pZkMH1dC02ex3e/r8fhBa
o33f/8WjQprag==
Date: Thu, 13 Apr 2023 15:13:30 +0100 (BST)
From: Peter Stephenson
To: zsh-workers@zsh.org
Message-ID: <1910122978.2015422.1681395210357@mail.virginmedia.com>
In-Reply-To: <2083513891.2014577.1681394631032@mail.virginmedia.com>
References:
<48A7DCE2-AEC1-4777-949C-50917EDCECB1@kba.biglobe.ne.jp>
<5C4788C8-4E40-4565-AFE8-84D57949BC8C@ntlworld.com>
<267594676.4158370.1681382869709@mail.virginmedia.com>
<1621107110.4161180.1681384345108@mail.virginmedia.com>
<78EBC2C7-5645-4D35-B285-F140228D444C@kba.biglobe.ne.jp>
<1865187346.2010280.1681391961060@mail.virginmedia.com>
<2083513891.2014577.1681394631032@mail.virginmedia.com>
Subject: Re: Probabilistic crash on zsh 5.9 on x86_64
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Normal
X-Mailer: Open-Xchange Mailer
X-Originating-IP: 147.161.167.85
X-Originating-Client: open-xchange-appsuite
X-CMAE-Envelope: MS4xfL43Cag2r80gNjq+Y5dLaLsEAk/EUetuRuuYY6eBUIdASkDL6FzsZw5mirdUU6ucwtIKzhiSdGI3hoVgFOsGORbMpznvHCikHm5Mi3mbQOxVldc73sOn
hCfHpYuYC3DoNLclv5/5e7CyBOprFSBNJbF1xeYY9QlRuwUBE0G5aoWx7GSwgAmquUy6Xm9YaXkVZxVhMQRg2vBdsHjZi9sGcT88PnK0JNzR/luY+9xg6xR9
X-Seq: 51649
Archived-At:
X-Loop: zsh-workers@zsh.org
Errors-To: zsh-workers-owner@zsh.org
Precedence: list
Precedence: bulk
Sender: zsh-workers-request@zsh.org
X-no-archive: yes
List-Id:
List-Help: ,
List-Subscribe: ,
List-Unsubscribe: ,
List-Post:
List-Owner:
List-Archive:
> On 13/04/2023 15:03 Peter Stephenson wrote:
> > On 13/04/2023 14:19 Peter Stephenson wrote:
> > ...not trivial...
> > ...hard to know...
> >
> > ...Unfortunately...
> > ...more complicated than that...
> > ...isn't trivial...
>
> Have a look at this --- it simply marks the prog in the shell function as
> in use earlier and unmarks it later, so the shenanigans within to do
> with traps all come out in the wash. So, in theory, there's not much
> to go wrong. But let me know...
One note (the only caveat that springs to mind, but probably worth mentioning)
is that if a function is freed explicitly or implicitly inside the hierarchy
that handles it, we don't actually gain the memory back until a bit later
than previously. I think this would happen with the placeholder structure
for an autoloadable shell function, for example. Hopefully that's not a
big deal, but unless I mention it someone's sure to come up with a case
where it is...
pws