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.0 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id E18A5BC0B for ; Wed, 17 Jan 2007 16:33:30 +0100 (CET) Received: from smtp19.orange.fr (smtp19.orange.fr [80.12.242.17]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0HFXUJe012088 for ; Wed, 17 Jan 2007 16:33:30 +0100 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1907.orange.fr (SMTP Server) with ESMTP id 739BD1C0008B; Wed, 17 Jan 2007 16:33:30 +0100 (CET) Received: from [192.168.0.9] (ARouen-205-1-4-153.w80-11.abo.wanadoo.fr [80.11.106.153]) by mwinf1907.orange.fr (SMTP Server) with ESMTP id 12A991C00087; Wed, 17 Jan 2007 16:33:30 +0100 (CET) X-ME-UUID: 20070117153330765.12A991C00087@mwinf1907.orange.fr Message-ID: <45AE41C7.8080409@univ-paris12.fr> Date: Wed, 17 Jan 2007 16:33:27 +0100 From: =?ISO-8859-1?Q?Fr=E9d=E9ric_Gava?= User-Agent: Thunderbird 1.5.0.9 (X11/20070104) MIME-Version: 1.0 To: =?ISO-8859-1?Q?S=E9bastien_Ferre?= , caml-list@yquem.inria.fr Subject: Re: [Caml-list] marshaling limits References: <2a1a1a0c0701161248l5a1d9ad9q739da9c593fc5219@mail.gmail.com> <45ADE8FE.5070004@irisa.fr> In-Reply-To: <45ADE8FE.5070004@irisa.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at discorde with ID 45AE41CA.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; gava:01 gava:01 marshaling:01 provient:01 marshaling:01 ocaml:01 amicalement:01 marshalling:01 marshalling:01 doubly:01 beginner's:01 ocaml:01 bug:01 12.:98 beginners:01 Salut, cela provient du fait que tu passes par le Marshaling c'est-à-dire que tu transformes ta donnée en une chaîne de caractères. Or, celles-ci ont une taille limite (voir module Sys pour la valeur exacte) d'où le seg fault. A mon avis essaye d'écrire directement ta valeur dans le fichier avec un output_value ou bien utilise "ocaml xml" pour lire/écrire des données sous le format xml (c'est plus bcp lent mais cela passera à coup sûr la limitation des 30 Mo) Amicalement, Frédéric Gava Sebastien Ferre a écrit : > 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 ? > > Some part of my data structure are big doubly linked > graphs. > > --- > Sébastien Ferré > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > >