https://bugs.winehq.org/show_bug.cgi?id=54381
Bug ID: 54381 Summary: tightvnc viewer crashes on incoming connection Product: Wine Version: 8.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: wine@axeitado.com Distribution: ---
Created attachment 73948 --> https://bugs.winehq.org/attachment.cgi?id=73948 Backtrace, 64bits version.
$ wine --version wine-8.0-rc3 (Debian 8.0~rc3~repack-1)
The crash happens when the connection is established and the remote screen is about to appear on the viewer. For instance, when the remote server connects to the viewer with a reverse connection:
$ wine tvnviewer.exe -listen
c:> tvnserver.exe -run c:> tvnserver.exe -controlapp -connect <viewer-host-address>
wine: Unhandled page fault on write access to 0000000000000000 at address 000000014007D22D (thread 0110), starting debugger... 0108:err:sync:RtlpWaitForCriticalSection section 0000000001D77BF8 (null) wait timed out in thread 0108, blocked by 010c, retrying (60 sec)
The above example uses the reverse connection method, which is straightforward to setup. When the viewer connects to a listening remote server the same crash occurs:
c:> rem the server must be properly configured: c:> tvnserver.exe -run
$ wine tvnviewer.exe <remote-server-address> wine: Unhandled page fault on write access to 0000000000000000 at address 000000014007D22D (thread 010c), starting debugger... 0108:err:sync:RtlpWaitForCriticalSection section 0000000001D77BF8 (null) wait timed out in thread 0108, blocked by 010c, retrying (60 sec)
This worked until very recently, 7.0.1~repack-1 was fine (this is Debian Testing).
The software is licensed under the GPL and binaries can be downloaded on the author's homepage (currently at version 2.8.63):
https://www.tightvnc.com/download.php
The 32 bit version also crashes.
Backtrace attached. It looks like the problem is related to starting a thread.
https://bugs.winehq.org/show_bug.cgi?id=54381
wine@axeitado.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Debian
https://bugs.winehq.org/show_bug.cgi?id=54381
wine@axeitado.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|tightvnc viewer crashes on |tightvnc viewer crashes on |incoming connection |connection (regression)
https://bugs.winehq.org/show_bug.cgi?id=54381
--- Comment #1 from wine@axeitado.com --- This is the full command output, apologies for not including it before:
$ wine64 /home/oscar/bin/tvnviewer.exe -listen 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0024:fixme:heap:RtlSetHeapInformation handle 0000000001D70000, info_class 0, info 000000000011FD90, size 4 stub! 008c:fixme:icon:NtUserDrawIconEx Error retrieving icon frame 0 008c:fixme:icon:NtUserDrawIconEx Error retrieving icon frame 0 008c:fixme:icon:NtUserDrawIconEx Error retrieving icon frame 0 008c:fixme:icon:NtUserDrawIconEx Error retrieving icon frame 0 008c:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub 008c:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub 0024:fixme:imm:ImeSetActiveContext (0000000000010052, 1): stub 0024:fixme:imm:ImmReleaseContext (0000000000020070, 0000000000010052): stub wine: Unhandled page fault on write access to 0000000000000000 at address 000000014007D22D (thread 010c), starting debugger... 0118:fixme:imm:ImeSetActiveContext (0000000000010096, 1): stub 0118:fixme:imm:ImmReleaseContext (00000000000100A0, 0000000000010096): stub 0118:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0xc0a0c0a, 0000: semi-stub! 0118:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0xc0a0c0a, 0000: semi-stub!
<from here it is included in the attached file backtrace.txt>
https://bugs.winehq.org/show_bug.cgi?id=54381
wine@axeitado.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@axeitado.com
https://bugs.winehq.org/show_bug.cgi?id=54381
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|tightvnc viewer crashes on |tightvnc viewer crashes on |connection (regression) |connection Keywords| |download, regression, | |source
--- Comment #2 from Austin English austinenglish@gmail.com --- Please run a regression test: https://wiki.winehq.org/Regression_Testing
Also, please attach the full terminal output.
https://bugs.winehq.org/show_bug.cgi?id=54381
--- Comment #3 from wine@axeitado.com --- Bisecting blames this commit:
546cbdc2508acdc2672b13e1ce838a54feb4db47
I double-checked by executing the application after reverting that commit from master branch current HEAD (4af5698d11fb5cc7926ce7e14e0dd837eac262e2).
https://bugs.winehq.org/show_bug.cgi?id=54381
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |546cbdc2508acdc2672b13e1ce8 | |38a54feb4db47 CC| |alexhenrie24@gmail.com, | |zzhang@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=54381
My Laz mylazid@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mylazid@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=54381
--- Comment #4 from Ken Sharp imwellcushtymelike@gmail.com --- *** Bug 55252 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=54381
gvegidy gve@intra2net.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gve@intra2net.com
--- Comment #5 from gvegidy gve@intra2net.com --- I can confirm that tightvnc viewer (version 2.8.81) crashes as soon as a vnc connection is established.
This is with wine 8.19 on Fedora 38 (wine-8.19-1.fc38 RPM from Fedora).
When I rebuild this wine version with 546cbdc2508acdc2672b13e1ce838a54feb4db47 removed, tvnviewer.exe runs without issues.
Please consider reverting or rewriting this commit.
@wine@axeitado.com: thank you for bisecting, your work was really helpful for me.
https://bugs.winehq.org/show_bug.cgi?id=54381
--- Comment #6 from Zhiyi Zhang zzhang@codeweavers.com --- I am taking a look at this.
https://bugs.winehq.org/show_bug.cgi?id=54381
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |zzhang@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=54381
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #7 from Zhiyi Zhang zzhang@codeweavers.com --- Confirmed
https://bugs.winehq.org/show_bug.cgi?id=54381
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #8 from Fabian Maurer dark.shadow4@web.de --- is this fixed by https://gitlab.winehq.org/wine/wine/-/commit/19229020416dd8a2c52071d1987130f... ?
https://bugs.winehq.org/show_bug.cgi?id=54381
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |19229020416dd8a2c52071d1987 | |130f05ee790de Assignee|zzhang@codeweavers.com |wine-bugs@winehq.org Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #9 from Zhiyi Zhang zzhang@codeweavers.com --- Fixed by 19229020416dd8a2c52071d1987130f05ee790de
https://bugs.winehq.org/show_bug.cgi?id=54381
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |win32u
https://bugs.winehq.org/show_bug.cgi?id=54381
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.0-rc3.