I'm highly doubtful this would ever work. Perl contains lots of
global state. It's unclear if it's even safe to call this state from
separate threads even if it's locked.
You'd at least have to build Perl with the MULTIPLICITY option
(perlguts q.v.) and change perl4caml dramatically to support
Package: libperl4caml-ocaml-dev
Version: 0.9.5-2
Severity: important
Here is a simple piece of code which dies with a segfault.
--- main.ml ---
let mech = Pl_WWW_Mechanize.new_ ()
let m = Mutex.create ()
let evil_thread () =
Mutex.lock m;
mech#get
2 matches
Mail list logo