From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA06657; Mon, 12 Jul 2004 14:55:48 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA06805 for ; Mon, 12 Jul 2004 14:55:46 +0200 (MET DST) Received: from lri.lri.fr (lri.lri.fr [129.175.15.1]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i6CCtjSH024737 for ; Mon, 12 Jul 2004 14:55:45 +0200 Received: from localhost (localhost [127.0.0.1]) by lri.lri.fr (Postfix) with ESMTP id A19CF19EB32; Mon, 12 Jul 2004 14:55:45 +0200 (CEST) Received: from lri.lri.fr ([127.0.0.1]) by localhost (lri.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02917-02; Mon, 12 Jul 2004 14:55:45 +0200 (CEST) Received: from pc8-123 (pc8-123 [129.175.8.123]) by lri.lri.fr (Postfix) with ESMTP id 87D6019E9DB; Mon, 12 Jul 2004 14:55:45 +0200 (CEST) Received: from filliatr by pc8-123 with local (Exim 3.35 #1 (Debian)) id 1Bk0LR-0002TF-00; Mon, 12 Jul 2004 14:55:45 +0200 From: Jean-Christophe Filliatre MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16626.35408.991468.798214@gargle.gargle.HOWL> Date: Mon, 12 Jul 2004 14:55:44 +0200 To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] Toplevel crashes when trying to call external functions In-Reply-To: <20040712120310.GA19678@redhat.com> References: <1089629710.21716.12.camel@ares> <20040712120310.GA19678@redhat.com> X-Mailer: VM 7.03 under Emacs 20.7.2 Reply-To: Jean-Christophe.Filliatre@lri.fr (Jean-Christophe Filliatre) X-Virus-Scanned: by amavisd-new at lri.fr X-Miltered: at concorde with ID 40F28A51.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; filliatre:01 filliatre:01 lri:01 caml-list:01 crashes:01 gerd:01 crashes:01 pointers:01 mlgmp:01 monniaux:01 mlgmp:01 caml:01 caml:01 toplevel:01 writes:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Richard Jones writes: > I have to agree with Gerd on this. I've tried to use pointers- > as-values but have had a lot of unexplained strangeness / crashes. I > now wrap pointers in custom blocks every time. You can find working > examples of this in both mod_caml and perl4caml sources. Another example of this technique can be found in David Monniaux's mlgmp (http://www.di.ens.fr/~monniaux/download/mlgmp.tar.gz) -- Jean-Christophe ------------------- 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