Public bug reported:

Binary package hint: libjavascript-perl

libjavascript-perl crashes on 130th instance, always, in 8.10.

javascript module was not designed to work with mozjs-1.8.1, only as
high as SpiderMonkey 1.7, and crashes regularly, even when JavaScript.pm
1.11 is downloaded from CPAN.  this behavior does not occur when
compiled against SpiderMonkey 1.7.

error is:

Failed to create runtime at /usr/lib/perl5/JavaScript/Runtime.pm line
30.

see CPAN notes and discussion with module author:

https://rt.cpan.org/Ticket/Display.html?id=42653

to reproduce:

#!/usr/bin/perl

use Benchmark;
use JavaScript;


my $i = 1;
timethese(150,
{
    'failure' => sub {
         print $i . "\n";
         $i++;
         my $rt = JavaScript::Runtime->new();
         my $cx = $rt->create_context();
         $cx->eval("var i = 0;");
    }
});

** Affects: libjavascript-perl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
crashes on 130th instance
https://bugs.launchpad.net/bugs/322554
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

-- 
universe-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to