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
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 () =
Mail list logo