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

[asan] jdk/incubator/vector tests show failures on Linux aarch64

XMLWordPrintable

    • aarch64
    • linux

      When running with ASAN (address sanitizer) enabled binaries, the following issues are reported.
      Test
      jdk/incubator/vector/Double128VectorTests.java

      ----------System.err:(71/4972)----------
      WARNING: Using incubator modules: jdk.incubator.vector
      =================================================================
      ==1658847==ERROR: AddressSanitizer: global-buffer-overflow on address 0xffff6433aaa0 at pc 0xffff6432f1b8 bp 0xffff7f499480 sp 0xffff7f499470
      READ of size 8 at 0xffff6433aaa0 thread T21
          #0 0xffff6432f1b4 in vgather_vd_p_vi_advsimd_sleef src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:1193
          #1 0xffff6432f1b4 in rempi_advsimd_sleef src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:2300
          #2 0xffff6432f1b4 in Sleef_cosd2_u10advsimd src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:2521
          #3 0xffff6432f1b4 in cosd2_u10advsimd src/jdk.incubator.vector/unix/native/libsleef/lib/vector_math_neon.c:69
          #4 0xffff8a181fb0 (<unknown module>)

      0xffff6433aaa0 is located 0 bytes after global variable 'Sleef_rempitabdp' defined in '/priv/jenkins/client-home/workspace/openjdk-jdk-weekly-linux_aarch64-opt/jdk/src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:43:21' (0xffff64333180) of size 31008
      SUMMARY: AddressSanitizer: global-buffer-overflow src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:1193 in vgather_vd_p_vi_advsimd_sleef
      Shadow bytes around the buggy address:
        0xffff6433a800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff6433a880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff6433a900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff6433a980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff6433aa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      =>0xffff6433aa80: 00 00 00 00[f9]f9 f9 f9 00 00 00 00 00 00 00 00
        0xffff6433ab00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff6433ab80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff6433ac00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff6433ac80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff6433ad00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      Shadow byte legend (one shadow byte represents 8 application bytes):
        Addressable: 00
        Partially addressable: 01 02 03 04 05 06 07
        Heap left redzone: fa
        Freed heap region: fd
        Stack left redzone: f1
        Stack mid redzone: f2
        Stack right redzone: f3
        Stack after return: f5
        Stack use after scope: f8
        Global redzone: f9
        Global init order: f6
        Poisoned by user: f7
        Container overflow: fc
        Array cookie: ac
        Intra object redzone: bb
        ASan internal: fe
        Left alloca redzone: ca
        Right alloca redzone: cb
      Thread T21 created by T1 here:
          #0 0xffff9dce03a8 in pthread_create (/lib64/libasan.so.8+0xe03a8) (BuildId: 61a71aeb8ea98ad2fa45a6d256b68580b437e1dc)
          #1 0xffff997f9030 in os::create_thread(Thread*, os::ThreadType, unsigned long) src/hotspot/os/linux/os_linux.cpp:1061
          #2 0xffff98ee290c in JVM_StartThread src/hotspot/share/prims/jvm.cpp:2811
          #3 0xffff8a00886c (<unknown module>)
          #4 0xffff8a004aa4 (<unknown module>)
          #5 0xffff8a004aa4 (<unknown module>)
          #6 0xffff8a000150 (<unknown module>)
          #7 0xffff98c0e994 in JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) src/hotspot/share/runtime/javaCalls.cpp:415
          #8 0xffff98e4f270 in jni_invoke_static src/hotspot/share/prims/jni.cpp:883
          #9 0xffff98e54a7c in jni_CallStaticVoidMethod src/hotspot/share/prims/jni.cpp:1712
          #10 0xffff9e48ce90 in invokeStaticMainWithArgs src/java.base/share/native/libjli/java.c:392
          #11 0xffff9e48fb0c in JavaMain src/java.base/share/native/libjli/java.c:640
          #12 0xffff9e4943c8 in ThreadJavaMain src/java.base/unix/native/libjli/java_md.c:646
          #13 0xffff9dc6491c in asan_thread_start(void*) (/lib64/libasan.so.8+0x6491c) (BuildId: 61a71aeb8ea98ad2fa45a6d256b68580b437e1dc)
          #14 0xffff9db3d118 in thread_start (/lib64/libc.so.6+0xeb118) (BuildId: d87fb8067db29fc51790b520a7ea68db629449bb)

      Thread T1 created by T0 here:
          #0 0xffff9dce03a8 in pthread_create (/lib64/libasan.so.8+0xe03a8) (BuildId: 61a71aeb8ea98ad2fa45a6d256b68580b437e1dc)
          #1 0xffff9e4956c4 in CallJavaMainInNewThread src/java.base/unix/native/libjli/java_md.c:687
          #2 0xffff9e491f34 in ContinueInNewThread src/java.base/share/native/libjli/java.c:2340
          #3 0xffff9e492d34 in JLI_Launch src/java.base/share/native/libjli/java.c:330
          #4 0xaaaaabac11a4 in main src/java.base/share/native/launcher/main.c:150
          #5 0xffff9da7933c in __libc_start_call_main (/lib64/libc.so.6+0x2733c) (BuildId: d87fb8067db29fc51790b520a7ea68db629449bb)
          #6 0xffff9da79414 in __libc_start_main_impl (/lib64/libc.so.6+0x27414) (BuildId: d87fb8067db29fc51790b520a7ea68db629449bb)
          #7 0xaaaaabac12a8 (/priv/jvmtests/output_openjdk26_weekly_optU_linuxaarch64/testee-vm/bin/java+0x12a8)


      jdk/incubator/vector/Float128VectorTests.java


      WARNING: Using incubator modules: jdk.incubator.vector
      =================================================================
      ==1662990==ERROR: AddressSanitizer: global-buffer-overflow on address 0xffff7c2fe150 at pc 0xffff7c2f7a5c bp 0xffff975aa480 sp 0xffff975aa470
      READ of size 4 at 0xffff7c2fe150 thread T21
          #0 0xffff7c2f7a58 in vgather_vf_p_vi2_advsimd_sleef src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:1200
          #1 0xffff7c2f7a58 in rempif_advsimd_sleef src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:4803
          #2 0xffff7c2f7a58 in Sleef_cosf4_u10advsimd src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:5034
          #3 0xffff7c2f7a58 in cosf4_u10advsimd src/jdk.incubator.vector/unix/native/libsleef/lib/vector_math_neon.c:53
          #4 0xffffa23857ac (<unknown module>)

      0xffff7c2fe150 is located 48 bytes before global variable 'Sleef_rempitabdp' defined in '/priv/jenkins/client-home/workspace/openjdk-jdk-weekly-linux_aarch64-opt/jdk/src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:43:21' (0xffff7c2fe180) of size 31008
      0xffff7c2fe150 is located 0 bytes after global variable 'Sleef_rempitabsp' defined in '/priv/jenkins/client-home/workspace/openjdk-jdk-weekly-linux_aarch64-opt/jdk/src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:1015:20' (0xffff7c2fdae0) of size 1648
      SUMMARY: AddressSanitizer: global-buffer-overflow src/jdk.incubator.vector/unix/native/libsleef/lib/../generated/sleefinline_advsimd.h:1200 in vgather_vf_p_vi2_advsimd_sleef
      Shadow bytes around the buggy address:
        0xffff7c2fde80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff7c2fdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff7c2fdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff7c2fe000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff7c2fe080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      =>0xffff7c2fe100: 00 00 00 00 00 00 00 00 00 00[f9]f9 f9 f9 f9 f9
        0xffff7c2fe180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff7c2fe200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff7c2fe280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff7c2fe300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0xffff7c2fe380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      Shadow byte legend (one shadow byte represents 8 application bytes):
        Addressable: 00
        Partially addressable: 01 02 03 04 05 06 07
        Heap left redzone: fa
        Freed heap region: fd
        Stack left redzone: f1
        Stack mid redzone: f2
        Stack right redzone: f3
        Stack after return: f5
        Stack use after scope: f8
        Global redzone: f9
        Global init order: f6
        Poisoned by user: f7
        Container overflow: fc
        Array cookie: ac
        Intra object redzone: bb
        ASan internal: fe
        Left alloca redzone: ca
        Right alloca redzone: cb
      Thread T21 created by T1 here:
          #0 0xffffb5ee03a8 in pthread_create (/lib64/libasan.so.8+0xe03a8) (BuildId: 61a71aeb8ea98ad2fa45a6d256b68580b437e1dc)
          #1 0xffffb19f9030 in os::create_thread(Thread*, os::ThreadType, unsigned long) src/hotspot/os/linux/os_linux.cpp:1061
          #2 0xffffb10e290c in JVM_StartThread src/hotspot/share/prims/jvm.cpp:2811
          #3 0xffffa220886c (<unknown module>)
          #4 0xffffa2204aa4 (<unknown module>)
          #5 0xffffa2204aa4 (<unknown module>)
          #6 0xffffa2200150 (<unknown module>)
          #7 0xffffb0e0e994 in JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) src/hotspot/share/runtime/javaCalls.cpp:415
          #8 0xffffb104f270 in jni_invoke_static src/hotspot/share/prims/jni.cpp:883
          #9 0xffffb1054a7c in jni_CallStaticVoidMethod src/hotspot/share/prims/jni.cpp:1712
          #10 0xffffb6591e90 in invokeStaticMainWithArgs src/java.base/share/native/libjli/java.c:392
          #11 0xffffb6594b0c in JavaMain src/java.base/share/native/libjli/java.c:640
          #12 0xffffb65993c8 in ThreadJavaMain src/java.base/unix/native/libjli/java_md.c:646
          #13 0xffffb5e6491c in asan_thread_start(void*) (/lib64/libasan.so.8+0x6491c) (BuildId: 61a71aeb8ea98ad2fa45a6d256b68580b437e1dc)
          #14 0xffffb5d3d118 in thread_start (/lib64/libc.so.6+0xeb118) (BuildId: d87fb8067db29fc51790b520a7ea68db629449bb)

      Thread T1 created by T0 here:
          #0 0xffffb5ee03a8 in pthread_create (/lib64/libasan.so.8+0xe03a8) (BuildId: 61a71aeb8ea98ad2fa45a6d256b68580b437e1dc)
          #1 0xffffb659a6c4 in CallJavaMainInNewThread src/java.base/unix/native/libjli/java_md.c:687
          #2 0xffffb6596f34 in ContinueInNewThread src/java.base/share/native/libjli/java.c:2340
          #3 0xffffb6597d34 in JLI_Launch src/java.base/share/native/libjli/java.c:330
          #4 0xaaaac8b011a4 in main src/java.base/share/native/launcher/main.c:150
          #5 0xffffb5c7933c in __libc_start_call_main (/lib64/libc.so.6+0x2733c) (BuildId: d87fb8067db29fc51790b520a7ea68db629449bb)
          #6 0xffffb5c79414 in __libc_start_main_impl (/lib64/libc.so.6+0x27414) (BuildId: d87fb8067db29fc51790b520a7ea68db629449bb)
          #7 0xaaaac8b012a8 (/priv/jvmtests/output_openjdk26_weekly_optU_linuxaarch64/testee-vm/bin/java+0x12a8)

      ==1662990==ABORTING

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

              Created:
              Updated: