Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddressSanitizer/common/kernel-filter.cpp failing on PVC due to segfault #16751

Open
ayylol opened this issue Jan 23, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ayylol
Copy link
Contributor

ayylol commented Jan 23, 2025

Describe the bug

Command Output (stdout):
--
# RUN: at line 2
/__w/llvm/llvm/toolchain/bin//clang++  -Werror -fsycl -fsycl-targets=spir64  /__w/llvm/llvm/llvm/sycl/test-e2e/AddressSanitizer/common/kernel-filter.cpp -Xarch_device -fsanitize=address -O2 -fsanitize-ignorelist=/__w/llvm/llvm/llvm/sycl/test-e2e/AddressSanitizer/common/ignorelist.txt -o /__w/llvm/llvm/build-e2e/AddressSanitizer/common/Output/kernel-filter.cpp.tmp1
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/AddressSanitizer/common/kernel-filter.cpp -Xarch_device -fsanitize=address -O2 -fsanitize-ignorelist=/__w/llvm/llvm/llvm/sycl/test-e2e/AddressSanitizer/common/ignorelist.txt -o /__w/llvm/llvm/build-e2e/AddressSanitizer/common/Output/kernel-filter.cpp.tmp1
# note: command had no output on stdout or stderr
# RUN: at line 3
env ONEAPI_DEVICE_SELECTOR=level_zero:gpu  /__w/llvm/llvm/build-e2e/AddressSanitizer/common/Output/kernel-filter.cpp.tmp1 2>&1 | /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/AddressSanitizer/common/kernel-filter.cpp
# executed command: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/AddressSanitizer/common/Output/kernel-filter.cpp.tmp1
# note: command had no output on stdout or stderr
# error: command failed with exit status: -6
# executed command: /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/AddressSanitizer/common/kernel-filter.cpp
# .---command stderr------------
# | /__w/llvm/llvm/llvm/sycl/test-e2e/AddressSanitizer/common/kernel-filter.cpp:48:12: error: CHECK: expected string not found in input
# |  // CHECK: PASS
# |            ^
# | <stdin>:1:1: note: scanning from here
# | ==== DeviceSanitizer: ASAN
# | ^
# | <stdin>:1:9: note: possible intended match here
# | ==== DeviceSanitizer: ASAN
# |         ^
# | 
# | Input file: <stdin>
# | Check file: /__w/llvm/llvm/llvm/sycl/test-e2e/AddressSanitizer/common/kernel-filter.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ==== DeviceSanitizer: ASAN 
# | check:48'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:48'1             ?                   possible intended match
# |             2: Segmentation fault from GPU at 0xff00080000200000, ctx_id: 1 (CCS) type: 0 (NotPresent), level: 3 (PML4), access: 0 (Read), banned: 0, aborting. 
# | check:48'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3: Segmentation fault from GPU at 0xff00080000200000, ctx_id: 1 (CCS) type: 0 (NotPresent), level: 3 (PML4), access: 0 (Read), banned: 0, aborting. 
# | check:48'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4: Abort was called at 269 line in file: 
# | check:48'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5: ../../neo/shared/source/os_interface/linux/drm_neo.cpp 
# | check:48'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

Spotted on precommit CI:
https://github.com/intel/llvm/actions/runs/12917437879/job/36024293782?pr=16563

Note: Different issue from #16405 Since this is running on a level_zero gpu, and the test fails from a segfault from the gpu rather than failing to reserve shadow memory.

To reproduce

  1. Include a code snippet that is as short as possible
  2. Specify the command which should be used to compile the program
  3. Specify the command which should be used to launch the program
  4. Indicate what is wrong and what was expected

Environment

  • OS: [e.g Windows/Linux]
  • Target device and vendor: [e.g. Intel GPU]
  • DPC++ version: [e.g. commit hash or output of clang++ --version]
  • Dependencies version: [e.g. the output of sycl-ls --verbose]

Additional context

No response

@ayylol ayylol added the bug Something isn't working label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant