[Bug 44175] New: stack corruption and crash with OpenSSH port
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(a)winehq.org Reporter: ossman(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 --- Comment #1 from Pierre Ossman <ossman(a)cendio.se> --- Created attachment 59938 --> https://bugs.winehq.org/attachment.cgi?id=59938 ssh.exe -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 Vijay Kamuju <infyquest(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest(a)gmail.com --- Comment #2 from Vijay Kamuju <infyquest(a)gmail.com> --- try with wine 3.0-rc2 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 --- Comment #3 from Pierre Ossman <ossman(a)cendio.se> --- The issue remains with 3.0-rc4 unfortunately. :/ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |62a1410a07476ac94acceaf2a9e | |65628d4b06ddc Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> --- It should be fixed by 62a1410a07476ac94acceaf2a9e65628d4b06ddc. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #5 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 3.0-rc6. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 --- Comment #6 from Pierre Ossman <ossman(a)cendio.se> --- Thank you. I can confirm it works well with 3.0 proper. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44175 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |--- --- Comment #7 from Michael Stefaniuc <mstefani(a)winehq.org> --- Removing the 2.0.x milestone from bugs included in 2.0.5. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org