caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeffrey Scofield <jeffsco@pse.psellos.com>
To: caml-list@inria.fr
Subject: [Caml-list] Re: Fatal error: out of memory
Date: 04 Jun 2012 20:32:15 -0500	[thread overview]
Message-ID: <m3r4tu4k80.fsf@pse.psellos.com> (raw)
In-Reply-To: <CALhoTJMMa7pxcre0nqNU-q8dgyGQCrZ6Ebx19WSP1XCXBtGzWw@mail.gmail.com>

Jianzhou Zhao <jianzhou@seas.upenn.edu> writes:

Greetings,

> My program reports "Fatal error: out of memory" as a heisenbug on
> 64-bit machine. When I debugged my code or wanted to print any
> messages from the code, the error did not appear. Also, on 32-bit
> machine, the program has no "out of memory" problem. I found the
> message is from "asmrun/memory.c". Does anyone know any clue or hint
> to resolve the issue?

Is your program pure OCaml?  This could make a big difference in the
troubleshooting.  Are you using any particular external libraries?

You don't give much to go on, otherwise.  I haven't seen this error in
OCaml but in my experience this kind of error is more often caused
by corruption in memory management than by actually running out
of memory.

With nothing else to go on, my guess would be an error in the OCaml/C
interface to an external library.  Perhaps the code is written assuming
32 bit pointers, or similar.

Jeffrey


  reply	other threads:[~2012-06-05  1:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-05  0:32 [Caml-list] " Jianzhou Zhao
2012-06-05  1:32 ` Jeffrey Scofield [this message]
2012-06-06 21:30 ` Brian Campbell

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=m3r4tu4k80.fsf@pse.psellos.com \
    --to=jeffsco@pse.psellos.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).