[clang] Fix libclang finding the wrong resource paths (PR #164234)

via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 15 11:40:38 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 86701 tests passed
* 1317 tests skipped
* 4 tests failed

## Failed Tests
(click on a test name to see its output)

### lldb-api
<details>
<summary>lldb-api.functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py</summary>

```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --arch x86_64 --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list -p TestDataFormatterGenericList.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 6a03cfe27d67ca724e5ad3c4ea68cd718344d159)
  clang revision 6a03cfe27d67ca724e5ad3c4ea68cd718344d159
  llvm revision 6a03cfe27d67ca724e5ad3c4ea68cd718344d159
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_libcpp_dsym (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_libcpp_dsym) (test case does not fall in any category of interest for this run) 
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_libcpp_dwarf (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_libcpp_dwarf)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_libcpp_dwo (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_libcpp_dwo)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_libcpp_pdb (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_libcpp_pdb) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_libstdcpp_dsym (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_libstdcpp_dsym) (test case does not fall in any category of interest for this run) 
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_libstdcpp_dwarf (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_libstdcpp_dwarf)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_libstdcpp_dwo (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_libstdcpp_dwo)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_libstdcpp_pdb (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_libstdcpp_pdb) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_msvcstl_dsym (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_msvcstl_dsym) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_msvcstl_dwarf (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_msvcstl_dwarf) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_msvcstl_dwo (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_msvcstl_dwo) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ptr_and_ref_msvcstl_pdb (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_ptr_and_ref_msvcstl_pdb) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_libcpp_dsym (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libcpp_dsym) (test case does not fall in any category of interest for this run) 
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_libcpp_dwarf (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libcpp_dwarf)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_libcpp_dwo (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libcpp_dwo)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_libcpp_pdb (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libcpp_pdb) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_libstdcpp_dsym (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libstdcpp_dsym) (test case does not fall in any category of interest for this run) 
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_libstdcpp_dwarf (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libstdcpp_dwarf)
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_libstdcpp_dwo (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libstdcpp_dwo)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_libstdcpp_pdb (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libstdcpp_pdb) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_msvcstl_dsym (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_msvcstl_dsym) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_msvcstl_dwarf (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_msvcstl_dwarf) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_msvcstl_dwo (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_msvcstl_dwo) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_with_run_command_msvcstl_pdb (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_msvcstl_pdb) (test case does not fall in any category of interest for this run) 
======================================================================
FAIL: test_with_run_command_libstdcpp_dwarf (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libstdcpp_dwarf)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2012, in test_method
    return attrvalue(self)
           ^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py", line 302, in test_with_run_command_libstdcpp
    self.do_test_with_run_command(is_libstdcpp=True)
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py", line 64, in do_test_with_run_command
    self.expect(
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2663, in expect
    self.runCmd(
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1049, in runCmd
    self.assertTrue(self.res.Succeeded(), msg + output)
AssertionError: False is not true : Command 'frame variable &numbers_list._M_impl._M_node --raw' did not return successfully
Error output:
error: <user expression 0>:1:15: "_M_impl" is not a member of "(int_list) numbers_list"
   1 | &numbers_list._M_impl._M_node
     | ^

Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
======================================================================
FAIL: test_with_run_command_libstdcpp_dwo (TestDataFormatterGenericList.GenericListDataFormatterTestCase.test_with_run_command_libstdcpp_dwo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2012, in test_method
    return attrvalue(self)
           ^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py", line 302, in test_with_run_command_libstdcpp
    self.do_test_with_run_command(is_libstdcpp=True)
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py", line 64, in do_test_with_run_command
    self.expect(
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2663, in expect
    self.runCmd(
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1049, in runCmd
    self.assertTrue(self.res.Succeeded(), msg + output)
AssertionError: False is not true : Command 'frame variable &numbers_list._M_impl._M_node --raw' did not return successfully
Error output:
error: <user expression 0>:1:15: "_M_impl" is not a member of "(int_list) numbers_list"
   1 | &numbers_list._M_impl._M_node
     | ^

Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 24 tests in 5.665s

FAILED (failures=2, skipped=16)

--

```
</details>

### Clang
<details>
<summary>Clang.Index/record-completion-invocation.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
export LSAN_OPTIONS=detect_leaks=0
# executed command: export LSAN_OPTIONS=detect_leaks=0
# note: command had no output on stdout or stderr
# RUN: at line 2
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-completion-invocation.c.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-completion-invocation.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-completion-invocation.c.tmp
# executed command: mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-completion-invocation.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 4
env CINDEXTEST_INVOCATION_EMISSION_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-completion-invocation.c.tmp not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test -code-completion-at=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c:10:1 "-remap-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c,/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Inputs/record-parsing-invocation-remap.c" /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c
# executed command: env CINDEXTEST_INVOCATION_EMISSION_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-completion-invocation.c.tmp not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test -code-completion-at=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c:10:1 -remap-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c,/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Inputs/record-parsing-invocation-remap.c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c
# .---command stderr------------
# | libclang: crash detected in code completion
# | Unable to perform code completion!
# `-----------------------------
# RUN: at line 5
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-completion-invocation.c.tmp/libclang-* | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c
# executed command: cat '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-completion-invocation.c.tmp/libclang-*'
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c:12:11: error: CHECK: expected string not found in input
# | // CHECK: {"toolchain":"{{.*}}","libclang.operation":"complete","libclang.opts":1,"args":["clang","-fno-spell-checking","{{.*}}record-completion-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"],"invocation-args":["-code-completion-at={{.*}}record-completion-invocation.c:10:1"],"unsaved_file_hashes":[{"name":"{{.*}}record-completion-invocation.c","md5":"aee23773de90e665992b48209351d70e"}]}
# |           ^
# | <stdin>:1:1: note: scanning from here
# | {"toolchain":"/home/gha/actions-runner/_work/llvm-project/llvm-project/build","libclang.operation":"complete","libclang.opts":1,"args":["/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/libclang.so.23.0git","-fno-spell-checking","/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"],"invocation-args":["-code-completion-at=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c:10:1"],"unsaved_file_hashes":[{"name":"/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c","md5":"aee23773de90e665992b48209351d70e"}]}
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: {"toolchain":"/home/gha/actions-runner/_work/llvm-project/llvm-project/build","libclang.operation":"complete","libclang.opts":1,"args":["/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/libclang.so.23.0git","-fno-spell-checking","/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"],"invocation-args":["-code-completion-at=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c:10:1"],"unsaved_file_hashes":[{"name":"/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-completion-invocation.c","md5":"aee23773de90e665992b48209351d70e"}]}
# | check:12     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Index/record-parsing-invocation.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
export LSAN_OPTIONS=detect_leaks=0
# executed command: export LSAN_OPTIONS=detect_leaks=0
# note: command had no output on stdout or stderr
# RUN: at line 2
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-parsing-invocation.c.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-parsing-invocation.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-parsing-invocation.c.tmp
# executed command: mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-parsing-invocation.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 4
env CINDEXTEST_INVOCATION_EMISSION_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-parsing-invocation.c.tmp not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test -test-load-source all /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c
# executed command: env CINDEXTEST_INVOCATION_EMISSION_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-parsing-invocation.c.tmp not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test -test-load-source all /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c
# .---command stderr------------
# | libclang: crash detected during parsing: {
# |   'source_filename' : '(null)'
# |   'command_line_args' : ['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/libclang.so.23.0git', '/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c'],
# |   'unsaved_files' : [],
# |   'options' : 1,
# | }
# | Unable to load translation unit!
# | Failure: libclang crashed
# `-----------------------------
# RUN: at line 5
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-parsing-invocation.c.tmp/libclang-* | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c
# executed command: cat '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Index/Output/record-parsing-invocation.c.tmp/libclang-*'
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c:28:11: error: CHECK: expected string not found in input
# | // CHECK: {"toolchain":"{{.*}}","libclang.operation":"parse","libclang.opts":1,"args":["clang","-fno-spell-checking","{{.*}}record-parsing-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"]}
# |           ^
# | <stdin>:1:1: note: scanning from here
# | {"toolchain":"/home/gha/actions-runner/_work/llvm-project/llvm-project/build","libclang.operation":"parse","libclang.opts":1,"args":["/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/libclang.so.23.0git","-fno-spell-checking","/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"]}
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: {"toolchain":"/home/gha/actions-runner/_work/llvm-project/llvm-project/build","libclang.operation":"parse","libclang.opts":1,"args":["/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/libclang.so.23.0git","-fno-spell-checking","/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/record-parsing-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"]}
# | check:28     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

### Clang-Unit
<details>
<summary>Clang-Unit._/AllClangUnitTests/86/101</summary>

```
Script(shard):
--
GTEST_OUTPUT=json:/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests-Clang-Unit-491877-86-101.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=101 GTEST_SHARD_INDEX=86 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests
--

Note: This is test shard 87 of 101.
[==========] Running 253 tests from 62 test suites.
[----------] Global test environment set-up.
[----------] 1 test from LexerTest
[ RUN      ] LexerTest.GetSourceTextExpandsAcrossMultipleMacroCalls
[       OK ] LexerTest.GetSourceTextExpandsAcrossMultipleMacroCalls (0 ms)
[----------] 1 test from LexerTest (0 ms total)

[----------] 1 test from ParseHLSLRootSignatureTest
[ RUN      ] ParseHLSLRootSignatureTest.InvalidDescriptorTableParamTest
[       OK ] ParseHLSLRootSignatureTest.InvalidDescriptorTableParamTest (0 ms)
[----------] 1 test from ParseHLSLRootSignatureTest (0 ms total)

[----------] 1 test from CFGBackEdgesTest
[ RUN      ] CFGBackEdgesTest.IrreducibleCFG
[       OK ] CFGBackEdgesTest.IrreducibleCFG (4 ms)
[----------] 1 test from CFGBackEdgesTest (4 ms total)

[----------] 1 test from ExprMutationAnalyzerTest
[ RUN      ] ExprMutationAnalyzerTest.PointeeMutatedByAssignToNonConst
[       OK ] ExprMutationAnalyzerTest.PointeeMutatedByAssignToNonConst (6 ms)
[----------] 1 test from ExprMutationAnalyzerTest (6 ms total)

[----------] 1 test from LifetimeAnalysisTest
[ RUN      ] LifetimeAnalysisTest.DerivedViewWithNoAnnotation
[       OK ] LifetimeAnalysisTest.DerivedViewWithNoAnnotation (2 ms)
[----------] 1 test from LifetimeAnalysisTest (2 ms total)

[----------] 1 test from SerializeFormulaTest
[ RUN      ] SerializeFormulaTest.NestedBinaryUnaryNots
[       OK ] SerializeFormulaTest.NestedBinaryUnaryNots (0 ms)
[----------] 1 test from SerializeFormulaTest (0 ms total)

[----------] 3 tests from TransferTest
[ RUN      ] TransferTest.StructVarDeclWithInit
[       OK ] TransferTest.StructVarDeclWithInit (3 ms)
[ RUN      ] TransferTest.AddrOfValue
[       OK ] TransferTest.AddrOfValue (2 ms)
[ RUN      ] TransferTest.BuiltinFunctionModeled
[       OK ] TransferTest.BuiltinFunctionModeled (1 ms)
[----------] 3 tests from TransferTest (7 ms total)

[----------] 1 test from StaticAnalyzerOptions
[ RUN      ] StaticAnalyzerOptions.SearchInParentPackageTests
[       OK ] StaticAnalyzerOptions.SearchInParentPackageTests (0 ms)
[----------] 1 test from StaticAnalyzerOptions (0 ms total)

[----------] 1 test from RangeSetTest/5, where TypeParam = <type>
[ RUN      ] RangeSetTest/5.RangeSetContainsTest
[       OK ] RangeSetTest/5.RangeSetContainsTest (2 ms)
[----------] 1 test from RangeSetTest/5 (2 ms total)

[----------] 1 test from DefaultZ3CrosscheckOracleTest
[ RUN      ] DefaultZ3CrosscheckOracleTest.RejectEQClassIfSpendsTooMuchTotalTime
[       OK ] DefaultZ3CrosscheckOracleTest.RejectEQClassIfSpendsTooMuchTotalTime (0 ms)
[----------] 1 test from DefaultZ3CrosscheckOracleTest (0 ms total)

[----------] 1 test from StatementMatcher
[ RUN      ] StatementMatcher.ForFunction
[       OK ] StatementMatcher.ForFunction (6 ms)
[----------] 1 test from StatementMatcher (6 ms total)

[----------] 1 test from HasDestinationType
[ RUN      ] HasDestinationType.MatchesSimpleCase
[       OK ] HasDestinationType.MatchesSimpleCase (1 ms)
[----------] 1 test from HasDestinationType (1 ms total)

[----------] 1 test from HasUnqualifiedLoc
[ RUN      ] HasUnqualifiedLoc.FloatBindsToConstFloatVarDecl
[       OK ] HasUnqualifiedLoc.FloatBindsToConstFloatVarDecl (1 ms)
[----------] 1 test from HasUnqualifiedLoc (1 ms total)

[----------] 1 test from GetParents
[ RUN      ] GetParents.FriendTypeLoc
[       OK ] GetParents.FriendTypeLoc (1 ms)
[----------] 1 test from GetParents (1 ms total)

[----------] 1 test from CommentLexerTest
[ RUN      ] CommentLexerTest.NotAKnownHTMLTag2
[       OK ] CommentLexerTest.NotAKnownHTMLTag2 (0 ms)
[----------] 1 test from CommentLexerTest (0 ms total)

[----------] 2 tests from DeclPrinter
[ RUN      ] DeclPrinter.TestCXXRecordDecl3
[       OK ] DeclPrinter.TestCXXRecordDecl3 (1 ms)
[ RUN      ] DeclPrinter.TestNamedTemplateParametersPacks
[       OK ] DeclPrinter.TestNamedTemplateParametersPacks (2 ms)
[----------] 2 tests from DeclPrinter (4 ms total)

[----------] 1 test from SizelessTypeTester
[ RUN      ] SizelessTypeTester.TestSizelessBuiltin
[       OK ] SizelessTypeTester.TestSizelessBuiltin (4 ms)
[----------] 1 test from SizelessTypeTester (4 ms total)

[----------] 1 test from StmtPrinter
[ RUN      ] StmtPrinter.TestCXXConversionDeclExplicit
[       OK ] StmtPrinter.TestCXXConversionDeclExplicit (2 ms)
[----------] 1 test from StmtPrinter (2 ms total)

[----------] 1 test from StructuralEquivalenceRecordContextTest
[ RUN      ] StructuralEquivalenceRecordContextTest.RecordInsideFunction
[       OK ] StructuralEquivalenceRecordContextTest.RecordInsideFunction (5 ms)
[----------] 1 test from StructuralEquivalenceRecordContextTest (5 ms total)

[----------] 1 test from StructuralEquivalenceStmtTest
[ RUN      ] StructuralEquivalenceStmtTest.StringLiteralDifferentContent
input.cc:1:17: warning: expression result unused [-Wunused-value]
    1 | void wrapped() {"a";}
      |                 ^~~
input.cc:1:17: warning: expression result unused [-Wunused-value]
    1 | void wrapped() {"b";}
      |                 ^~~
[       OK ] StructuralEquivalenceStmtTest.StringLiteralDifferentContent (6 ms)
[----------] 1 test from StructuralEquivalenceStmtTest (6 ms total)

[----------] 1 test from unescapeJsonCommandLine
[ RUN      ] unescapeJsonCommandLine.UnescapesBackslashCharacters
[       OK ] unescapeJsonCommandLine.UnescapesBackslashCharacters (0 ms)
[----------] 1 test from unescapeJsonCommandLine (0 ms total)

[----------] 1 test from HeaderIncludesTest
[ RUN      ] HeaderIncludesTest.InsertInGlobalModuleFragmentWithPP
[       OK ] HeaderIncludesTest.InsertInGlobalModuleFragmentWithPP (0 ms)
[----------] 1 test from HeaderIncludesTest (0 ms total)

[----------] 1 test from RecursiveASTVisitor
[ RUN      ] RecursiveASTVisitor.StmtCallbacks_TraverseCallExpr
input.cc:4:3: warning: expression result unused [-Wunused-value]
    4 |   1;
      |   ^
input.cc:5:5: warning: expression result unused [-Wunused-value]
    5 |   2 + 3;
      |   ~ ^ ~
2 warnings generated.
input.cc:4:3: warning: expression result unused [-Wunused-value]
    4 |   1;
      |   ^
input.cc:5:5: warning: expression result unused [-Wunused-value]
    5 |   2 + 3;
      |   ~ ^ ~
2 warnings generated.
[       OK ] RecursiveASTVisitor.StmtCallbacks_TraverseCallExpr (5 ms)
[----------] 1 test from RecursiveASTVisitor (5 ms total)

[----------] 1 test from ReplacementTest
[ RUN      ] ReplacementTest.FailAddRegression
Handling error...
[       OK ] ReplacementTest.FailAddRegression (0 ms)
[----------] 1 test from ReplacementTest (0 ms total)

[----------] 1 test from SourceCodeBuildersTest
[ RUN      ] SourceCodeBuildersTest.BuildParensBinOp
[       OK ] SourceCodeBuildersTest.BuildParensBinOp (3 ms)
[----------] 1 test from SourceCodeBuildersTest (3 ms total)

[----------] 1 test from StencilTest
[ RUN      ] StencilTest.AccessOpSmartPointerDereference
[       OK ] StencilTest.AccessOpSmartPointerDereference (3 ms)
[----------] 1 test from StencilTest (3 ms total)

[----------] 1 test from TransformerTest
[ RUN      ] TransformerTest.IfBound2Args
[       OK ] TransformerTest.IfBound2Args (4 ms)
[----------] 1 test from TransformerTest (4 ms total)

[----------] 1 test from CommandLineTest
[ RUN      ] CommandLineTest.BoolOptionDefaultArbitraryTwoFlagsPresentChange
[       OK ] CommandLineTest.BoolOptionDefaultArbitraryTwoFlagsPresentChange (0 ms)
[----------] 1 test from CommandLineTest (0 ms total)

[----------] 1 test from libclang
[ RUN      ] libclang.clang_parseTranslationUnit2_InvalidArgs
 #0 0x000000000739cb58 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
 #1 0x0000000007399ad5 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
 #2 0x000000000739d971 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
 #3 0x00007cd693832330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
 #4 0x00007cd69919ddd5 empty /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:1221:29
 #5 0x00007cd69919ddd5 clang::CIndexer::getLibClangPath[abi:cxx11]() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/libclang/CIndexer.cpp:111:27
 #6 0x00007cd69916f7ad _M_local_data /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:230:51
 #7 0x00007cd69916f7ad basic_string /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:548:21
 #8 0x00007cd69916f7ad clang_parseTranslationUnit2 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/libclang/CIndex.cpp:4450:23
 #9 0x000000000727fb93 libclang_clang_parseTranslationUnit2_InvalidArgs_Test::TestBody() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/libclang/LibclangTest.cpp:29:13
#10 0x00000000093a37e0 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
#11 0x00000000093a37e0 testing::Test::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2695:9
#12 0x00000000093a4d80 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
#13 0x00000000093a4d80 testing::TestInfo::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2842:11
#14 0x00000000093a5993 testing::TestSuite::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:3018:35
#15 0x00000000093b6ba4 testing::internal::UnitTestImpl::RunAllTests() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5922:41
#16 0x00000000093b5f59 testing::UnitTest::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5485:10
#17 0x000000000938c8ca main /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/UnitTestMain/TestMain.cpp:55:3
#18 0x00007cd6938171ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
#19 0x00007cd69381728b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
#20 0x0000000005f392a5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests+0x5f392a5)

--
exit: -11
--
shard JSON output does not exist: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests-Clang-Unit-491877-86-101.json
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/164234


More information about the cfe-commits mailing list