From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 9917EBBA7 for ; Fri, 25 Nov 2005 10:20:20 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jAP9KJr7010393 for ; Fri, 25 Nov 2005 10:20:20 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA07647 for ; Fri, 25 Nov 2005 10:20:19 +0100 (MET) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jAP9KIpO027308 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 25 Nov 2005 10:20:19 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EfZjH-0002rd-6Z for caml-list@inria.fr; Fri, 25 Nov 2005 10:18:51 +0100 Received: from host5-166.pool8249.interbusiness.it ([82.49.166.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Nov 2005 10:18:51 +0100 Received: from vincenzo_yahoo_addressguard-gmane by host5-166.pool8249.interbusiness.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Nov 2005 10:18:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Vincenzo Ciancia Subject: Re: Memory leak with ocaml 3.09 but not with ocaml <= 3.08.1 Date: Fri, 25 Nov 2005 10:19:47 +0100 Message-ID: References: <87hda26s55.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host5-166.pool8249.interbusiness.it User-Agent: KNode/0.9.2 Sender: news X-Miltered: at nez-perce with ID 4386D753.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4386D752.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 3.09:01 ocaml:01 allocator:01 run-time:01 attenzione:98 l'indirizzo:98 posta:98 nel:98 campo:98 wrote:01 invoke:01 caml:02 florian:02 guess:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Florian Weimer wrote: >> leave_blocking_section(); > >> vpath = copy_string(path); > > I don't think it's allowed to invoke the Caml allocator while not > holding the run-time library lock. That's why I hold the lock by calling "leave_blocking_section" at the beginning of the function - it's "enter_blocking_section" that releases the lock :) I guess I will have to exclude pieces of code until the memory leak disappears... V. -- Please note that I do not read the e-mail address used in the from field but I read vincenzo_ml at yahoo dot it Attenzione: non leggo l'indirizzo di posta usato nel campo from, ma leggo vincenzo_ml at yahoo dot it