Skip Menu |
 

This queue is for tickets about the JavaScript CPAN distribution.

Report information
The Basics
Id: 2600
Status: resolved
Priority: 0/
Queue: JavaScript

People
Owner: CLAESJAC [...] cpan.org
Requestors: redstar [...] elev.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.52
Fixed in: 1.00



Subject: The garbage collection is not perfect
Download (untitled) / with headers
text/plain 380b
In the file JavaScript.xs there are calls to the libjs garbage collection function JS_GC. Sometimes the call to JSVALToSV in the typemap file is executed _after_ this call to JS_GC, using a pointer "cx->cx" that is freed by JS_GC. This results in a segmentation fault. A solution that seems to work is to move the call to JS_GC into the typemap file, after the call to JSVALToSV.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.