From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA08488; Thu, 5 Dec 2002 19:48:56 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA06876 for ; Thu, 5 Dec 2002 19:48:55 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from opus.davidb.org (66-27-72-19.san.rr.com [66.27.72.19]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gB5Imp104196 for ; Thu, 5 Dec 2002 19:48:54 +0100 (MET) Received: from davidb by opus.davidb.org with local (Exim 3.31 #1 (Debian)) id 18K13G-0007oZ-00 for ; Thu, 05 Dec 2002 10:48:46 -0800 Date: Thu, 5 Dec 2002 10:48:46 -0800 From: David Brown To: Caml List Subject: [Caml-list] Memory leak with native code. Message-ID: <20021205184846.GA30014@opus.davidb.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have a fairly complex program that has numerous callbacks between Ocaml, C and back to Ocaml (I'm using Debian's 3.06). If I compile my program byte-code, it works well. However, if I compile it native, it seems to leak memory, just consuming more and more memory as it runs. I was wondering if anyone has any pointers on how to debug this kind of issue. I've checked the C stubs, and I think I'm using the macros correctly. I guess what would be helpful would be any pointers on what might be different between bytecode and native. I do use callbacks, but the main program is in Ocaml. Thanks, David Brown ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners