You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server: Reset reported_events if socket gets reused.
MSYS setup tries to setup some pacman/gpg key configuration.
This involves starting dirmngr.exe which unfortunately hangs.
Therefore gpg reports:
gpg: connecting dirmngr at '/etc/pacman.d/gnupg/S.dirmngr' failed: IPC connect call failed
And fails therefore "silently".
The hang in dirmngr.exe looks to be a result of reusing a socket twice.
When the first connection attempt failed, wineserver still has
the reported_events set.
Therefore on the second attempt WSAEnumNetworkEvents does no longer
report those events.
But fhandler_socket_wsock::wait_for_events gets just left when
there are some events received.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53574
dirmngr.exe --server --no-detach --homedir /etc/pacman.d/gnupg --verbose
(gdb) bt
#0 fhandler_socket_wsock::evaluate_events (this=0x800028718, event_mask=48, events=@0x67dfc278: 0, erase=true) at /home/bernhard/MSYS2-packages/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler/socket_inet.cc:307
wine-mirror#1 0x000000018015a287 in fhandler_socket_wsock::wait_for_events (this=0x800028718, event_mask=48, flags=0) at /home/bernhard/MSYS2-packages/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler/socket_inet.cc:404
wine-mirror#2 0x000000018015b267 in fhandler_socket_inet::connect (this=0x800028718, name=0x67dfc810, namelen=16) at /home/bernhard/MSYS2-packages/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler/socket_inet.cc:802
wine-mirror#3 0x000000018008c63c in cygwin_connect (fd=3, name=0x67dfc810, namelen=16) at /home/bernhard/MSYS2-packages/msys2-runtime/src/msys2-runtime/winsup/cygwin/net.cc:709
wine-mirror#4 0x00000001801c348b in _sigfe () at sigfe.s:36
wine-mirror#5 0x00000005a3099a57 in __assuan_connect (ctx=<optimized out>, sock=<optimized out>, addr=<optimized out>, length=<optimized out>) at system-posix.c:430
wine-mirror#6 0x00000005a30922c6 in _assuan_connect (ctx=ctx@entry=0xa00020830, sock=sock@entry=3, addr=addr@entry=0x67dfc810, length=length@entry=16) at system.c:412
wine-mirror#7 0x00000005a30989c8 in socks5_connect (ctx=ctx@entry=0xa00020830, sock=sock@entry=3, socksport=socksport@entry=9050, credentials=credentials@entry=0x0, hostname=hostname@entry=0x5a309d7fa <okstr+1466> "", hostport=hostport@entry=0, addr=addr@entry=0x0, length=length@entry=0) at assuan-socket.c:754
wine-mirror#8 0x00000005a3099315 in _assuan_sock_connect_byname (ctx=0xa00020830, host=host@entry=0x0, port=port@entry=0, reserved=reserved@entry=0, credentials=credentials@entry=0x0, flags=flags@entry=2) at assuan-socket.c:1148
wine-mirror#9 0x00000005a30993f7 in assuan_sock_connect_byname (host=host@entry=0x0, port=port@entry=0, reserved=reserved@entry=0, credentials=credentials@entry=0x0, flags=flags@entry=2) at assuan-socket.c:1497
wine-mirror#10 0x0000000100402531 in dirmngr_use_tor () at dirmngr.c:607
wine-mirror#11 0x000000010040256c in set_tor_mode () at dirmngr.c:582
wine-mirror#12 0x00000001004025eb in post_option_parsing () at dirmngr.c:898
wine-mirror#13 0x0000000100403532 in main (argc=<optimized out>, argv=<optimized out>) at dirmngr.c:1211
(gdb) print evts.lNetworkEvents
$1 = 0
0 commit comments