[Bug 44175] New: stack corruption and crash with OpenSSH port

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 44175] New: stack corruption and crash with OpenSSH port

Wine - Bugs mailing list
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: [hidden email]
          Reporter: [hidden email]
      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.

Reply | Threaded
Open this post in threaded view
|

[Bug 44175] stack corruption and crash with OpenSSH port

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44175

--- Comment #1 from Pierre Ossman <[hidden email]> ---
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44175] stack corruption and crash with OpenSSH port

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44175

Vijay Kamuju <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #2 from Vijay Kamuju <[hidden email]> ---
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44175] stack corruption and crash with OpenSSH port

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44175

--- Comment #3 from Pierre Ossman <[hidden email]> ---
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44175] stack corruption and crash with OpenSSH port

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44175

Alexandre Julliard <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Fixed by SHA1|                            |62a1410a07476ac94acceaf2a9e
                   |                            |65628d4b06ddc
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Alexandre Julliard <[hidden email]> ---
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44175] stack corruption and crash with OpenSSH port

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44175

Nikolay Sivov <[hidden email]> 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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44175] stack corruption and crash with OpenSSH port

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44175

Alexandre Julliard <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #5 from Alexandre Julliard <[hidden email]> ---
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44175] stack corruption and crash with OpenSSH port

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44175

Michael Stefaniuc <[hidden email]> 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.