Unix Technical Forum

BUG #2827

This is a discussion on BUG #2827 within the pgsql Bugs forums, part of the PostgreSQL category; --> My original "debugging code" was wrong. A minor correction to it seems to find something different: addr_cur->ai_addr is null. ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:28 AM
CN
 
Posts: n/a
Default BUG #2827

My original "debugging code" was wrong. A minor correction to it seems
to find something different:

addr_cur->ai_addr

is null. I presume this is the cause resulting in AV when calling
memcpy().

New wine enters function
PostgresPollingStatusType PQconnectPoll(PGconn *conn)
in file "fe-connect.c":

case CONNECTION_NEEDED:
while (conn->addr_cur != NULL)
{
struct addrinfo *addr_cur = conn->addr_cur;

if(addr_cur->ai_addr == NULL){
fopen("c:\\log.txt","a+");
fputs("addr_cur->ai_addr",f); //this does print!
fclose(f);
}

Regards,
CN

--
http://www.fastmail.fm - Access all of your messages and folders
wherever you are


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com