Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Segfault with humongous heap size
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-09-03 (15:56)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Segfault with humongous heap size

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