Skip Menu |

This queue is for tickets about the XML-LibXSLT CPAN distribution.

Report information
The Basics
Id: 93611
Status: new
Priority: 0/
Queue: XML-LibXSLT

Owner: Nobody in particular
Requestors: NWELLNHOF [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Exceptions in Perl callbacks leak memory
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-16473-1394206098-1021.0-0-0 [...]>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 584
Download (untitled) / with headers
text/plain 584b
If a Perl callbacks throws an exception during a transformation, the libxslt transform context is leaked. This includes: * input callbacks * security callbacks * extenstion functions * extension elements Possible solutions: 1. Don't croak in the callback handlers but store the error in a global. Then 'transform' can check for an error and croak after the transform context and other data structures were freed. 2. Always create an XML::LibXSLT::TransformContext Perl object for transform contexts. Make these objects mortal and implement a DESTROY method that frees the context.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to