caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlopt stack overflowing
Date: Tue, 24 May 2005 02:10:13 +0100	[thread overview]
Message-ID: <200505240210.14116.jon@ffconsultancy.com> (raw)
In-Reply-To: <20050523224507.GA25635@furbychan.cocan.org>

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


  reply	other threads:[~2005-05-24  1:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 21:06 Jon Harrop
2005-05-23 22:45 ` [Caml-list] " Richard Jones
2005-05-24  1:10   ` Jon Harrop [this message]
2005-05-24  9:58     ` Damien Doligez

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=200505240210.14116.jon@ffconsultancy.com \
    --to=jon@ffconsultancy.com \
    --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).