-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8332903: ubsan: opto/output.cpp:1002:18: runtime error: load of value 171, which is not a valid value for type 'bool' #19677
Conversation
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 36 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
I think this deserves a little more investigation. It looks like this value should have been set from the CallJavaNode in Matcher::match_sfpt. If it isn't being set, then we will always get the default value from the constructor and not the value copied from the CallJavaNode. |
src/hotspot/share/opto/machnode.hpp
Outdated
@@ -937,7 +937,7 @@ class MachCallJavaNode : public MachCallNode { | |||
bool _optimized_virtual; // Tells if node is a static call or an optimized virtual | |||
bool _method_handle_invoke; // Tells if the call has to preserve SP | |||
bool _arg_escape; // ArgEscape in parameter list | |||
MachCallJavaNode() : MachCallNode(), _override_symbolic_info(false) { | |||
MachCallJavaNode() : MachCallNode(), _override_symbolic_info(false), _arg_escape(false) { |
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.
If we need to initialize one bool, then we probably need to initialize them all. However, I think something else is going wrong to make this appear only on one platform.
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.
Agree, I wondered about the others too; probably we should initialize them as well.
The field |
Thanks for looking at this; this explains why the issue was observed only on ppc machines and so far not on x86_64 / aarch64. to the ad file ? Are there more additional fields of |
Yes that should help.
I'd look at |
I added handling/initialization of _arg_escape to ppc.ad; confirmed that the ubsan issue is gone with the ppc.ad change. |
It might be better to add a method that does the necessary initialization. That method can then be called from ppc.ad and from |
Might be a good cleanup, but I prefer to do this in a separate issue (and fix here only the ppc issue with a small fix). |
I created JDK-8334303 for that. |
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.
Good.
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.
LGTM. Thanks for fixing it! We should also backport this fix.
/integrate |
Going to push as commit 113a2c0.
Your commit was automatically rebased without conflicts. |
When building with ubsan on linuxppc64le we run into the issue below; seems some initialization is missing.
/jdk/src/hotspot/share/opto/output.cpp:1002:18: runtime error: load of value 171, which is not a valid value for type 'bool'
#0 0x7fff8f52b71c in PhaseOutput::Process_OopMap_Node(MachNode*, int) (/jdk/lib/server/libjvm.so+0x74cb71c)
#1 0x7fff8f530ab4 in PhaseOutput::fill_buffer(C2_MacroAssembler*, unsigned int*) (/jdk/lib/server/libjvm.so+0x74d0ab4)
#2 0x7fff8f53c740 in PhaseOutput::Output() (/jdk/lib/server/libjvm.so+0x74dc740)
#3 0x7fff8d5b6350 in Compile::Code_Gen() (/jdk/lib/server/libjvm.so+0x5556350)
#4 0x7fff8d5be730 in Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*) (/jdk/lib/server/libjvm.so+0x555e730)
#5 0x7fff8cfe7434 in C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) (/jdk/lib/server/libjvm.so+0x4f87434)
#6 0x7fff8d5e3bf4 in CompileBroker::invoke_compiler_on_method(CompileTask*) (/jdk/lib/server/libjvm.so+0x5583bf4)
#7 0x7fff8d5e5a74 in CompileBroker::compiler_thread_loop() (/jdk/lib/server/libjvm.so+0x5585a74)
#8 0x7fff8d6403c0 in CompilerThread::thread_entry(JavaThread*, JavaThread*) (/jdk/lib/server/libjvm.so+0x55e03c0)
#9 0x7fff8e428810 in JavaThread::thread_main_inner() (/jdk/lib/server/libjvm.so+0x63c8810)
#10 0x7fff900992e8 in Thread::call_run() (/jdk/lib/server/libjvm.so+0x80392e8)
#11 0x7fff8f4a6a08 in thread_native_entry(Thread*) (/jdk/lib/server/libjvm.so+0x7446a08)
#12 0x7fff95139714 in start_thread (/lib64/libpthread.so.0+0x9714)
#13 0x7fff944eb774 in __GI___clone (/lib64/libc.so.6+0x13b774)
... (rest of output omitted)
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19677/head:pull/19677
$ git checkout pull/19677
Update a local copy of the PR:
$ git checkout pull/19677
$ git pull https://git.openjdk.org/jdk.git pull/19677/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19677
View PR using the GUI difftool:
$ git pr show -t 19677
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19677.diff
Webrev
Link to Webrev Comment