Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
perl4caml crashed with threads
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-13 (13:39)
From: Xu Zuoqian <zuoqian@g...>
Subject: perl4caml crashed with threads

On my debian sid box,the following prog core dump.What's wrong?Is it
all right on your machine or is it a bug?

open Printf
open Perl

let test ()=
  let sv=Perl.eval "3+7" in
  let r=int_of_sv sv in
    printf "result=%i" r
  with _->printf "error"

let ()=Thread.join (Thread.create test ())

The command line:
ocamlc -thread -I +perl /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
perl4caml.cma unix.cma threads.cma -o test
Ocaml          3.08.3 & 3.09.0
perl4caml   0.9.3