Subject: | JSPL doesn't want to work with Coro module |
Date: | Sat, 24 Nov 2012 17:38:25 +0400 |
To: | bug-JSPL [...] rt.cpan.org |
From: | Sergey Volkov <wolfix57 [...] gmail.com> |
Hi! I need to run JSPL inside of Coro, but JSPL doesn't want to work
with it...
#!/usr/bin/perl
use JSPL;
use Coro;
async {
my $rt = JSPL::Runtime->new();
my $ctx = $rt->create_context;
print "done";
}->join();
I can't even create JSPL context inside of Coro thread,
I always get "Segmentation fault" error.
Is that a kind of bug or something?
P.S. I wrote also to Marc Lehman (the creator of Coro module), maybe
that could help, it's a reply from him:
----------
Hi - not all modules are threadsafe. You'd need to find out why it crashes
to see whats going wrong. For example, by making a backtrace.
Since what seems to crash is JSPL, you could also just send a bugreport
(or a enhancement request with this info to the JSPL developers - they
should know better what they are doing and what needs to be done to work
with threads.
Show quoted text
> Is that a kind of bug or something?
It's either a bug or, more likely, simply an incompatibility. Most likely,
JSPL makes nonportable assumptions about the stack and requires a backend
for each new platform or environment.
----------------------
----------------------
By the way, I want to thank you for your work!
I love JSPL so much... if it can only be thread-safe..