English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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-14 (02:42)
From: xuzq <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 test.ml -o test
Ocaml          3.08.3 & 3.09.0
perl4caml   0.9.3