Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Tiphaine Turpin <Tiphaine.Turpin@irisa.fr>
To: caml-list@yquem.inria.fr
Subject: Hunting a memory leak
Date: Fri, 12 Jun 2009 14:16:55 +0200	[thread overview]
Message-ID: <4A324737.4020104@irisa.fr> (raw)

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


                 reply	other threads:[~2009-06-12 12:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4A324737.4020104@irisa.fr \
    --to=tiphaine.turpin@irisa.fr \
    --cc=caml-list@yquem.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