From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA03506 for caml-red; Mon, 18 Dec 2000 15:49:26 +0100 (MET) 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 OAA26371 for ; Sat, 16 Dec 2000 14:48:28 +0100 (MET) Received: from localhost.localdomain (kenny90.zip.com.au [61.8.18.218]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id eBGDmOn08481 for ; Sat, 16 Dec 2000 14:48:25 +0100 (MET) Received: from ozemail.com.au (IDENT:root@localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.8.7) with ESMTP id AAA10089 for ; Sun, 17 Dec 2000 00:48:10 +1100 Message-ID: <3A3B729A.97875EF0@ozemail.com.au> Date: Sun, 17 Dec 2000 00:48:10 +1100 From: John Max Skaller X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: memory problem (Linux/malloc) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: weis@pauillac.inria.fr Um.. sorry to ask a question not directly related to Ocaml.. I'm running Linux (Redhat 6.1) The following program appears to leak: #include int main(int argc, char**argv) { for(;;) { void *a = malloc(100); void *b = malloc(78); void *c = malloc(99); free(a); free(b); free(c); } } I'm baffled. This shouldn't cause fragmentation, should it? Does anyone know of a leak in this version of Linux/glibc/malloc? [The leak is visible by running 'free'] -- John (Max) Skaller, mailto:skaller@maxtal.com.au 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 checkout Vyper http://Vyper.sourceforge.net download Interscript http://Interscript.sourceforge.net