https://bugs.winehq.org/show_bug.cgi?id=44175
Bug ID: 44175 Summary: stack corruption and crash with OpenSSH port Product: Wine Version: 2.20 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: ossman@cendio.se Distribution: ---
We have a port of OpenSSH to Windows that work well on a real Windows system, but crashes under Wine. I've tried to pinpoint the issue but I get very weird stack behaviours under winedbg. I've attached a binary with debug symbols.
A simple "ssh.exe server.example.com" crashes. Stepping shows that the crash is on this code:
sshconnect.c:641
if (sscanf(server_version_string, "SSH-%d.%d-%[^\n]\n", &remote_major, &remote_minor, remote_version) != 3)
However the stack is already corrupt when this code is reached.
Stepping earlier in the program causes it to crap out when doing this call:
ssh.c:1095
direct = option_clear_or_none(options.proxy_command) &&
options.proxy_command is NULL before the function is called, but once option_clear_or_none() the stack is bonkers with local variables and the call trace messed up. However it still executes a lot of code correctly after this, so it might just be a winedbg bug.
Not sure how to proceed at this point.
https://bugs.winehq.org/show_bug.cgi?id=44175
--- Comment #1 from Pierre Ossman ossman@cendio.se --- Created attachment 59938 --> https://bugs.winehq.org/attachment.cgi?id=59938 ssh.exe
https://bugs.winehq.org/show_bug.cgi?id=44175
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #2 from Vijay Kamuju infyquest@gmail.com --- try with wine 3.0-rc2
https://bugs.winehq.org/show_bug.cgi?id=44175
--- Comment #3 from Pierre Ossman ossman@cendio.se --- The issue remains with 3.0-rc4 unfortunately. :/
https://bugs.winehq.org/show_bug.cgi?id=44175
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |62a1410a07476ac94acceaf2a9e | |65628d4b06ddc Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- It should be fixed by 62a1410a07476ac94acceaf2a9e65628d4b06ddc.
https://bugs.winehq.org/show_bug.cgi?id=44175
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll
https://bugs.winehq.org/show_bug.cgi?id=44175
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.0-rc6.
https://bugs.winehq.org/show_bug.cgi?id=44175
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x
https://bugs.winehq.org/show_bug.cgi?id=44175
--- Comment #6 from Pierre Ossman ossman@cendio.se --- Thank you. I can confirm it works well with 3.0 proper.
https://bugs.winehq.org/show_bug.cgi?id=44175
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |---
--- Comment #7 from Michael Stefaniuc mstefani@winehq.org --- Removing the 2.0.x milestone from bugs included in 2.0.5.