CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
79 lines
3.8 KiB
Plaintext
79 lines
3.8 KiB
Plaintext
# This test uses the local debuginfod cache to test the symbolizer integration
|
|
# with the debuginfod client.
|
|
RUN: rm -rf %t
|
|
RUN: mkdir %t
|
|
|
|
# Produce a stripped copy of the input binary addr.exe
|
|
RUN: llvm-objcopy --strip-debug %p/Inputs/addr.exe %t/addr.exe
|
|
|
|
# Symbolizing the stripped binary should fail.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer --print-address \
|
|
RUN: --obj=%t/addr.exe 0x40054d | FileCheck %s --check-prefix=NOTFOUND
|
|
NOTFOUND: 0x40054d
|
|
NOTFOUND-NEXT: main
|
|
NOTFOUND-NEXT: ??:0:0
|
|
|
|
# Use llvm-objcopy to write the debuginfo of the addr.exe binary to an
|
|
# appropriately-named file in the llvm debuginfod cache. The filename is
|
|
# determined by the debuginfod client's caching scheme, so it is manually
|
|
# specified here as llvmcache-\d+
|
|
RUN: llvm-objcopy --keep-section=.debug_info %p/Inputs/addr.exe \
|
|
RUN: %t/llvmcache-1165050469834211050
|
|
|
|
# The symbolizer should call the debuginfod client library, which finds the
|
|
# debuginfo placed in the cache, enabling symbolization of the address.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: --obj=%t/addr.exe 0x40054d --debuginfod | \
|
|
RUN: FileCheck %s --check-prefix=FOUND
|
|
FOUND: {{[/\]+}}tmp{{[/\]+}}x.c:14:0
|
|
|
|
# This should also work if the build ID is provided via flag.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: --build-id=127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d | \
|
|
RUN: FileCheck %s --check-prefix=FOUND
|
|
|
|
# This should also work if the build ID is provided via stdin.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: "BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d" | \
|
|
RUN: FileCheck %s --check-prefix=FOUND
|
|
|
|
# Passing BUILDID twice is a syntax error.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: "BUILDID:BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d" 2>&1 | \
|
|
RUN: FileCheck %s --check-prefix=BUILDIDBUILDID
|
|
BUILDIDBUILDID: error: 'BUILDID:BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d': duplicate input file specification prefix
|
|
|
|
# CODE should work preceding build ID.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: "CODE BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d" | \
|
|
RUN: FileCheck %s --check-prefix=FOUND
|
|
|
|
# The symbolizer shouldn't call the debuginfod library by default with no URLs.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer --print-address \
|
|
RUN: --obj=%t/addr.exe 0x40054d | FileCheck %s --check-prefix=NOTFOUND
|
|
|
|
# The symbolizer shouldn't call the debuginfod library if explicitly disabled.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: --no-debuginfod \
|
|
RUN: "BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d" | \
|
|
RUN: FileCheck %s --check-prefix=NOTHINGFOUND
|
|
NOTHINGFOUND: ??
|
|
NOTHINGFOUND-NEXT: ??:0:0
|
|
|
|
# BUILDID shouldn't be parsed if --obj is given, just like regular filenames.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: --obj=%t/addr.exe \
|
|
RUN: "BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d" 2>&1 | \
|
|
RUN: FileCheck %s --check-prefix=BUILDIDIGNORED
|
|
BUILDIDIGNORED: error: 'BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d': input file has already been specified
|
|
|
|
# Providing both BUILDID and FILE is a syntax error.
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: "BUILDID:FILE:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d" 2>&1 | \
|
|
RUN: FileCheck %s --check-prefix=BUILDIDFILE
|
|
BUILDIDFILE: error: 'BUILDID:FILE:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d': duplicate input file specification prefix
|
|
RUN: env DEBUGINFOD_CACHE_PATH=%t llvm-symbolizer \
|
|
RUN: "FILE:BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d" 2>&1 | \
|
|
RUN: FileCheck %s --check-prefix=FILEBUILDID
|
|
FILEBUILDID: error: 'FILE:BUILDID:127da749021c1fc1a58cba734a1f542cbe2b7ce4 0x40054d': duplicate input file specification prefix
|