caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xu Zuoqian <zuoqian@gmail.com>
To: caml-list@inria.fr
Subject: perl4caml crashed with threads
Date: Sun, 13 Nov 2005 21:38:58 +0800	[thread overview]
Message-ID: <a330158a0511130538y3bcfa6bk@mail.gmail.com> (raw)

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.


             reply	other threads:[~2005-11-13 13:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-13 13:38 Xu Zuoqian [this message]
2005-11-14  2:16 xuzq
2005-11-14 10:09 ` [Caml-list] " Richard Jones
2005-11-15  2:03   ` xuzq

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a330158a0511130538y3bcfa6bk@mail.gmail.com \
    --to=zuoqian@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).