Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Tom Buscher <tbuscher@gnp.com>
Cc: caml-list@inria.fr, jpolakow@gnp.com, tfoucher@gnp.com
Subject: Re: [Caml-list] Hybrid ML/C programs and exceptions
Date: Fri, 12 Apr 2002 09:39:18 +0200	[thread overview]
Message-ID: <20020412093918.A5718@pauillac.inria.fr> (raw)
In-Reply-To: <200204112133.OAA05135@gnp.com>; from tbuscher@gnp.com on Thu, Apr 11, 2002 at 02:34:38PM -0700

> We have a hybrid O'Caml/C application in which ML calls C,
> which calls ML, like this:
> The "lower" ML(3) raises an exception, which is dealt with
> by C(2) using one of the callback_exn functions. When the C
> function returns, the "upper" ML function generates a bus
> error on Solaris 8, on writing to a mutable global variable.
> We are using O'Caml 3.04 with the bytecode compiler.
> 
> Is this program structure allowed?

Yes, it is, and if you compile with the native-code compiler ocamlopt,
it works fine.  However, you've hit a bug in the bytecode interpreter
that causes callback_exn to misbehave.  This will be fixed shortly.
Thanks for reporting the problem.

- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      parent reply	other threads:[~2002-04-12  7:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11 21:34 Tom Buscher
2002-04-11 23:25 ` Remi VANICAT
2002-04-12  7:39 ` Xavier Leroy [this message]

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=20020412093918.A5718@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=jpolakow@gnp.com \
    --cc=tbuscher@gnp.com \
    --cc=tfoucher@gnp.com \
    /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