dbTalk Databases Forums  

[BUGS] BUG #1092: Memory Fault in PQsetdbLogin

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1092: Memory Fault in PQsetdbLogin in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1092: Memory Fault in PQsetdbLogin - 03-04-2004 , 09:27 AM







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

Details:

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.



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1092: Memory Fault in PQsetdbLogin - 03-04-2004 , 10:14 AM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
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.
This is a bit hard to believe, seeing that as of 7.4 these two functions
are trivial wrappers around the same set of underlying functions.
You're going to need to provide more detail, or preferably a
reproducible test case.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.