English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Hunting a memory leak
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-06-12 (12:17)
From: Tiphaine Turpin <Tiphaine.Turpin@i...>
Subject: Hunting a memory leak
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