From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id E3C197ED26 for ; Tue, 5 Jun 2012 03:32:35 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkwDAERhzU9QW+UDgWdsb2JhbABEtC0iAQEWJieCGAEBBAE6RAsLIRMSDwEEKBsZiAYFBLc3jguDFgOIQJ9P X-IronPort-AV: E=Sophos;i="4.75,716,1330902000"; d="scan'208";a="146555636" Received: from plane.gmane.org ([80.91.229.3]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 05 Jun 2012 03:32:35 +0200 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SbidI-0006Gy-Uh for caml-list@inria.fr; Tue, 05 Jun 2012 03:32:28 +0200 Received: from pse.psellos.com ([174.121.218.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jun 2012 03:32:28 +0200 Received: from jeffsco by pse.psellos.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jun 2012 03:32:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Jeffrey Scofield Date: 04 Jun 2012 20:32:15 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pse.psellos.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-Validation-by: jeffsco@psellos.com Subject: [Caml-list] Re: Fatal error: out of memory Jianzhou Zhao 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