caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Fox <dsfox@cogsci.ucsd.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Seg fault with -custom and 2049 lets...
Date: 18 Apr 2001 16:36:10 -0700	[thread overview]
Message-ID: <luhezl232t.fsf@hci.ucsd.edu> (raw)
In-Reply-To: Xavier Leroy's message of "Tue, 17 Apr 2001 17:04:19 +0200"

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


      reply	other threads:[~2001-04-18 23:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-12 18:31 David Fox
2001-04-13 14:01 ` David Fox
2001-04-14 10:40 ` [Caml-list] Just wasted half-an-hour on returned curried functions Mattias Waldau
2001-04-17 15:04 ` [Caml-list] Seg fault with -custom and 2049 lets Xavier Leroy
2001-04-18 23:36   ` David Fox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=luhezl232t.fsf@hci.ucsd.edu \
    --to=dsfox@cogsci.ucsd.edu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).