caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* perl4caml crashed with threads
@ 2005-11-13 13:38 Xu Zuoqian
  0 siblings, 0 replies; 3+ messages in thread
From: Xu Zuoqian @ 2005-11-13 13:38 UTC (permalink / raw)
  To: caml-list

Hi,

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 ()=
  try
  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
Version:
Ocaml          3.08.3 & 3.09.0
perl4caml   0.9.3

regards.


^ permalink raw reply	[flat|nested] 3+ messages in thread
* perl4caml crashed with threads
@ 2005-11-14  2:16 xuzq
  2005-11-14 10:09 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 3+ messages in thread
From: xuzq @ 2005-11-14  2:16 UTC (permalink / raw)
  To: caml-list

Hi,

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 ()=
 try
 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
Version:
Ocaml          3.08.3 & 3.09.0
perl4caml   0.9.3

regards.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-15  2:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-13 13:38 perl4caml crashed with threads Xu Zuoqian
2005-11-14  2:16 xuzq
2005-11-14 10:09 ` [Caml-list] " Richard Jones
2005-11-15  2:03   ` xuzq

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).