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=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id AE6B0BC69 for ; Fri, 31 Aug 2007 18:47:13 +0200 (CEST) Received: from chokecherry.srv.cs.cmu.edu (CHOKECHERRY.SRV.CS.CMU.EDU [128.2.185.41]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7VGlBS9018713 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 31 Aug 2007 18:47:13 +0200 Received: from stratocaster.home (c-71-206-252-35.hsd1.pa.comcast.net [71.206.252.35]) (authenticated bits=0) by chokecherry.srv.cs.cmu.edu (8.13.6/8.13.6) with ESMTP id l7VGlBuj007166 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 31 Aug 2007 12:47:11 -0400 (EDT) Received: from ecc by stratocaster.home with local (Exim 4.67) (envelope-from ) id 1IR9eI-0006Ix-Tv for caml-list@inria.fr; Fri, 31 Aug 2007 12:47:10 -0400 Date: Fri, 31 Aug 2007 12:47:10 -0400 From: Eric Cooper To: OCaml List Subject: Re: [Caml-list] int overflow and Marshal failure Message-ID: <20070831164710.GA24201@stratocaster.home> Mail-Followup-To: OCaml List References: <6cd4x4ae5k.fsf@hod.lan.m-e-leypold.de> <1188577819.7084.21.camel@MATHIAS-ENS> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1188577819.7084.21.camel@MATHIAS-ENS> User-Agent: Mutt/1.5.16 (2007-06-11) X-Miltered: at discorde with ID 46D8460F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0200,:01 0200,:01 markus:01 integers:01 largefile:01 sub-module:01 mathias:98 wrote:01 unix:01 unix:01 caml-list:01 marshal:01 int:01 int:01 native:03 On Fri, Aug 31, 2007 at 06:30:19PM +0200, Mathias Kende wrote: > Le jeudi 30 ao??t 2007 ?? 23:47 +0200, Markus E L a ??crit : > > A check in the Unix library would be nice, in the long run I think > > using 32bit native integers is absolutely required. > > I had the same sort of problem with the Unix.stat function and the > st_size member being an int while it is a 64 bits int on recent systems > (including some 32 bits one). The maximum size that can be stored on 32 > bits system, 1Go, is much too small for this function. This one is solved by the Unix.LargeFile sub-module. -- Eric Cooper e c c @ c m u . e d u