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

ubsan: relocInfo_x86.cpp:101:56: runtime error: pointer index expression with base (-1) overflowed

XMLWordPrintable

    • b26
    • x86
    • linux

        When configuring ubsan (--enable-ubsan) I run in the build (on Linux x86_64 fastdebug) into this issue :

        src/hotspot/cpu/x86/relocInfo_x86.cpp:101:56: runtime error: pointer index expression with base 0xffffffffffffffff overflowed to 0x0000074d946f
            #0 0x14b28fa94ac2 in Relocation::pd_call_destination(unsigned char*) src/hotspot/cpu/x86/relocInfo_x86.cpp:101
            #1 0x14b28fa8408a in CallRelocation::fix_relocation_after_move(CodeBuffer const*, CodeBuffer*) src/hotspot/share/code/relocInfo.cpp:370
            #2 0x14b28dcec671 in CodeBuffer::relocate_code_to(CodeBuffer*) const src/hotspot/share/asm/codeBuffer.cpp:799
            #3 0x14b28dcf0737 in CodeBuffer::copy_code_to(CodeBlob*) src/hotspot/share/asm/codeBuffer.cpp:736
            #4 0x14b28f6c38a0 in CodeBuffer::copy_code_and_locs_to(CodeBlob*) src/hotspot/share/asm/codeBuffer.hpp:707
            #5 0x14b28f6c38a0 in nmethod::nmethod(Method*, CompilerType, int, int, int, int, unsigned char*, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, CompLevel, char*, int, JVMCINMethodData*) src/hotspot/share/code/nmethod.cpp:1529
            #6 0x14b28f6c4de4 in nmethod::new_nmethod(methodHandle const&, int, int, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, CompLevel, char*, int, JVMCINMethodData*) src/hotspot/share/code/nmethod.cpp:1187
            #7 0x14b28db0770b in ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, bool, int, RTMState) src/hotspot/share/ci/ciEnv.cpp:1119
            #8 0x14b28d6d4df1 in Compilation::install_code(int) src/hotspot/share/c1/c1_Compilation.cpp:426
            #9 0x14b28d6dac94 in Compilation::compile_method() src/hotspot/share/c1/c1_Compilation.cpp:488
            #10 0x14b28d6db61a in Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*) src/hotspot/share/c1/c1_Compilation.cpp:609
            #11 0x14b28d6deb08 in Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) src/hotspot/share/c1/c1_Compiler.cpp:260
            #12 0x14b28ddcc024 in CompileBroker::invoke_compiler_on_method(CompileTask*) src/hotspot/share/compiler/compileBroker.cpp:2303
            #13 0x14b28ddce5d6 in CompileBroker::compiler_thread_loop() src/hotspot/share/compiler/compileBroker.cpp:1961
           ... (rest of output omitted)

              kvn Vladimir Kozlov
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: