Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Damien Doligez <damien.doligez@inria.fr>
To: caml-list caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Segfault with humongous heap size
Date: Fri, 3 Sep 2010 17:56:31 +0200	[thread overview]
Message-ID: <FEC4C68B-1486-47C2-99FB-3E3D5BE73D90@inria.fr> (raw)
In-Reply-To: <AANLkTimr-ZkOVtm_-xcUgfz1NxFFtEtjx-J3B0VxCzhf@mail.gmail.com>


On 2010-09-02, at 13:23, Paul Steckler wrote:

> If I enter this in my shell:
> 
>  declare -x OCAMLRUNPARAM="h=3200000000"
> 
> every OCaml program I run yields a segfault.  I have OCaml 3.11.1+rc1 installed
> on Fedora 12 x64.
> 
> Of course, that heap size, 3.2G words, is larger than the memory I
> have installed, but
> still, I shouldn't get a segfault.


That's due to a stupid bug in parsing OCAMLRUNPARAM, compounded by a missing
check for the error code returned.  It will be fixed in 3.12.1.  In the meantime,
just use multipliers:

   declare -x OCAMLRUNPARAM=h=3200M

-- Damien


      reply	other threads:[~2010-09-03 15:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 11:23 Paul Steckler
2010-09-03 15:56 ` Damien Doligez [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=FEC4C68B-1486-47C2-99FB-3E3D5BE73D90@inria.fr \
    --to=damien.doligez@inria.fr \
    --cc=caml-list@yquem.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