Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343506

[s390x] multiple test failures with ubsan

XMLWordPrintable

    • b24
    • s390x
    • linux

        When enabled UBSAN and fired up tier1, on s390x, you will see multiple test failures with this error:

        bt:

        /home/amit/ubsan/jdk/src/hotspot/cpu/s390/s390.ad:2550:20: runtime error: signed integer overflow: -9223372036854775808 - 1 cannot be represented in type ‘long int'
            #0 0x3ff8e49009b in State::_sub_Op_ConL(Node const*) /home/amit/ubsan/jdk/src/hotspot/cpu/s390/s390.ad:2550
            #1 0x3ff8e4b38c9 in State::DFA(int, Node const*) /home/amit/ubsan/jdk/make/hotspot/dfa_s390.cpp:11680
            #2 0x3ff8f667853 in Matcher::Label_Root(Node const*, State*, Node*, Node*&) /home/amit/ubsan/jdk/src/hotspot/share/opto/matcher.cpp:1752
            #3 0x3ff8f667a2d in Matcher::Label_Root(Node const*, State*, Node*, Node*&) /home/amit/ubsan/jdk/src/hotspot/share/opto/matcher.cpp:1746
            #4 0x3ff8f668ef3 in Matcher::match_tree(Node const*) /home/amit/ubsan/jdk/src/hotspot/share/opto/matcher.cpp:1548
            #5 0x3ff8f6751ab in Matcher::xform(Node*, int) /home/amit/ubsan/jdk/src/hotspot/share/opto/matcher.cpp:1158
            #6 0x3ff8f67c8e3 in Matcher::match() /home/amit/ubsan/jdk/src/hotspot/share/opto/matcher.cpp:368
            #7 0x3ff8e28a529 in Compile::Code_Gen() /home/amit/ubsan/jdk/src/hotspot/share/opto/compile.cpp:2935
            #8 0x3ff8e294219 in Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*) /home/amit/ubsan/jdk/src/hotspot/share/opto/compile.cpp:885
            #9 0x3ff8ddf6f33 in C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) /home/amit/ubsan/jdk/src/hotspot/share/opto/c2compiler.cpp:142
            #10 0x3ff8e2b22b3 in CompileBroker::invoke_compiler_on_method(CompileTask*) /home/amit/ubsan/jdk/src/hotspot/share/compiler/compileBroker.cpp:2303
            #11 0x3ff8e2b3f3d in CompileBroker::compiler_thread_loop() /home/amit/ubsan/jdk/src/hotspot/share/compiler/compileBroker.cpp:1961
            #12 0x3ff8ed01181 in JavaThread::thread_main_inner() /home/amit/ubsan/jdk/src/hotspot/share/runtime/javaThread.cpp:759
            #13 0x3ff901169c9 in Thread::call_run() /home/amit/ubsan/jdk/src/hotspot/share/runtime/thread.cpp:234
            #14 0x3ff8fa105e7 in thread_native_entry /home/amit/ubsan/jdk/src/hotspot/os/linux/os_linux.cpp:858
            #15 0x3ff93316295 in start_thread nptl/pthread_create.c:442
            #16 0x3ff9338ff8d (/lib/s390x-linux-gnu/libc.so.6+0x10ff8d)

              amitkumar Amit Kumar
              amitkumar Amit Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: