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

[s390x] ubsan: negation of -2147483648 cannot be represented in type 'int'

XMLWordPrintable

    • s390x
    • linux

      TEST: compiler/loopopts/parallel_iv/TestParallelIvInIntCountedLoop.java


      /home/amit/ubsan/jdk/src/hotspot/cpu/s390/c1_LIRAssembler_s390.cpp:1536:39: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast
       to an unsigned type to negate this value to itself
          #0 0x3ff8c087381 in LIR_Assembler::arith_op(LIR_Code, LIR_Opr, LIR_Opr, LIR_Opr, CodeEmitInfo*, bool) /home/amit/ubsan/jdk/src/hotspot/cpu/s390/c1_LIRAs
      sembler_s390.cpp:1536
          #1 0x3ff8c03fa69 in LIR_Assembler::emit_op2(LIR_Op2*) /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_LIRAssembler.cpp:718
          #2 0x3ff8c042f83 in LIR_Assembler::emit_lir_list(LIR_List*) /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_LIRAssembler.cpp:304
          #3 0x3ff8c044b2f in LIR_Assembler::emit_block(BlockBegin*) /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_LIRAssembler.cpp:269
          #4 0x3ff8c044b2f in LIR_Assembler::emit_code(BlockList*) /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_LIRAssembler.cpp:228
          #5 0x3ff8bf117e5 in Compilation::emit_code_body() /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compilation.cpp:357
          #6 0x3ff8bf124eb in Compilation::compile_java_method() /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compilation.cpp:416
          #7 0x3ff8bf14605 in Compilation::compile_method() /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compilation.cpp:478
          #8 0x3ff8bf15ca3 in Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*) /home/amit/ubsan/jdk/src/hotsp
      ot/share/c1/c1_Compilation.cpp:608
          #9 0x3ff8bf1a913 in Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) /home/amit/ubsan/jdk/src/hotspot/share/c1/c1_Compiler.cpp:263
          #10 0x3ff8c73f9fb in CompileBroker::invoke_compiler_on_method(CompileTask*) /home/amit/ubsan/jdk/src/hotspot/share/compiler/compileBroker.cpp:2319
          #11 0x3ff8c7416ad in CompileBroker::compiler_thread_loop() /home/amit/ubsan/jdk/src/hotspot/share/compiler/compileBroker.cpp:1977
          #12 0x3ff8d1aa5c1 in JavaThread::thread_main_inner() /home/amit/ubsan/jdk/src/hotspot/share/runtime/javaThread.cpp:772
          #13 0x3ff8e5e1679 in Thread::call_run() /home/amit/ubsan/jdk/src/hotspot/share/runtime/thread.cpp:232
          #14 0x3ff8decd65f in thread_native_entry /home/amit/ubsan/jdk/src/hotspot/os/linux/os_linux.cpp:858
          #15 0x3ff91816295 in start_thread nptl/pthread_create.c:442
          #16 0x3ff9188ff8d (/lib/s390x-linux-gnu/libc.so.6+0x10ff8d)

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

              Created:
              Updated: