X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E060E529C7 for ; Tue, 19 Jul 2005 04:36:50 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54961-03 for ; Tue, 19 Jul 2005 07:36:46 +0000 (GMT) Received: from fep06-app.kolumbus.fi (fep06-0.kolumbus.fi [193.229.0.57]) by svr1.postgresql.org (Postfix) with ESMTP id 3DC3A529AB for ; Tue, 19 Jul 2005 04:36:44 -0300 (ADT) Received: from [192.168.1.102] (really [193.229.230.202]) by fep06-app.kolumbus.fi with ESMTP id <20050719073644.MTCI27997.fep06-app.kolumbus.fi@[192.168.1.102]>; Tue, 19 Jul 2005 10:36:44 +0300 Message-ID: <42DCAD90.1030906@kolumbus.fi> Date: Tue, 19 Jul 2005 10:36:48 +0300 From: Marko Ristola User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: Anoop Kumar , pgsql-odbc@postgresql.org Subject: Re: Leak repairs References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.331 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/78 X-Sequence-Number: 5544 Have you seen this one? 1121712844: 17186: not freed: '0x404ef808|s1' (800 bytes) from 'qresult.c:421' 1121712844: 17186: not freed: '0x404f0c08|s1' (800 bytes) from 'qresult.c:421' 1121712844: 17186: not freed: '0x404fd008|s1' (3200 bytes) from 'qresult.c:421' 1121712844: 17186: not freed: '0x404fe008|s1' (3200 bytes) from 'qresult.c:421' 1121712844: 17186: not freed: '0x404ff008|s1' (3200 bytes) from 'qresult.c:421' 1121712844: 17186: not freed: '0x40500008|s1' (3200 bytes) from 'qresult.c:421' 1121712844: 17186: not freed: '0x40501008|s1' (3200 bytes) from 'qresult.c:421' Line 421 allocates a buffer into QResultClass.backend_tuples. backend_tuples will be set into NULL in QR_Destructor() with "self->backend_tuples = NULL". I suspect, that the memory leak. Marko Ristola Dave Page wrote: > > > > >>-----Original Message----- >>From: Anoop Kumar [mailto:anoopk@pervasive-postgres.com] >>Sent: 19 July 2005 07:35 >>To: Dave Page >>Cc: pgsql-odbc@postgresql.org >>Subject: RE: [ODBC] Leak repairs >> >>Hi Dave, >> >>I have tested the patch from you, and it does make the perfmon graph >>less steep. I am applying the patch to CVS. >> >> > > >Great, thanks. Any joy tracking down the last little bit? > > > >>Regarding the call to PGgetisnull: My mistake! I forgot to remove it, >>thanks for pointing it out. >> >> > >No problem. > >I think we should put out a second snapshot sometime, as soon as the >rest of this memory leak is fixed, and the Excel problem is sorted. Any >progress on that one? > >Also we need to expose the libpq SSL option to the user, probably on the >main connection dialogue, and obviously as a connection string option. >At the same time, the protocol version options can be removed. I can >probably look at that if you are pushed for time - let me know what you >prefer. > >Finally, the threading problem. After discussion with Bruce Momjian and >Magnus Hagander, we think that the --enable-thread-safety configure >option should be used on Windows as well as other platforms as it does >do more than just enable critical sections around non-thread safe API >calls. I am (as time allows!) working on fixing PostgreSQL to allow >this. > >Regards, Dave > >---------------------------(end of broadcast)--------------------------- >TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > >