Skip site navigation (1) Skip section navigation (2)

Re: EN_Destructor bug?

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Tom Hughes" <thh(at)cyberscience(dot)com>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: EN_Destructor bug?
Date: 2005-10-25 07:39:42
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC36AB@ratbert.vale-housing.co.uk (view raw or flat)
Thread:
Lists: pgsql-odbc
Thanks Tom, patch applied.

Regards, Dave 

> -----Original Message-----
> From: pgsql-odbc-owner(at)postgresql(dot)org 
> [mailto:pgsql-odbc-owner(at)postgresql(dot)org] On Behalf Of Tom Hughes
> Sent: 19 October 2005 15:07
> To: pgsql-odbc(at)postgresql(dot)org
> Subject: [ODBC] EN_Destructor bug?
> 
> When EN_Destructor is called it searches through the connection array
> and destroys any connections which belong that environment. 
> Unfortunately
> it doesn't NULL out the connection array entry afterwards so a future
> call to EN_Destructor can wind up trying to destroy that connection
> again if another environment has been allocated at the same address.
> 
> Also, shouldn't EN_Destructor hold the CONNS critical section while it
> is playing with the connection array?
> 
> The attached patch fixes both of these issues and seems to have fixed
> the crashes I was observing.
> 
> Tom
> 
> -- 
> Tom Hughes (thh(at)cyberscience(dot)com)
> Software Engineer, Cyberscience Corporation
> http://www.cyberscience.com/
> 
> 

pgsql-odbc by date

Next:From: pgsqlDate: 2005-10-25 16:21:30
Subject: unsubscribe
Previous:From: Dave PageDate: 2005-10-25 07:35:35
Subject: Re: [PATCH] initialize pgconn to null

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group