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.
environ.c (r1.54 -> r1.55)
pgsql-committers by date
|Next:||From: User Dpage||Date: 2005-10-25 08:47:50|
|Subject: pginstaller - pginst: pgAdmin has Slovenian tips now.|
|Previous:||From: User Dpage||Date: 2005-10-25 07:35:20|
|Subject: psqlodbc - psqlodbc: This patch fixes a potential segfault that can |