[Bug 47808] Cygwin's mintty.exe crashes with a stack overflow

WineHQ Bugzilla wine-bugs at winehq.org
Fri Sep 3 10:42:55 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=47808

Bernhard Übelacker <bernhardu at mailbox.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernhardu at mailbox.org

--- Comment #11 from Bernhard Übelacker <bernhardu at mailbox.org> ---
Created attachment 70599
  --> https://bugs.winehq.org/attachment.cgi?id=70599
Another hack to get over the stack issue. And a fix to show bash output inside
mintty.exe.

I still experienced crashes with the "updated hack".
So I did some experiments and came up with another hack which does
a few recursive function calls to get enough stack pages committed,
to not have guard pages hit inside some shared library calls.

After getting over the stack issues, mintty.exe still shows nothing
from the bash.exe process running inside.
This is because mintty relies on
NtQueryInformationFile(FilePipeLocalInformation)
returning the real value for ReadDataAvailable.

With these three patches applied I had e.g. bash.exe, mintty.exe,
ls.exe and script.exe working.
gdb.exe (because of some python initialisation) and python3.8.exe did not work.

-- 
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.


More information about the wine-bugs mailing list