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=1.4 required=5.0 tests=SPF_NEUTRAL 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 0D960BC0B for ; Wed, 17 Jan 2007 10:36:32 +0100 (CET) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0H9aVTm001337 for ; Wed, 17 Jan 2007 10:36:31 +0100 Received: by wx-out-0506.google.com with SMTP id i31so2283380wxd for ; Wed, 17 Jan 2007 01:36:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=kcMrH8X10JEHpxU5WZ4SXvwNhvn+kiql7TAI0f9KrQ2B9qSR+cjD7lbHfmpdnDHMWLXs2eCSIpFRrh0q68xztKL+UAufBKiggTIQ9lLI9dgCZa0nzXZ2e3Bnq5h4hZPTysw8Wjo72502lTQo2teyc1+GT9JRgF7fjs6QFNjNx9w= Received: by 10.90.29.2 with SMTP id c2mr5728687agc.1169026590795; Wed, 17 Jan 2007 01:36:30 -0800 (PST) Received: by 10.90.72.8 with HTTP; Wed, 17 Jan 2007 01:36:30 -0800 (PST) Message-ID: <95513600701170136i139f4b1cm40071873d6deb95a@mail.gmail.com> Date: Wed, 17 Jan 2007 10:36:30 +0100 From: "Olivier Andrieu" Sender: oandrieu@gmail.com To: "=?ISO-8859-1?Q?S=E9bastien_Ferre?=" Subject: Re: [Caml-list] marshaling limits Cc: caml-list@inria.fr In-Reply-To: <45ADE8FE.5070004@irisa.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2a1a1a0c0701161248l5a1d9ad9q739da9c593fc5219@mail.gmail.com> <45ADE8FE.5070004@irisa.fr> X-Google-Sender-Auth: c83c9205cbd4f1ae X-Miltered: at concorde with ID 45ADEE1F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; andrieu:01 oandrieu:01 marshaling:01 irisa:01 marshalling:01 marshalling:01 stack:01 stack:01 ulimit:01 unix:01 wrote:01 caml-list:01 functions:01 functions:01 nerim:01 On 1/17/07, Sebastien Ferre wrote: > Hi, > > I get a segmentation fault when marshalling > a large data structure. I could produce a file > of ~30MB, but for a larger data structure of > the same kind, I get a seg fault. > > Do you know of any limit in the marshalling > functions w.r.t. size ? Indeed, the marshalling/unmarshalling functions can overflow the execution stack. You could try to increase maximum stack size for your process (ulimit -s with a Unix shell). -- Olivier