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
Fix the crash issue with the error message framework in Verifier #15681
Fix the crash issue with the error message framework in Verifier #15681
Conversation
The PR was verified in internal & open builds. Reviewer: @DanHeidinga |
021f21f
to
f3caaa7
Compare
Is there also a missing check for allocation failure (due to the huge size) later on? |
We already had the check in the existing code for the allocation failure in such case in
|
OK, but I'm wondering why we crashed before - if the huge allocation were properly checked, wouldn't that result in an out of memory error being reported? |
The change is to resolve the crash issue specific to a stackmap frame without any element in 'locals' and 'stack' when allocating the memory of stackmap frame in the error message framework during the runtime verification. Fixes: eclipse-openj9#15639 Signed-off-by: Cheng Jin <jincheng@ca.ibm.com>
The crash occurred in
in which case I just set In addition, we skip the stackmap frames in huge size in the case of out-of-memory in our error message framework to ensure the rest of stackmap frames in an appropriate size are correctly allocated & outputted to the error message so as to provide users with sufficient information of what is really happening in the problematic class. |
f3caaa7
to
0e45a9f
Compare
Please note the issue detected at #15639 had nothing to do with the out-of-memory case but an incorrect last |
Right, the original issue was corruption from an overrun. |
jenkins test sanity,extended win jdk8 |
The change is to resolve the crash issue specific to a stackmap
frame without any element in 'locals' and 'stack' when allocating
the memory of stackmap frame in the error message framework
during the runtime verification.
Fixes: #15639
Signed-off-by: Cheng Jin jincheng@ca.ibm.com