dbTalk Databases Forums  

[BUGS] BUG #2827: AV occurs to libpq with newer versions of wine

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


Discuss [BUGS] BUG #2827: AV occurs to libpq with newer versions of wine in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CN Liou
 
Posts: n/a

Default [BUGS] BUG #2827: AV occurs to libpq with newer versions of wine - 12-15-2006 , 03:25 AM







The following bug has been logged online:

Bug reference: 2827
Logged by: CN Liou
Email address: cnliou9 (AT) fastmail (DOT) fm
PostgreSQL version: 8.2
Operating system: libwine
Description: AV occurs to libpq with newer versions of wine
Details:

libpq.dll works fine under libwine (http://www.winehq.org) (old) version
20040914.

Access Violation happens in fe-connect.c with newer versions of wine
(0.9.27). libpq in old wine enters case

case CONNECTION_AWAITING_RESPONSE

and then

case CONNECTION_AUTH_OK

in switch(conn->status) in function

PostgresPollingStatusType PQconnectPoll(PGconn *conn)



Libpq in new wine enters case

case CONNECTION_NEEDED:
while (conn->addr_cur != NULL)
{
struct addrinfo *addr_cur = conn->addr_cur;
/*
The following statments output nothing:

f=fopen("c:\\log.txt","a+"); fprintf(f,"%s","A\r\n"); fclose(f);
if(conn == NULL) fprintf(f,"%s","conn");fclose(f);
if(conn->addr_cur == NULL) fprintf(f,"%s","addr_cur");fclose(f);
if(addr_cur->ai_addr == NULL) fputs("addr_cur->ai_addr",f);fclose(f);
if(&conn->raddr.addr == NULL) fputs("conn->raddr.addr",f);fclose(f);
if(addr_cur->ai_addrlen == 0) fputs("addr_cur->ai_addrlen",f);fclose(f);
f=fopen("c:\\log.txt","a+");fputs("B\r\n",f);fclos e(f);
*/

/* Remember current address for possible error msg */
memcpy(&conn->raddr.addr, addr_cur->ai_addr,
addr_cur->ai_addrlen);
f=fopen("c:\\log.txt","a+");fputs("C\r\n",f);fclos e(f);
conn->raddr.salen = addr_cur->ai_addrlen;


and AV occurs at memcpy().

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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.