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

Bug #531: libpq: Operations following PQfinish() work.

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #531: libpq: Operations following PQfinish() work.
Date: 2001-12-06 18:35:49
Message-ID: 200112061835.fB6IZnx78865@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
Anthony Chavez (anthony(at)xmission(dot)com) reports a bug with a severity of 4
The lower the number the more severe it is.

Short Description
libpq: Operations following PQfinish() work.

Long Description
The PGconn *conn argument to PQfinish() is not set to NULL.  As a result, calling libpq functions---in particular, PQexec()---after PQfinish() has been called, continue to work until the following segmentation fault occurs:

Program received signal SIGSEGV, Segmentation fault.
0x4044dec7 in resetPQExpBuffer () from /usr/lib/libpq.so.2

This can be misleading, and it may be wise to set conn = NULL before PQfinish() returns.

Environment: PostgreSQL 7.1.3 / RedHat Linux 7.1.


Sample Code


No file was uploaded with this report


Responses

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-12-08 16:42:47
Subject: Bug #532: backend crashes due to segmentation fault
Previous:From: Stephan SzaboDate: 2001-12-06 16:13:46
Subject: Re: index error

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