[clang] [Clang][Sema] Fix crash on a string literal following a designated array element (PR #241933)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 12 20:03:38 PST 2026


github-actions[bot] wrote:

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

* 63027 tests passed
* 837 tests skipped
* 4 tests failed

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

### lldb-api
<details>
<summary>lldb-api.tools/lldb-dap/launch/TestDAP_launch_stdio_redirection_and_console.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 --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --lldb-python-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/local/lib/python3.14/dist-packages --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/tools/lldb-dap/launch -p TestDAP_launch_stdio_redirection_and_console.py --timeout 1200
--
Exit Code: 1

Command Output (stdout):
--
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test (TestDAP_launch_stdio_redirection_and_console.TestDAP_launch_stdio_redirection_and_console.test)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/launch/TestDAP_launch_stdio_redirection_and_console/Failure_test.log
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/launch/TestDAP_launch_stdio_redirection_and_console/Failure_test-testcase.log
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/launch/TestDAP_launch_stdio_redirection_and_console/Failure_test-dap.log
======================================================================
FAIL: test (TestDAP_launch_stdio_redirection_and_console.TestDAP_launch_stdio_redirection_and_console.test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 221, in wrapper
    return func(*args, **kwargs)
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 221, in wrapper
    return func(*args, **kwargs)
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_stdio_redirection_and_console.py", line 26, in test
    process_event = session.launch(
        LaunchArgs(
    ...<3 lines>...
        )
    )
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/session_helpers.py", line 662, in launch
    with self.configure(config) as ctx:
         ~~~~~~~~~~~~~~^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/session_helpers.py", line 535, in __enter__
    session.test_case.fail(fail_msg)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
AssertionError: 'launch' failed: ErrorResponse(type=<MessageType.RESPONSE: 'response'>, seq=99, command='launch', request_seq=2, success=False, message=None, body=ErrorResponse.Body(error=Message(id=3, format='process exited during launch or attach', variables=None, sendTelemetry=None, showUser=True, url=None, urlLabel=None)))
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 1 test in 21.504s

FAILED (failures=1)

--

```
</details>
<details>
<summary>lldb-api.tools/lldb-dap/launch/io/TestDAP_launch_io_integratedTerminal.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 --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --lldb-python-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/local/lib/python3.14/dist-packages --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/tools/lldb-dap/launch/io -p TestDAP_launch_io_integratedTerminal.py --timeout 1200
--
Exit Code: 1

Command Output (stdout):
--
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_all_redirection (TestDAP_launch_io_integratedTerminal.TestDAP_launch_io_IntegratedTerminal.test_all_redirection)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/launch/io/TestDAP_launch_io_integratedTerminal/Failure_test_all_redirection.log
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/launch/io/TestDAP_launch_io_integratedTerminal/Failure_test_all_redirection-testcase.log
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/launch/io/TestDAP_launch_io_integratedTerminal/Failure_test_all_redirection-dap.log
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_stderr_redirection (TestDAP_launch_io_integratedTerminal.TestDAP_launch_io_IntegratedTerminal.test_stderr_redirection)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_stdin_redirection (TestDAP_launch_io_integratedTerminal.TestDAP_launch_io_IntegratedTerminal.test_stdin_redirection)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_stdout_redirection (TestDAP_launch_io_integratedTerminal.TestDAP_launch_io_IntegratedTerminal.test_stdout_redirection)
======================================================================
FAIL: test_all_redirection (TestDAP_launch_io_integratedTerminal.TestDAP_launch_io_IntegratedTerminal.test_all_redirection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/launch/io/TestDAP_launch_io_integratedTerminal.py", line 20, in test_all_redirection
    self.all_redirection(console=self.console)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/launch/io/DAP_launch_io.py", line 44, in all_redirection
    session.launch(
    ~~~~~~~~~~~~~~^
        LaunchArgs(
        ^^^^^^^^^^^
    ...<5 lines>...
        )
        ^
    )
    ^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/session_helpers.py", line 662, in launch
    with self.configure(config) as ctx:
         ~~~~~~~~~~~~~~^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/session_helpers.py", line 535, in __enter__
    session.test_case.fail(fail_msg)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
AssertionError: 'launch' failed: ErrorResponse(type=<MessageType.RESPONSE: 'response'>, seq=82, command='launch', request_seq=2, success=False, message=None, body=ErrorResponse.Body(error=Message(id=3, format='process exited during launch or attach', variables=None, sendTelemetry=None, showUser=True, url=None, urlLabel=None)))
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 4 tests in 62.959s

FAILED (failures=1)

--

```
</details>
<details>
<summary>lldb-api.tools/lldb-dap/restart/TestDAP_restart_console.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 --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --lldb-python-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/local/lib/python3.14/dist-packages --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/tools/lldb-dap/restart -p TestDAP_restart_console.py --timeout 1200
--
Exit Code: 1

Command Output (stdout):
--
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_basic_functionality (TestDAP_restart_console.TestDAP_restart_console.test_basic_functionality)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/restart/TestDAP_restart_console/Failure_test_basic_functionality.log
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/restart/TestDAP_restart_console/Failure_test_basic_functionality-testcase.log
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/tools/lldb-dap/restart/TestDAP_restart_console/Failure_test_basic_functionality-dap.log
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_stopOnEntry (TestDAP_restart_console.TestDAP_restart_console.test_stopOnEntry)
======================================================================
FAIL: test_basic_functionality (TestDAP_restart_console.TestDAP_restart_console.test_basic_functionality)
   Test basic restarting functionality when the process is running in
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 221, in wrapper
    return func(*args, **kwargs)
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 221, in wrapper
    return func(*args, **kwargs)
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/restart/TestDAP_restart_console.py", line 25, in test_basic_functionality
    with session.configure(launch_args) as ctx:
         ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/session_helpers.py", line 535, in __enter__
    session.test_case.fail(fail_msg)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
AssertionError: 'launch' failed: ErrorResponse(type=<MessageType.RESPONSE: 'response'>, seq=81, command='launch', request_seq=2, success=False, message=None, body=ErrorResponse.Body(error=Message(id=3, format='process exited during launch or attach', variables=None, sendTelemetry=None, showUser=True, url=None, urlLabel=None)))
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 2 tests in 36.379s

FAILED (failures=1)

--

```
</details>

### lldb-unit
<details>
<summary>lldb-unit.Host/_/HostTests/ProcessRunLockDeathTest/MoveLockedAcrossThreads</summary>

```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/unittests/Host/./HostTests --gtest_filter=ProcessRunLockDeathTest.MoveLockedAcrossThreads
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/unittests/Host/ProcessRunLockTest.cpp:190
Death test: { llvm::sys::Process::PreventCoreFiles(); std::thread t([locker = std::move(a)]() mutable { (void)locker; }); t.join(); }
    Result: failed to die.
 Error msg:
[  DEATH   ] 


```
</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/241933


More information about the cfe-commits mailing list