From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 C8590BCAB for ; Tue, 24 May 2005 03:10:50 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j4O1AoAJ011836 for ; Tue, 24 May 2005 03:10:50 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA21995 for ; Tue, 24 May 2005 03:10:50 +0200 (MET DST) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4O1AndU025459 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 24 May 2005 03:10:49 +0200 Received: from [80.229.56.224] (helo=chetara) by ptb-relay03.plus.net with esmtp (Exim) id 1DaNwX-0007ZY-8L for caml-list@inria.fr; Tue, 24 May 2005 02:10:49 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@inria.fr Subject: Re: [Caml-list] ocamlopt stack overflowing Date: Tue, 24 May 2005 02:10:13 +0100 User-Agent: KMail/1.7.2 References: <200505232207.00090.jon@ffconsultancy.com> <20050523224507.GA25635@furbychan.cocan.org> In-Reply-To: <20050523224507.GA25635@furbychan.cocan.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505240210.14116.jon@ffconsultancy.com> X-Miltered: at concorde with ID 42927F1A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42927F19.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlopt:01 stack:01 ocamlopt:01 stack:01 ocaml:01 ocaml:01 bytecode:01 segfaults:01 frog:98 wrote:01 wrote:01 caml:02 compiling:02 objective:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Monday 23 May 2005 23:45, Richard Jones wrote: > On Mon, May 23, 2005 at 10:06:59PM +0100, Jon Harrop wrote: > > I've got a problem with ocamlopt stack overflowing on some generated > > OCaml source (one 1,227-line function, 288kB of source). Any ideas what > > the cause is? > > > > I suspect that compiling the OCaml distribution from source and using > > ocamlopt.opt will do the trick otherwise. > > We've seen this before (on Windows) and the solution was > > export OCAMLRUNPARAM=l=16M > > (for reasons which I forget now, we were using the bytecode ocamlopt, > not ocamlopt.opt). It turns out that ocamlopt.opt segfaults on some of this code so I'm using your (better!) solution instead. Thank you. :-) Incidentally, should that be "CAMLRUNPARAM" instead of "OCAMLRUNPARAM"? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists