Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > perl.perl5.changes > #34422
| Newsgroups | perl.perl5.changes |
|---|---|
| Path | csiph.com!fu-berlin.de!bofh.it!nntp.perl.org |
| Xref | csiph.com perl.perl5.changes:34422 |
| Return-Path | <noreply@github.com> |
| Mailing-List | contact perl5-changes-help@perl.org; run by ezmlm |
| Delivered-To | mailing list perl5-changes@perl.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=perl.org; h=date :from:to:message-id:subject:mime-version:content-type :content-transfer-encoding:list-unsubscribe:reply-to; s=dr1; bh= GWTEj5TbidfVHILYf7oMgrrvAYanJqv2aoiyIUaSs2s=; b=FPk+wjuhmzR5u0gY x/Rb62BDlhEkr45K3JeojdjYuQLUeNfEFg/10ln9hEVNTGip/ozdJgYasYSSHYMl qRdI+S4h72chrxmpJ+16VCU+R9vuyBMCoNuseozgW4j0c+TZ0PamhKi47os3ZDHR FyLJKOZga2SBSVrz/lngln7c0rmx0Ok1arWZKyeadi6rXSo5w7wh3QM5AodvTHVj txz1rlH6nL4RnwzLcJQJNqhZ7taAo1Ul//UUhYpelzEt65R+Ln+pPN7T1QYx6VqN f5g5NBSrvEjDOL+p1x+a+FZ8vU7EKNtM9g376MSm8NFYCD741fRxlIDMW+NGlc5m QPU6ZQ== |
| Received | (qmail 11398 invoked from network); 2 Mar 2026 21:06:22 -0000 |
| Received | from xx1.develooper.com (147.75.38.233) by x6.develooper.com with SMTP; 2 Mar 2026 21:06:22 -0000 |
| Received | from inbound-egress-11.mailchannels.net (inbound-egress-11.mailchannels.net [23.83.208.2]) by xx1.develooper.com (Postfix) with ESMTP id 1FBAF7C1A1 for <perl5-changes@perl.org>; Mon, 2 Mar 2026 13:06:20 -0800 (PST) |
| ARC-Seal | i=1; a=rsa-sha256; d=mailchannels.net; s=arc-2022; cv=none; t=1772485578; b=Y5QwIPRKCkMW54ihnt0o3Cb2BW/pwO2uxBM9TctCz3AOu6V/KLPZa8fGq/omTXDmBHNIFA 4fTC0t4ufzmmqXtr8YMafI6O694qu20jPUwhNlVWG8ndj86aakZ4ELZoMVFYARYuZ3WhSZ l4W5LvdSb94wBYK/jFIl3IwLpDUkJIsBL+HQ9mlda3qONnz6qXygjKOb/2ar2e5vyWowj1 A9zRVdE/i0+EQu68t5F5qlvlhqg0HWzIopMcrXTdwWo7NY9MriTqwAYezsQzgRr98m0Yg3 MiU3ne0I2/7biHLNP9l8Zv6JOqIMTZxKwgO/SShWic5cpEB9Fy3aimCa0KY/2A== |
| ARC-Message-Signature | i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1772485578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-unsubscribe: dkim-signature; bh=GWTEj5TbidfVHILYf7oMgrrvAYanJqv2aoiyIUaSs2s=; b=CdDXKe61+X0NVLity0ykXRU/mkQeYMybmH9KU0NmAq7kr3GOjIA47hRrSXa6/pyZoOdCGk YzzCXcxsfyOfKISjtmlAZJ8L4jbNNlcvCLM+iBr9TVq612P5q0oemagj7D2F/V6RBZa9ai v584GisWC7IqONYMc0AzHutyI7BffDdVRWyhhhiStEDEnbhy3qCBO5BSkPWcPkPi0WiF3C lMv8FaCKinb1OQOPxqsjNBrn7uylKkhAg6YytxgZpuzR43AGM9Y+Q0Wgtijkg1E2K/LRoY JfDGVqtM1mEARqitHPl/bIm4ghs/bOqAgU+xuk/vRmzaJe8tNywuunTBQ/XTyg== |
| ARC-Authentication-Results | i=1; inbound-rspamd-5dd9f7d59-zts9r; none |
| X-Message-ID | iqm5UeqlqUOGFETe9h33msfG |
| Received | from out-18.smtp.github.com (out-18.smtp.github.com [192.30.252.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.109.3.117 (trex/7.1.3); Mon, 02 Mar 2026 21:06:18 +0000 |
| Authentication-Results | inbound.mailchannels.net; spf=pass smtp.mailfrom=noreply@github.com; dkim=pass header.d=github.com; dmarc=pass (policy=reject; pct=100; status=pass); arc=none |
| Received-SPF | pass (dmarc-service-79fbc8656b-g8zz4: domain of github.com designates 192.30.252.201 as permitted sender) client-ip=192.30.252.201; envelope-from=noreply@github.com; helo=out-18.smtp.github.com; |
| Received | from github.com (hubbernetes-node-1efe5be.va3-iad.github.net [10.48.158.13]) by smtp.github.com (Postfix) with ESMTPA id ABB19E0B6A for <perl5-changes@perl.org>; Mon, 2 Mar 2026 13:06:17 -0800 (PST) |
| Date | Mon, 02 Mar 2026 13:06:17 -0800 |
| To | perl5-changes@perl.org |
| Message-ID | <Perl/perl5/push/refs/heads/blead/de3c4f-2a50be@github.com> (permalink) |
| Subject | [Perl/perl5] f67317: class/method.t: test for crash on refaliased field |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-GitHub-Recipient-Address | perl5-changes@perl.org |
| X-Auto-Response-Suppress | All |
| Original-From | Tony Cook <noreply@github.com> |
| Reply-To | Tony Cook <noreply@github.com>, |
| Approved | news@nntp.perl.org |
| From | perl5-changes@perl.org (Tony Cook via perl5-changes) |
Show key headers only | View raw
Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: f67317ac46bd8d6c0b30bcd4ac7e8201fe83b22d
https://github.com/Perl/perl5/commit/f67317ac46bd8d6c0b30bcd4ac7e8201fe83b22d
Author: Tony Cook <tony@develop-help.com>
Date: 2026-03-03 (Tue, 03 Mar 2026)
Changed paths:
M t/class/method.t
Log Message:
-----------
class/method.t: test for crash on refaliased field
Commit: 6b4504427fa4986eb6d58ced3a027d334f31b7eb
https://github.com/Perl/perl5/commit/6b4504427fa4986eb6d58ced3a027d334f31b7eb
Author: Tony Cook <tony@develop-help.com>
Date: 2026-03-03 (Tue, 03 Mar 2026)
Changed paths:
M class.c
M t/class/method.t
Log Message:
-----------
pp_methstart: ensure we release the right SV on method exit
Prior to this change, pp_methstart would save_freesv() each method pad
entry SV as it populated the method pad with fields, so the field SV
itself would be released when the method finished (or if an exception
was thrown.)
But if the field (really just the method pad entry) was refassigned
to, *that* would release the reference on the field SV, and then the
save stack entry from save_freesv() would also release the SV,
typically resulting the SV being freed, invalidating the SV stored in
the object field.
Later references to that field would then typically crash, or throw an
assertion.
To avoid that use save_clearsv(), which releases whatever is in the
given SV** pointer, not the SV * provided.
This means that the replacement SV from the refassign in the PAD slot
for the field is released on exit from the method, *not* the original
field SV which has already been released.
Using save_clearsv() here mirrors the the use in pp_padsv and other
padsv introduction cases.
https://github.com/Perl/perl5/pull/24187#discussion_r2814795858
Also, fix the indentation of this block.
Commit: 2a50be84181824367ae7e0a159ae9bddeed500fb
https://github.com/Perl/perl5/commit/2a50be84181824367ae7e0a159ae9bddeed500fb
Author: Tony Cook <tony@develop-help.com>
Date: 2026-03-03 (Tue, 03 Mar 2026)
Changed paths:
M pod/perldelta.pod
Log Message:
-----------
perldelta for refassigning to a class field leads to a crash
Compare: https://github.com/Perl/perl5/compare/de3c4f2f659a...2a50be841818
To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications
Back to perl.perl5.changes | Previous | Next | Find similar
[Perl/perl5] f67317: class/method.t: test for crash on refaliased field perl5-changes@perl.org (Tony Cook via perl5-changes) - 2026-03-02 13:06 -0800
csiph-web