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 EAA12433; Mon, 2 Aug 2004 04:52:30 +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 EAA13496 for ; Mon, 2 Aug 2004 04:52:29 +0200 (MET DST) Received: from invasion.mail.pas.earthlink.net (invasion.mail.pas.earthlink.net [207.217.120.254]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i722qRSH009767 for ; Mon, 2 Aug 2004 04:52:28 +0200 Received: from 168-103-58-16.tcsn.qwest.net ([168.103.58.16] helo=dylan) by invasion.mail.pas.earthlink.net with asmtp (Exim 4.34) id 1BrSw7-0008Ud-FD for caml-list@inria.fr; Sun, 01 Aug 2004 19:52:27 -0700 Message-ID: <002901c4783b$e8959fe0$0201a8c0@dylan> From: "David McClain" To: "caml" Subject: [Caml-list] Bus errors and 3.08 Date: Sun, 1 Aug 2004 19:53:30 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-ELNK-Trace: 7a0ab3eafc8cf994b22988ad1c62733440683398e744b8a4b2a5dd2bf9b1fc627dab106c947a9169350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 168.103.58.16 X-Miltered: at concorde with ID 410DAC6C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; mcclain:01 dmcclain:01 failwith:01 3.07:01 interfacing:01 camlparam:01 allocating:01 no-no:01 mcclain:01 ocaml:01 routines:02 objects:02 heap:03 macros:03 arguments:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk ... as for the Bus Errors generated in migrating up to 3.08, it seems that (my fault really) the new failwith() primitive can trigger a GC cycle whereas it did not in 3.07 and earlier. I was playing (too!) fast and loose with the C interfacing guidelines and did not declare the input value arguments in camlParam macros at the start of my routines, except where I anticipated allocating fresh OCaml objects in the C heap. That's now a no-no... at least on the Windows version of 3.08. I have yet to go back and clean up my code for another try in Mac OS X. Shame on me! David McClain Senior Corporate Scientist Avisere, Inc. +1.520.390.7738 (USA) david.mcclain@avisere.com ------------------- 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