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

[perl #108994] certain objects crash SvPVutf8()

Thread Previous | Thread Next
Father Chrysostomos via RT
January 25, 2012 11:31
[perl #108994] certain objects crash SvPVutf8()
Message ID:
On Wed Jan 25 10:27:57 2012, LeonT wrote:
> On Wed, Jan 25, 2012 at 6:28 PM, bulk 88 via RT
> <> 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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About