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

BUG #1092: Memory Fault in PQsetdbLogin

From: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1092: Memory Fault in PQsetdbLogin
Date: 2004-03-04 15:20:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      1092
Logged by:          Fred Eisele

Email address:      fred(at)netarx(dot)com

PostgreSQL version: 7.4

Operating system:   Debian/GNU unstable (kernel 2.6.3)

Description:        Memory Fault in PQsetdbLogin


When opening two connections using PQsetdbLogin one of the connections was 
apparently being dropped, and I would get segmentation errors. 
I rebuilt the program using dmalloc and it reported...
debug-malloc library: dumping program, fatal error
   Error: invalid allocation size (err 40)
...when PQsetdbLogin was called.
I replaced the call to PQsetdbLogin with an equivalent call to PQconnectdb.
dmalloc does not report any errors with PQconnectdb and the original two 
problems seem to have gone away. 
As far as I am concerned, deprecating PQsetdbLogin is an adequate fix.


pgsql-bugs by date

Next:From: Tom LaneDate: 2004-03-04 15:45:04
Subject: Re: BUG #1092: Memory Fault in PQsetdbLogin
Previous:From: Tatsuo IshiiDate: 2004-03-04 03:09:45
Subject: Re: BUG #1091: Localization in EUC_TW Can't decode Big5

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