From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 1627FBC37 for ; Fri, 12 Jun 2009 14:17:36 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.42,209,1243807200"; d="scan'208";a="27920867" Received: from arvin.irisa.fr (HELO [131.254.11.86]) ([131.254.11.86]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Jun 2009 14:17:36 +0200 Message-ID: <4A324737.4020104@irisa.fr> Date: Fri, 12 Jun 2009 14:16:55 +0200 From: Tiphaine Turpin User-Agent: Thunderbird 2.0.0.19 (X11/20090216) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Hunting a memory leak Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; irisa:01 iteration:01 mutable:01 interfacing:01 heap:01 heap:01 caml:02 roots:02 allocated:02 seems:03 problem:05 correct:08 memory:09 memory:09 basically:10 Hi, I have a serious problem with a memory leak that I cannot spot. My code is basically a while loop, and the heap is constantly growing at each iteration, so I assume that I have some mutable datastructure allocated before entering the loop which grows to much. But all those I can think of are either obviously correct or have a small "objsize". A last precision : I am interfacing with some C code (mlcuddidl), but the leak seems to be in the Caml heap according to Gc.heapwords. What is the methodology for addressing this kind problems ? Is there any tool that would tell me the roots of the biggest parts in the heap ? Thanks, Tiphaine