-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8240211: Stack overflow on Windows 32-bit can lead to crash #137
Conversation
👋 Welcome back ajoseph! A progress list of the required criteria for merging this PR into |
/reviewers 2 |
@kevinrushforth |
I will review this. @guruhb can you also review it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I believe you have executed DRT on both 64 & 32 bit build.
This looks correct and very valuable to me. Would be great if there was a test that results in a crash before? |
Here is a pointer to the apply-style-iframe-crash.html test case that crashes on Windows 32-bit without this fix and passes with this fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a full build / test and verified that on Windows 32-bit the apply-style-iframe-crash.html test crashes without the fix and passes with the fix.
@arun-joseph This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there has been 1 commit pushed to the As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@guruhb, @kevinrushforth, @johanvos) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
@arun-joseph |
/sponsor |
@kevinrushforth @arun-joseph The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit cf0bba6. |
Mailing list message from Kevin Rushforth on openjfx-dev: Changeset: cf0bba6 8240211: Stack overflow on Windows 32-bit can lead to crash Reviewed-by: ghb, kcr, jvos ! modules/javafx.web/src/main/native/Source/WTF/wtf/StackBounds.cpp |
Issue: The stack pointer is checked close to the stack limit during the last iteration of calling frameLoaded() and then, grows beyond the thread's stack range causing a stack overflow and crashes. This occurs as the stack grows by an amount larger than the reserved zone at the end of the stack.
Fix: Reduce the stack range visible to the thread in StackBounds.cpp similar to Mac and Linux. This causes the stack pointer check to throw a StackOverflowError during the last iteration.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jfx pull/137/head:pull/137
$ git checkout pull/137