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

[asan] test/jdk/tools/jpackage/share tests show leaks

XMLWordPrintable

    • generic
    • linux

      When running ASAN enabled binaries on Linux x86_64 and ppc64le ,
      some test/jdk/tools/jpackage/share show leak related issues.
      Example :
      test/jdk/tools/jpackage/share/RuntimeImageTest.java


      ==36131==AddressSanitizer: WARNING: unexpected format specifier in printf interceptor: %{ (reported once per process)

      =================================================================
      ==36131==ERROR: LeakSanitizer: detected memory leaks

      Direct leak of 73728 byte(s) in 1 object(s) allocated from:
          #0 0x14bd7aa922b7 in malloc (/usr/lib64/libasan.so.8+0xf72b7) (BuildId: 4ee117fa2a132af1da9f17a0a5fe1f888398d50f)
          #1 0x14bd7758174d (<unknown module>)

      SUMMARY: AddressSanitizer: 73728 byte(s) leaked in 1 allocation(s).

      =================================================================
      ==36130==ERROR: LeakSanitizer: detected memory leaks

      Direct leak of 10504 byte(s) in 89 object(s) allocated from:
          #0 0x14bd7aa922b7 in malloc (/usr/lib64/libasan.so.8+0xf72b7) (BuildId: 4ee117fa2a132af1da9f17a0a5fe1f888398d50f)
          #1 0x14bd75abd877 in os::malloc(unsigned long, MemTag, NativeCallStack const&) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x3142877)
          #2 0x14bd7347979b in AllocateHeap(unsigned long, MemTag, AllocFailStrategy::AllocFailEnum) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xafe79b)
          #3 0x14bd75a9ac5a in ImmutableOopMapSet::build_from(OopMapSet const*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x311fc5a)
          #4 0x14bd73e7ffe5 in CodeBlob::CodeBlob(char const*, CodeBlobKind, CodeBuffer*, int, unsigned short, short, int, OopMapSet*, bool, int) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x1504fe5)
          #5 0x14bd759e5652 in nmethod::nmethod(Method*, CompilerType, int, int, int, int, int, unsigned char*, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, CompLevel, char*, int, JVMCINMethodData*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x306a652)
          #6 0x14bd759e6e43 in nmethod::new_nmethod(methodHandle const&, int, int, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, CompLevel, char*, int, JVMCINMethodData*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x306be43)
          #7 0x14bd73cf07ae in ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, bool, bool, int) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x13757ae)
          #8 0x14bd7393b36e in Compilation::install_code(int) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc036e)
          #9 0x14bd739413ce in Compilation::compile_method() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc63ce)
          #10 0x14bd73942082 in Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc7082)
          #11 0x14bd73944598 in Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc9598)
          #12 0x14bd73f6d787 in CompileBroker::invoke_compiler_on_method(CompileTask*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x15f2787)
          #13 0x14bd73f726a7 in CompileBroker::compiler_thread_loop() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x15f76a7)
          #14 0x14bd74b70672 in JavaThread::thread_main_inner() [clone .part.0] (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x21f5672)
          #15 0x14bd74b8581f in JavaThread::run() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x220a81f)
          #16 0x14bd76621f7f in Thread::call_run() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x3ca6f7f)
          #17 0x14bd75ad85f2 in thread_native_entry(Thread*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x315d5f2)
          #18 0x14bd7a9f9ff5 (/usr/lib64/libasan.so.8+0x5eff5) (BuildId: 4ee117fa2a132af1da9f17a0a5fe1f888398d50f)

      Direct leak of 9776 byte(s) in 89 object(s) allocated from:
          #0 0x14bd7aa922b7 in malloc (/usr/lib64/libasan.so.8+0xf72b7) (BuildId: 4ee117fa2a132af1da9f17a0a5fe1f888398d50f)
          #1 0x14bd75abd257 in os::malloc(unsigned long, MemTag) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x3142257)
          #2 0x14bd73e80025 in CodeBlob::CodeBlob(char const*, CodeBlobKind, CodeBuffer*, int, unsigned short, short, int, OopMapSet*, bool, int) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x1505025)
          #3 0x14bd759e5652 in nmethod::nmethod(Method*, CompilerType, int, int, int, int, int, unsigned char*, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, CompLevel, char*, int, JVMCINMethodData*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x306a652)
          #4 0x14bd759e6e43 in nmethod::new_nmethod(methodHandle const&, int, int, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, CompLevel, char*, int, JVMCINMethodData*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x306be43)
          #5 0x14bd73cf07ae in ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, bool, bool, int) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x13757ae)
          #6 0x14bd7393b36e in Compilation::install_code(int) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc036e)
          #7 0x14bd739413ce in Compilation::compile_method() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc63ce)
          #8 0x14bd73942082 in Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc7082)
          #9 0x14bd73944598 in Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc9598)
          #10 0x14bd73f6d787 in CompileBroker::invoke_compiler_on_method(CompileTask*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x15f2787)
          #11 0x14bd73f726a7 in CompileBroker::compiler_thread_loop() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x15f76a7)
          #12 0x14bd74b70672 in JavaThread::thread_main_inner() [clone .part.0] (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x21f5672)
          #13 0x14bd74b8581f in JavaThread::run() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x220a81f)
          #14 0x14bd76621f7f in Thread::call_run() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x3ca6f7f)
          #15 0x14bd75ad85f2 in thread_native_entry(Thread*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x315d5f2)
          #16 0x14bd7a9f9ff5 (/usr/lib64/libasan.so.8+0x5eff5) (BuildId: 4ee117fa2a132af1da9f17a0a5fe1f888398d50f)

      Direct leak of 6240 byte(s) in 60 object(s) allocated from:
          #0 0x14bd7aa922b7 in malloc (/usr/lib64/libasan.so.8+0xf72b7) (BuildId: 4ee117fa2a132af1da9f17a0a5fe1f888398d50f)
          #1 0x14bd75abd877 in os::malloc(unsigned long, MemTag, NativeCallStack const&) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x3142877)
          #2 0x14bd7347979b in AllocateHeap(unsigned long, MemTag, AllocFailStrategy::AllocFailEnum) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xafe79b)
          #3 0x14bd75929fd8 in MethodData::extra_data_lock() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x2faefd8)
          #4 0x14bd73d4545c in ciMethodData::load_remaining_extra_data() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x13ca45c)
          #5 0x14bd73d49fb4 in ciMethodData::load_data() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x13cefb4)
          #6 0x14bd73d26286 in ciMethod::ensure_method_data(methodHandle const&) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x13ab286)
          #7 0x14bd73d370a3 in ciMethod::ensure_method_data() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x13bc0a3)
          #8 0x14bd739404c0 in Compilation::compile_java_method() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc54c0)
          #9 0x14bd73941197 in Compilation::compile_method() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc6197)
          #10 0x14bd73942082 in Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc7082)
          #11 0x14bd73944598 in Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0xfc9598)
          #12 0x14bd73f6d787 in CompileBroker::invoke_compiler_on_method(CompileTask*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x15f2787)
          #13 0x14bd73f726a7 in CompileBroker::compiler_thread_loop() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x15f76a7)
          #14 0x14bd74b70672 in JavaThread::thread_main_inner() [clone .part.0] (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x21f5672)
          #15 0x14bd74b8581f in JavaThread::run() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x220a81f)
          #16 0x14bd76621f7f in Thread::call_run() (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x3ca6f7f)
          #17 0x14bd75ad85f2 in thread_native_entry(Thread*) (/myfolder/open_jdk/jdk/build_asan/test-support/jtreg_test_jdk_tier3/scratch/23/test/output/RuntimeImageTest/lib/runtime/lib/server/libjvm.so+0x315d5f2)
          #18 0x14bd7a9f9ff5 (/usr/lib64/libasan.so.8+0x5eff5) (BuildId: 4ee117fa2a132af1da9f17a0a5fe1f888398d50f)

            Unassigned Unassigned
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: