http://bugs.winehq.org/show_bug.cgi?id=10467
--- Comment #56 from Alexandre Julliard julliard@winehq.org 2008-03-27 04:19:36 --- (In reply to comment #55)
First VirtualQuery() -> page guard search algorithm Second VirtualQuery() + VirtualProtect() -> page guard enabling code.
I'm not going to waste more time with explanations.
Please show me the offending apps which ought to break when a guard page is located at StackLimit. I might find a way to satisfy both - but I have to see the app code.
You can't solve this by making it incompatible with what Windows does. The proper solution is to make sure that we handle guard pages correctly in the segfault handler, and that we can do that VirtualProtect call without crashing. Do you have a small test app demonstrating the problem?