develooper Front page | perl.perl5.porters | Postings from February 2018

Re: [perl #131046] [PATCH] Carp: Do not crash when reading @DB::args

Thread Previous | Thread Next
From:
Zefram
Date:
February 1, 2018 09:17
Subject:
Re: [perl #131046] [PATCH] Carp: Do not crash when reading @DB::args
Message ID:
20180201091720.GQ22873@fysh.org
demerphq wrote:
>                                        We can encounter a stack
>refcounting bug /only/ because we are serializing the stack to report
>some other exception.

We can indeed, but that doesn't make it any more possible to work around
the bug.  It does give you the opportunity to entirely avoid tickling
these stack refcounting bugs, by not attempting to serialise arguments
from the stack at all.  But if you do look at arguments on the stack,
you're subject to the refcounting bug, and can't work around that.

>This ticket isn't about fixing the stack refcounting, it is about not
>dieing while trying to report some other issue.

Yes, and that objective is not achievable.  The stack-not-refcounted
bug cannot be reliably detected.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About