From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id A3851BC69 for ; Wed, 7 Feb 2007 23:59:35 +0100 (CET) Received: from smtp105.sbc.mail.mud.yahoo.com (smtp105.sbc.mail.mud.yahoo.com [68.142.198.204]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l17MxXmi003708 for ; Wed, 7 Feb 2007 23:59:35 +0100 Received: (qmail 63348 invoked from network); 7 Feb 2007 22:59:32 -0000 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@69.230.187.64 with plain) by smtp105.sbc.mail.mud.yahoo.com with SMTP; 7 Feb 2007 22:59:32 -0000 X-YMail-OSG: lj_PnG0VM1lI8IOsHRNh2mIL0cWUPxGnbiBHeZ4mKrduXrH4dLD_RYIccCVZJyIGxVVAGENMhODDVv2Dbjx7EiaS11RqFAB8WF.e.jzjycS_1i_BYd5eAGmKZAgID9WrMuS67z2FslbIb4rOOKIUHllU.UYMKSjEQW2xYBL0bhoMc.YsdC77BAGSal_Q Message-ID: <45CA59CA.7030809@rftp.com> Date: Wed, 07 Feb 2007 14:59:22 -0800 From: Robert Roessler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070206 Mnenhy/0.7.4.0 SeaMonkey/1.5a MIME-Version: 1.0 To: Caml-list Subject: Re: [Caml-list] marshal and C structures crash References: <5F3F8FC7-2C10-4F4A-A7D3-6268AD6D1E5A@gmail.com> In-Reply-To: <5F3F8FC7-2C10-4F4A-A7D3-6268AD6D1E5A@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 45CA59D5.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 crystal:98 wrote:01 caml-list:01 marshal:01 structures:02 objects:02 popped:03 size:95 finalize:05 usual:06 long:06 routines:06 probably:07 Andres Varon wrote: > ... > For those of you who reached this line of my email, thanks for the > effort! I will listen at any ideas that could pop up in your minds. Hey, I will read the full message just to see what someone is doing with 70K lines of OCaml code! :) The usual comment - you don't mention any version and platform details... especially with something that took as long as this probably did, those might be of interest (particularly since some teams doing a project of this size might have not been keeping up with OCaml releases). It is not crystal clear that you are using "finalize" routines - if so, they are an obvious (and easy) place to position check code. If not, why not? It sounds like you might *need* to wrap some of your values created in C-land in smart-but-thin OCaml objects, if for nothing else than to more delicately handle lifetime issues. These "popped up" for me on my initial reading. ;) Robert Roessler roessler@rftp.com http://www.rftp.com