JDK-8351233 : [ASAN] avx2-emu-funcs.hpp:151:20: error: ‘D.82188’ is used uninitialized
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 24,25
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2025-03-05
  • Updated: 2025-03-30
  • Resolved: 2025-03-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 masterFixed
Related Reports
Relates :  
Description
=== Output from failing command(s) repeated here ===
* For target support_native_java.base_libsimdsort_avx2-linux-qsort.o:
In file included from src/java.base/linux/native/libsimdsort/avx2-32bit-qsort.hpp:31,
                 from src/java.base/linux/native/libsimdsort/avx2-linux-qsort.cpp:29:
In function ‘int avx2_double_compressstore32(void*, void*, typename avx2_vector<T>::opmask_t, typename avx2_vector<T>::reg_t) [with T = int]’,
    inlined from ‘static int avx2_vector<int>::double_compressstore(type_t*, type_t*, opmask_t, reg_t)’ at src/java.base/linux/native/libsimdsort/avx2-32bit-qsort.hpp:180:51,
    inlined from ‘arrsize_t partition_vec(type_t*, type_t*, reg_t, reg_t, reg_t&, reg_t&, bool) [with vtype = avx2_vector<int>; type_t = int; reg_t = __vector(4) long long int]’ at src/java.base/linux/native/libsimdsort/xss-common-qsort.h:132:36:
src/java.base/linux/native/libsimdsort/avx2-emu-funcs.hpp:151:20: error: ‘D.82188’ is used uninitialized [-Werror=uninitialized]
  151 |     const __m256i &perm = _mm256_loadu_si256(
      |                    ^~~~
src/java.base/linux/native/libsimdsort/avx2-emu-funcs.hpp:151:20: note: ‘D.82188’ was declared here
  151 |     const __m256i &perm = _mm256_loadu_si256(
      |                    ^~~~
In function ‘int avx2_double_compressstore32(void*, void*, typename avx2_vector<T>::opmask_t, typename avx2_vector<T>::reg_t) [with T = int]’,
    inlined from ‘static int avx2_vector<int>::double_compressstore(type_t*, type_t*, opmask_t, reg_t)’ at src/java.base/linux/native/libsimdsort/avx2-32bit-qsort.hpp:180:51,
    inlined from ‘arrsize_t partition_vec(type_t*, type_t*, reg_t, reg_t, reg_t&, reg_t&, bool) [with vtype = avx2_vector<int>; type_t = int; reg_t = __vector(4) long long int]’ at src/java.base/linux/native/libsimdsort/xss-common-qsort.h:132:36,
    inlined from ‘arrsize_t partition_avx512(type_t*, arrsize_t, arrsize_t, type_t, type_t*, type_t*, bool) [with vtype = avx2_vector<int>; type_t = int]’ at src/java.base/linux/native/libsimdsort/xss-common-qsort.h:210:33:
   ... (rest of output omitted)
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk24u/pull/164 Date: 2025-03-30 13:12:47 +0000
30-03-2025

Changeset: 895aabc4 Branch: master Author: SendaoYan <syan@openjdk.org> Date: 2025-03-30 13:05:31 +0000 URL: https://git.openjdk.org/jdk/commit/895aabc4632a0b5e245aeceb6c2dcdb4b07f640e
30-03-2025

Standalone reproduce command: /home/yansendao/software/gcc/gcc-14.2.0-binary/bin/g++ -MMD -MF build/linux-x86_64-server-fastdebug/support/native/java.base/libsimdsort/avx2-linux-qsort.d.tmp -fpch-preprocess -fvisibility=hidden -pipe -fstack-protector -DLIBC=gnu -D_GNU_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLINUX -DDEBUG -ftrivial-auto-var-init=pattern -g -gdwarf-4 -std=c++14 -Wall -Wextra -Wformat=2 -Winvalid-pch -Wpointer-arith -Wreturn-type -Wsign-compare -Wtrampolines -Wtype-limits -Wundef -Wuninitialized -Wunused-const-variable=1 -Wunused-function -Wunused-result -Wunused-value -Woverloaded-virtual -Wreorder -m64 -D_LITTLE_ENDIAN -DARCH='"amd64"' -Damd64 -D_LP64=1 -fno-omit-frame-pointer -fno-lifetime-dse -fPIC -fsanitize=address -Wno-stringop-truncation -fno-omit-frame-pointer -fno-common -DADDRESS_SANITIZER --param asan-use-after-return=0 -fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment -Wno-stringop-truncation -Wno-format-overflow -Wno-array-bounds -Wno-stringop-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER -fsanitize=leak -fno-omit-frame-pointer -DLEAK_SANITIZER -std=c++17 -Isrc/java.base/linux/native/libsimdsort -Ibuild/linux-x86_64-server-fastdebug/support/headers/java.base -Ibuild/linux-x86_64-server-fastdebug/support/modules_include/java.base -Isrc/java.base/unix/native/include -Isrc/java.base/share/native/include -g -gdwarf-4 -Wno-unused-parameter -Wno-unused-variable -Werror -O2 -D_FORTIFY_SOURCE=2 -c src/java.base/linux/native/libsimdsort/avx2-linux-qsort.cpp -frandom-seed="avx2-linux-qsort.cpp"
06-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23925 Date: 2025-03-06 03:35:20 +0000
06-03-2025