X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sun, 10 Feb 2008 10:14:30 -0800
From: Jerry DeLisle <jvdelisle@verizon.net>
Subject: Re: Memory leak problem reported with gfortran
In-reply-to: <20080206092154.GP5866@calimero.vinschen.de>
To: cygwin@cygwin.com
Message-id: <47AF3F06.30302@verizon.net>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
References: <47A614EC.1010104@verizon.net>  <20080204103512.GA5866@calimero.vinschen.de> <47A782C7.3060501@verizon.net>  <20080204222455.GA3058@ednor.casa.cgf.cx>  <20080205103104.GK5866@calimero.vinschen.de> <47A90C18.1070709@verizon.net>  <20080206092154.GP5866@calimero.vinschen.de>
User-Agent: Thunderbird 2.0.0.9 (X11/20071115)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:
> On Feb  5 17:23, Jerry DeLisle wrote:
>> Corinna Vinschen wrote:
>>> On Feb  4 17:24, Christopher Faylor wrote:
>>>> On Mon, Feb 04, 2008 at 01:25:27PM -0800, Jerry DeLisle wrote:
>>>>> The test also appears very clean on Linux.  The gfortran library is
>>>>> implemented in C.  I need to examine some dumps from the compiler and I
>>>>> will get back with you off list if I don't spot the problem.
>>>> I am fairly certain that Corinna would want to keep any correspondence
>>>> on-list.
>>> Yup, that's right.
>> OK, we have isolated the problem now.  Confirming its in the libgfortran.  
>> The reason we did not see it on Linux is because we just did not run out of 
>> memory yet and when the test program completes, it does actually free what 
>> was allocated.  We are failing to reuse an already allocated block so we 
>> were allocating a new one for every single WRITE to the string.
>>
>> Thanks for all your help.
> 
> Thanks for letting us know.
> 
> 
> Corinna
> 
An interim patch to gcc 4.3 has been committed to svn.  see gcc bugzilla pr35063 
for details.  It was a mutex lock issue.  Not closing the handle after the lock 
was no longer needed.

Jerry

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

