develooper Front page | perl.perl5.porters | Postings from January 2012

[perl #108994] certain objects crash SvPVutf8()

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
January 25, 2012 11:31
Subject:
[perl #108994] certain objects crash SvPVutf8()
Message ID:
rt-3.6.HEAD-14510-1327519860-1520.108994-15-0@perl.org
On Wed Jan 25 10:27:57 2012, LeonT wrote:
> On Wed, Jan 25, 2012 at 6:28 PM, bulk 88 via RT
> <perlbug-followup@perl.org> wrote:
> > "Using Perl to Dispose of Temporaries" in perlcall, wouldn't your
> > proposal leak?
> 
> It would be disposed of at the next FREETMPS, which is probably the
> next end-of-statement. This is likely to be soon enough, though for
> some purposes it may not be. There are more functions in the API that
> do this…

SvPV already does that for globs and overloaded objects.  For other
references it pushes a PV onto the save stack, so even FREETMPS won’t
free that.

SvPVutf8 is supposed to be the utf8 equivalent of SvPV, but it is more
like SvPVutf8_force + bugs.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=108994

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