WineHQ
Bug Tracking Database – Bug 35235

 Bugzilla

 

Last modified: 2021-12-05 07:57:11 UTC  

GoldCoin 0.7.1.7: synchronization with network spams terminal with "fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0" messages

Bug 35235 - GoldCoin 0.7.1.7: synchronization with network spams terminal with "fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0" messages
GoldCoin 0.7.1.7: synchronization with network spams terminal with "fixme:win...
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: winsock
1.7.9
x86 Linux
: P2 minor
: ---
Assigned To: Mr. Bugs
https://web.archive.org/web/201404030...
: download, patch
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-12-26 13:38 UTC by Anastasius Focht
Modified: 2021-12-05 07:57 UTC (History)
0 users

See Also:
Regression SHA1:
Fixed by SHA1: fc5884c23296c0f121442d0832b0187074e95a10
Distribution: ---
Staged patchset:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anastasius Focht 2013-12-26 13:38:18 UTC
Hello folks,

with bug 35061 fixed the app starts fine.

The annoying bit: there is a constant flood of messages in terminal during initial synchronization with network.

Trace log:

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/GoldCoin (GLD)

$ WINEDEBUG=+tid,+seh,+relay,+winsock wine ./goldcoin-qt.exe >>log.txt 2>&1
...
0029:Call ws2_32.getnameinfo(0834e950,00000010,0834e54f,00000401,00000000,00000000,00000002) ret=004202c8
...
0029:trace:winsock:WS_getnameinfo { family AF_INET, address 111.111.111.111, port 0 } 16 0x834e54f 1025 (nil) 0 2
...
0029:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
...
0029:Ret  ws2_32.getnameinfo() retval=00000000 ret=004202c8 
...
0029:Call msvcrt.vfprintf(7edfe420,00932974 "GetMyExternalIP() returned %s\n",0834ea24) ret=0073f748
--- snip ---

With +timestamp to show the rate:

--- snip ---
...
32104.177:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
32104.183:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
32104.185:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
32104.185:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
32104.185:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
32104.185:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
32104.185:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
32104.187:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
32104.191:fixme:winsock:convert_eai_u2w Unhandled unix EAI_xxx ret 0
...
--- snip ---

getnameinfo() returning 0 = 'success' should be exempt from error code translation.

Source: http://source.winehq.org/git/wine.git/blob/c66c14ddda242cee69e8a730310c1855dc85a445:/dlls/ws2_32/socket.c#l5668

--- snip ---
5668 int WINAPI WS_getnameinfo(const SOCKADDR *sa, WS_socklen_t salen, PCHAR host,
5669                        DWORD hostlen, PCHAR serv, DWORD servlen, INT flags)
5670 {
5671 #ifdef HAVE_GETNAMEINFO
...
5685     ret = getnameinfo(&sa_u.addr, size, host, hostlen, serv, servlen, convert_niflag_w2u(flags));
5686     return convert_eai_u2w(ret);
5687 #else
5688     FIXME("getnameinfo() failed, not found during buildtime.\n");
5689     return EAI_FAIL;
5690 #endif
5691 }
--- snip ---

Source: http://source.winehq.org/git/wine.git/blob/c66c14ddda242cee69e8a730310c1855dc85a445:/dlls/ws2_32/socket.c#l5365

--- snip ---
5365 static int convert_eai_u2w(int unixret) {
5366     int i;
5367
5368     for (i=0;ws_eai_map[i][0];i++)
5369         if (ws_eai_map[i][1] == unixret)
5370             return ws_eai_map[i][0];
5371
5372     if (unixret == EAI_SYSTEM)
5373          /* There are broken versions of glibc which return EAI_SYSTEM
5374           * and set errno to 0 instead of returning EAI_NONAME.
5375           */
5376         return errno ? sock_get_error( errno ) : WS_EAI_NONAME;
5377
5378     FIXME("Unhandled unix EAI_xxx ret %d\n", unixret);
5379     return unixret;
5380 }
--- snip ---

$ sha1sum goldcoin-0.7.1.7-win32-setup.exe 
b7f714096bee9c766c5c656e9ffddfd95c9e2026  goldcoin-0.7.1.7-win32-setup.exe

$ du -sh goldcoin-0.7.1.7-win32-setup.exe 
9.4M	goldcoin-0.7.1.7-win32-setup.exe

$ wine --version
wine-1.7.9-183-g919e620

Regards
Comment 1 Bruno Jesus 2013-12-26 14:00:49 UTC
I have sent a patch for this:
http://source.winehq.org/patches/data/101198
Comment 2 Anastasius Focht 2013-12-27 14:53:03 UTC
Hello folks,

this is fixed by commit http://source.winehq.org/git/wine.git/commitdiff/fc5884c23296c0f121442d0832b0187074e95a10

Thanks Bruno

Regards
Comment 3 Alexandre Julliard 2014-01-03 13:10:24 UTC
Closing bugs fixed in 1.7.10.
Comment 4 Anastasius Focht 2021-12-05 07:56:49 UTC
Hello folks,

adding stable download link via Internet Archive for documentation.

https://web.archive.org/web/20140403064912/http://gldcoin.com/downloads/goldcoin-0.7.1.7-win32-setup.exe

https://www.virustotal.com/gui/file/cee77d74638d49401464e03bbf103f1019bf0331c0bc1e2f037ac7a2f47927e0

$ sha1sum goldcoin-0.7.1.7-win32-setup.exe 
648e8a8c1c65ffbc8752a4e5ecde708fc31df0cf  goldcoin-0.7.1.7-win32-setup.exe

$ du -sh goldcoin-0.7.1.7-win32-setup.exe 
9.4M	goldcoin-0.7.1.7-win32-setup.exe

Regards


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers