From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA10211; Thu, 19 Apr 2001 01:36:13 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA10307 for ; Thu, 19 Apr 2001 01:36:12 +0200 (MET DST) Received: from hci.ucsd.edu (hci.ucsd.edu [132.239.215.210]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f3INaAD22492 for ; Thu, 19 Apr 2001 01:36:10 +0200 (MET DST) Received: (from dsf@localhost) by hci.ucsd.edu (8.9.3/8.9.3) id QAA23622; Wed, 18 Apr 2001 16:36:10 -0700 To: caml-list@inria.fr Subject: Re: [Caml-list] Seg fault with -custom and 2049 lets... References: <20010417170419.A19256@pauillac.inria.fr> From: David Fox Date: 18 Apr 2001 16:36:10 -0700 In-Reply-To: Xavier Leroy's message of "Tue, 17 Apr 2001 17:04:19 +0200" Message-ID: X-Mailer: Gnus v5.7/Emacs 20.3 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Xavier Leroy writes: > > If I create a program with 2049 simple functions: > > I get a seg fault if I compile it with the -custom flag and use a > > debugging version of malloc: > > or if I link using the debugging library libcamlrund.a: > > Yes, this is a bug in the bytecode compiler causing the virtual > machine not to grow its stack enough to accommodate all the stack > slots that your declaration requires. This will be fixed shortly. I found a quick fix to get my X top level working: --- ocaml-3.01/byterun/config.h~ Sun Oct 29 09:36:41 2000 +++ ocaml-3.01/byterun/config.h Wed Apr 18 16:19:58 2001 @@ -76,7 +76,7 @@ #define Page_log 12 /* A page is 4 kilobytes. */ /* Initial size of stack (bytes). */ -#define Stack_size (4096 * sizeof(value)) +#define Stack_size (16384 * sizeof(value)) /* Minimum free size of stack (bytes); below that, it is reallocated. */ #define Stack_threshold (256 * sizeof(value)) ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr