Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] Future of labels
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Fox <dsfox@c...>
Subject: Re: [Caml-list] Seg fault with -custom and 2049 lets...
Xavier Leroy <Xavier.Leroy@inria.fr> 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