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 14022 invoked from network); 21 Feb 2023 12:12:12 -0000
Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368)
by inbox.vuxu.org with ESMTPUTF8; 21 Feb 2023 12:12:12 -0000
ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1676981533;
b=ErI731w8Xzek/lNd0YsaLa6AFNpCoKYdk9RMBvbiVg2rLc9vT7k2wp+8cuyXqyIloxHNDuqNcy
imMDKbpzjC0w579I1m1TEBO8kqr/T+ESzAmYoVPtCM0tgjjvpffPYfRfYZ57yAJm2qwyUSieBG
HCKYy8SVXv4j155DyaGj1+tSYg7CuNndzoPOFJtqNZQbsek7pVBgvHcfXKj9OIEQVFNu5MQCzu
g8sBNG6QfZ9sgyDmJ3mu1ja1QE6AqZEKdWZtoizx4Pv+r66sVzjW332mpK3aaQtIzNb6UrcSMg
Ovciwo/dzSulWLlykbEPrltLVy1LeK6dkpWU9hznxZHGhg==;
ARC-Authentication-Results: i=1; zsh.org;
iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97;
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=1676981533;
bh=AfLIkor2JdKF+Z9iQk0oZybbyh5fbB6qeCv6UbgBplo=;
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=Rfzfzm2VvZqPr7b6fh1NwOKadwi8fhZAkYhOXn/kIKeIVZX/EoF5v7a3xaB75Gi8keOtf9wNst
Eoo1i4aFYD7ZJf2xwwlYzt0B/xbWBXa4yPrYj02UhFwpRyR+31N3FPgqjEFhUfdFhBDfnLlcHP
wBb3ieqh/Gf03Yo+VwveDnxF8l2USFmZGCLMWOaSlld0GtlAXG4PemmEmDxQuTVhAAuyWoBIcS
xLIRX0SWI1tY1V5+wNhjH79unzTWNMSTMNQVCH3PBpwUCVre7xTiaXeCSTr65kC3wGauo004/f
yHBU1HMx3K5FqyXFVyzaB1BajE3/Kgx/s8WYKzUQ6z4Wtw==;
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=t3kKJa8uC2ktJN/YANvUAt7CxbVC09xwNpiscB4rzzE=; b=FxWtvKuATNXE5ePpp3jRsKUSP/
WL62Zsma29LHuOxfLzdm5dQgLIz9T/OKNeXY9TDbqyvRhLFHy1Sej9NiIEHzEbtMJ/v+1/MQXmRj3
PxjRb+RT7vGiDTnLf5kNgQE5DY1Hk4thXRzd9Og6p9G3CuxKiO8YJtUo6UAR5HCg5j35r6FqUtP61
VdaXqk5OBBZ5O02eLEQKGUzLnmajo8/VJUkiQBWsuQ64RhXHZJHtXn5YDdluZHIXjcznAqcTQT14r
RpUE7enmldwMxfPGPI9w3fh10PRQzY94c3QjYwK7ZUeLcrTTsVMBca9bpraYF1qs7UcXHFsrEPeGU
PTjVKXGw==;
Received: by zero.zsh.org with local
id 1pURVD-000IFn-IF;
Tue, 21 Feb 2023 12:12:11 +0000
Authentication-Results: zsh.org;
iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:37342)
by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
id 1pURUx-000HyE-TE;
Tue, 21 Feb 2023 12:11:56 +0000
Received: from [212.54.57.80] (helo=smtp1.tb.ukmail.iss.as9143.net)
by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1)
(envelope-from
)
id 1pURUx-0002gC-Pa
for zsh-workers@zsh.org; Tue, 21 Feb 2023 13:11:55 +0100
Received: from oxbe6.tb.ukmail.iss.as9143.net ([172.25.160.137])
by smtp1.tb.ukmail.iss.as9143.net with ESMTP
id URUxp0wMg5gtoURUxppWZs; Tue, 21 Feb 2023 13:11:55 +0100
X-Env-Mailfrom: p.w.stephenson@ntlworld.com
X-Env-Rcptto: zsh-workers@zsh.org
X-SourceIP: 172.25.160.137
X-CNFS-Analysis: v=2.4 cv=cvhd0X0i c=1 sm=1 tr=0 ts=63f4b50b cx=a_exe
a=wOjQ4in9RKFG6jhXMc4Ghg==:117 a=1DWFKdCB1IcA:10 a=IkcTkHD0fZMA:10
a=ZjyAdWuDOD4A:10 a=NLZqzBF-AAAA:8 a=Rf9TkkARska8u-IrXwYA:9 a=QEXdDO2ut3YA:10
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=1676981515;
bh=AfLIkor2JdKF+Z9iQk0oZybbyh5fbB6qeCv6UbgBplo=;
h=Date:From:To:In-Reply-To:References:Subject;
b=kRyYO1MLGgixTGSdkpyhyIHTm83c+W+XMaE5n4hWL3hNqZbeD8AxO1vVNp145e8H1
IUPEiS8azbzhaPoldr2u3swB9/MIc+QxtlUmEHLHXxrzZ/5jpaGjarssxDDCx0J7+8
rlxo5Yed1ZZXODasgitPw6SkOkqqr5zNMjyHYi4ji3J+nFfA1GlpR/syv2Rcvp31fg
XhUNM594pHHb/+nWLWupw5vOwnUJtqiMUfM8jdjuje/bfe+LVZwftm1jjr+DH4bPCF
ieW8G23k8wBD31A8H71F8HeGWAgICuGZFz3usebNiginORkLbblJ1FfIq2N9OYneJL
SKN/G0TYtKx8Q==
Date: Tue, 21 Feb 2023 12:11:55 +0000 (GMT)
From: Peter Stephenson
To: Zsh hackers list
Message-ID: <1877364146.2297030.1676981515507@mail.virginmedia.com>
In-Reply-To: <338705584.2294040.1676980051672@mail.virginmedia.com>
References:
<1249162537.4244630.1676386019653@mail.virginmedia.com>
<1911575874.92635.1676392609186@mail.virginmedia.com>
<1919749331.2020682.1676562737303@mail.virginmedia.com>
<338705584.2294040.1676980051672@mail.virginmedia.com>
Subject: Re: zmodload (-u?) changing options (was Re: [PATCH] Named
reference typos & misc.)
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.224.167
X-Originating-Client: open-xchange-appsuite
X-CMAE-Envelope: MS4xfJeVSVklG4LyVf8yCK3+KSNMzKQ4cOgXVFx9/CH/BRRC6qwc7EW34ZpyOZHI8wSxU/4t510Lai7oENT5QZB7LNuhDFupPZZmfuUwZSRZbeEOZiO+Zpqe
iBOz7S+guMlF8QCIhscTpVr3E127BqutzeU512NiTOzm7KNehnPYFdLsu11veiPgA+o/vuG1p4uNDL+w08wru1G83o1zZTKbZw8RBbL9Kzd1d1yHa1wh7oLl
X-Seq: 51466
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 21/02/2023 11:47 Peter Stephenson wrote:
> The point where the invalid memory is being accessed is therefore
> apparently using an autoload stub when the full parameter has
> already been loaded. So is the code in question hanging onto
> a parameter pointer that it should instead be looking up again
> after some complicated intervening operation that happens to do
> the autoload?
Yes, here. "zmodload -u zsh/parameter" followed by completion
gave me enough information. This removes the errors from that
case, so hopefully will get rid of the test problems too.
This can't be wrong, I'll commit it.
pws
diff --git a/Src/params.c b/Src/params.c
index e940d7995..90302b1b0 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -538,7 +538,7 @@ getparamnode(HashTable ht, const char *nam)
}
if (hn && ht == realparamtab)
- hn = resolve_nameref(pm, NULL);
+ hn = resolve_nameref((Param)hn, NULL);
return hn;
}