Problem Description
I am building with -DTHEROCK_ENABLE_PROFILER=OFF and -DTHEROCK_SANITIZER=ASAN (among others). I am seeing failures reported in roctracer_build.log. Here is where they start:
30.7 [37/54] Building C object test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o
30.8 [38/54] Linking HIP executable test/MatrixTranspose_ctest
30.8 FAILED: test/MatrixTranspose_ctest
30.8 : && /therock/build/core/clr/dist/bin/hipcc_cmake_linker_helper /work1/bsumner/git/therock/build/core/clr/dist/lib/llvm/bin -L/therock/build/third-party/sysdeps/linux/zlib/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/zlib/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/zstd/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/zstd/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/numactl/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/numactl/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/bzip2/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/bzip2/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/liblzma/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/liblzma/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/elfutils/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/elfutils/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/libdrm/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/libdrm/build/stage/lib/rocm_sysdeps/lib -L/therock/build/compiler/amd-llvm/stage/lib/llvm/lib -Wl,-rpath-link,/therock/build/compiler/amd-llvm/stage/lib/llvm/lib -L/therock/build/compiler/amd-comgr/stage/lib -Wl,-rpath-link,/therock/build/compiler/amd-comgr/stage/lib -L/therock/build/core/rocm-kpack/stage/lib -Wl,-rpath-link,/therock/build/core/rocm-kpack/stage/lib -L/therock/build/base/rocprofiler-register/stage/lib -Wl,-rpath-link,/therock/build/base/rocprofiler-register/stage/lib -L/therock/build/core/ROCR-Runtime/stage/lib -Wl,-rpath-link,/therock/build/core/ROCR-Runtime/stage/lib -L/therock/build/core/clr/stage/lib -Wl,-rpath-link,/therock/build/core/clr/stage/lib -Wl,--build-id=md5 test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o -o test/MatrixTranspose_ctest -L/therock/build/third-party/sysdeps/linux/zlib/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/zstd/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/numactl/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/bzip2/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/liblzma/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/elfutils/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/libdrm/build/stage/lib/rocm_sysdeps/lib -L/therock/build/compiler/amd-llvm/stage/lib/llvm/lib -L/therock/build/compiler/amd-comgr/stage/lib -L/therock/build/core/rocm-kpack/stage/lib -L/therock/build/base/rocprofiler-register/stage/lib -L/therock/build/core/ROCR-Runtime/stage/lib -L/therock/build/core/clr/stage/lib -L/therock/build/core/clr/dist/lib/llvm/lib/clang/23/lib/x86_64-unknown-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/14 -Wl,-rpath,/work1/bsumner/git/therock/build/core/clr/dist/lib/llvm/lib/clang/23/lib/linux:/therock/build/profiler/roctracer/build:/therock/build/core/ROCR-Runtime/dist/lib: libroctracer64.so.4.1.0 libroctx64.so.4.1.0 -lpthread -lrt -lm -ldl -lresolv -lgcc_s -lc -lgcc_s -Wl,-rpath-link,/therock/build/core/ROCR-Runtime/dist/lib && :
30.8 ld.lld: error: undefined symbol: __asan_option_detect_stack_use_after_return
30.8 >>> referenced by MatrixTranspose.c:46 (test/MatrixTranspose.c:46)
30.8 >>> test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o:(SPRINT)
30.8 >>> referenced by MatrixTranspose.c:322 (test/MatrixTranspose.c:322)
30.8 >>> test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o:(activity_callback)
30.8 >>> referenced by MatrixTranspose.c:353 (test/MatrixTranspose.c:353)
30.8 >>> test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o:(init_tracing)
30.8
Something in this executable must be instrumented, so we should have -fsanitize=address -shared-libsan on the command line.
Operating System
Ubuntu 24.04.4 LTS
CPU
Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz
GPU
N/A
ROCm Version
N/A
ROCm Component
No response
Steps to Reproduce
cmake
-B build
-GNinja
-DFLANG_PARALLEL_COMPILE_JOBS=8
-DLLVM_PARALLEL_LINK_JOBS=2
-DTHEROCK_ENABLE_COMM_LIBS=OFF
-DTHEROCK_ENABLE_MATH_LIBS=OFF
-DTHEROCK_ENABLE_ML_LIBS=OFF
-DTHEROCK_ENABLE_MPI=OFF
-DTHEROCK_BUILD_TESTING=OFF
-DTHEROCK_ENABLE_PROFILER=OFF
-DTHEROCK_AMDGPU_FAMILIES=gfx90a
-DTHEROCK_ENABLE_ROCGDB=ON
-DROCR-Runtime_BUILD_TYPE=Debug
-Dhip-clr_BUILD_TYPE=Debug
-Docl-clr_BUILD_TYPE=Debug
-Drocprofiler-register_BUILD_TYPE=Debug
-Damd-comgr_BUILD_TYPE=Debug
-DTHEROCK_SANITIZER=ASAN
-DTHEROCK_COMPILER_RT_DEBUG=ON
.
cmake --build build
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
Problem Description
I am building with -DTHEROCK_ENABLE_PROFILER=OFF and -DTHEROCK_SANITIZER=ASAN (among others). I am seeing failures reported in roctracer_build.log. Here is where they start:
30.7 [37/54] Building C object test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o
30.8 [38/54] Linking HIP executable test/MatrixTranspose_ctest
30.8 FAILED: test/MatrixTranspose_ctest
30.8 : && /therock/build/core/clr/dist/bin/hipcc_cmake_linker_helper /work1/bsumner/git/therock/build/core/clr/dist/lib/llvm/bin -L/therock/build/third-party/sysdeps/linux/zlib/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/zlib/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/zstd/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/zstd/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/numactl/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/numactl/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/bzip2/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/bzip2/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/liblzma/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/liblzma/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/elfutils/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/elfutils/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/libdrm/build/stage/lib/rocm_sysdeps/lib -Wl,-rpath-link,/therock/build/third-party/sysdeps/linux/libdrm/build/stage/lib/rocm_sysdeps/lib -L/therock/build/compiler/amd-llvm/stage/lib/llvm/lib -Wl,-rpath-link,/therock/build/compiler/amd-llvm/stage/lib/llvm/lib -L/therock/build/compiler/amd-comgr/stage/lib -Wl,-rpath-link,/therock/build/compiler/amd-comgr/stage/lib -L/therock/build/core/rocm-kpack/stage/lib -Wl,-rpath-link,/therock/build/core/rocm-kpack/stage/lib -L/therock/build/base/rocprofiler-register/stage/lib -Wl,-rpath-link,/therock/build/base/rocprofiler-register/stage/lib -L/therock/build/core/ROCR-Runtime/stage/lib -Wl,-rpath-link,/therock/build/core/ROCR-Runtime/stage/lib -L/therock/build/core/clr/stage/lib -Wl,-rpath-link,/therock/build/core/clr/stage/lib -Wl,--build-id=md5 test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o -o test/MatrixTranspose_ctest -L/therock/build/third-party/sysdeps/linux/zlib/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/zstd/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/numactl/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/bzip2/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/liblzma/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/elfutils/build/stage/lib/rocm_sysdeps/lib -L/therock/build/third-party/sysdeps/linux/libdrm/build/stage/lib/rocm_sysdeps/lib -L/therock/build/compiler/amd-llvm/stage/lib/llvm/lib -L/therock/build/compiler/amd-comgr/stage/lib -L/therock/build/core/rocm-kpack/stage/lib -L/therock/build/base/rocprofiler-register/stage/lib -L/therock/build/core/ROCR-Runtime/stage/lib -L/therock/build/core/clr/stage/lib -L/therock/build/core/clr/dist/lib/llvm/lib/clang/23/lib/x86_64-unknown-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/14 -Wl,-rpath,/work1/bsumner/git/therock/build/core/clr/dist/lib/llvm/lib/clang/23/lib/linux:/therock/build/profiler/roctracer/build:/therock/build/core/ROCR-Runtime/dist/lib: libroctracer64.so.4.1.0 libroctx64.so.4.1.0 -lpthread -lrt -lm -ldl -lresolv -lgcc_s -lc -lgcc_s -Wl,-rpath-link,/therock/build/core/ROCR-Runtime/dist/lib && :
30.8 ld.lld: error: undefined symbol: __asan_option_detect_stack_use_after_return
30.8 >>> referenced by MatrixTranspose.c:46 (test/MatrixTranspose.c:46)
30.8 >>> test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o:(SPRINT)
30.8 >>> referenced by MatrixTranspose.c:322 (test/MatrixTranspose.c:322)
30.8 >>> test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o:(activity_callback)
30.8 >>> referenced by MatrixTranspose.c:353 (test/MatrixTranspose.c:353)
30.8 >>> test/CMakeFiles/MatrixTranspose_ctest.dir/MatrixTranspose.c.o:(init_tracing)
30.8
Something in this executable must be instrumented, so we should have -fsanitize=address -shared-libsan on the command line.
Operating System
Ubuntu 24.04.4 LTS
CPU
Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz
GPU
N/A
ROCm Version
N/A
ROCm Component
No response
Steps to Reproduce
cmake
-B build
-GNinja
-DFLANG_PARALLEL_COMPILE_JOBS=8
-DLLVM_PARALLEL_LINK_JOBS=2
-DTHEROCK_ENABLE_COMM_LIBS=OFF
-DTHEROCK_ENABLE_MATH_LIBS=OFF
-DTHEROCK_ENABLE_ML_LIBS=OFF
-DTHEROCK_ENABLE_MPI=OFF
-DTHEROCK_BUILD_TESTING=OFF
-DTHEROCK_ENABLE_PROFILER=OFF
-DTHEROCK_AMDGPU_FAMILIES=gfx90a
-DTHEROCK_ENABLE_ROCGDB=ON
-DROCR-Runtime_BUILD_TYPE=Debug
-Dhip-clr_BUILD_TYPE=Debug
-Docl-clr_BUILD_TYPE=Debug
-Drocprofiler-register_BUILD_TYPE=Debug
-Damd-comgr_BUILD_TYPE=Debug
-DTHEROCK_SANITIZER=ASAN
-DTHEROCK_COMPILER_RT_DEBUG=ON
.
cmake --build build
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response