develooper Front page | perl.perl5.porters | Postings from August 2011

Re: [perl #98060] possible bug in PerlIO::encoding

Thread Previous
From:
Zefram
Date:
August 30, 2011 08:37
Subject:
Re: [perl #98060] possible bug in PerlIO::encoding
Message ID:
20110830153712.GP14463@lake.fysh.org
perlbug@plan9.de wrote:
>If stack changes are indeed a problem, then the problem cannot be in
>encoding.xs, but is likely in perlio.c, which calls load_module without
>PUSHSTACK/POPSTACK, or in some other layer.

There are many places that are liable to hold lurking stack-reallocation
bugs.  Stacks don't move very often, so a tacit assumption that the
stack won't move will rarely bite.  We could do with a debugging option
that forcibly moves the stack at every opportunity (every time EXTEND
is called).  That would go nicely with valgrind.

-zefram

Thread Previous


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