Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Segfault with humongous heap size
@ 2010-09-02 11:23 Paul Steckler
  2010-09-03 15:56 ` [Caml-list] " Damien Doligez
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Steckler @ 2010-09-02 11:23 UTC (permalink / raw)
  To: caml-list

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.

-- Paul


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Segfault with humongous heap size
  2010-09-02 11:23 Segfault with humongous heap size Paul Steckler
@ 2010-09-03 15:56 ` Damien Doligez
  0 siblings, 0 replies; 2+ messages in thread
From: Damien Doligez @ 2010-09-03 15:56 UTC (permalink / raw)
  To: caml-list caml-list


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-03 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 11:23 Segfault with humongous heap size Paul Steckler
2010-09-03 15:56 ` [Caml-list] " Damien Doligez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox