<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/137046>137046</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            libc++ change causes a segmentation fault when running some lldb tests
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          gulfemsavrun
      </td>
    </tr>
</table>

<pre>
    We started seeing a segmentation fault while running some lldb tests after https://github.com/llvm/llvm-project/pull/134960. 
```
UNRESOLVED: lldb-api :: commands/expression/import-std-module/list-dbg-info-content/TestDbgInfoContentListFromStdModule.py (159 of 2740)
******************** TEST 'lldb-api :: commands/expression/import-std-module/list-dbg-info-content/TestDbgInfoContentListFromStdModule.py' FAILED ********************
Script:
--
/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/bin/python3 /b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/b/s/w/ir/x/w/llvm_build/./lib --env LLVM_INCLUDE_DIR=/b/s/w/ir/x/w/llvm_build/include --env LLVM_TOOLS_DIR=/b/s/w/ir/x/w/llvm_build/./bin --arch x86_64 --build-dir /b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex --lldb-module-cache-dir /b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /b/s/w/ir/x/w/llvm_build/./bin/lldb --compiler /b/s/w/ir/x/w/cipd/clang/bin/clang --dsymutil /b/s/w/ir/x/w/llvm_build/./bin/dsymutil --make /b/s/w/ir/x/w/cipd/bin/make --llvm-tools-dir /b/s/w/ir/x/w/llvm_build/./bin --lldb-obj-root /b/s/w/ir/x/w/llvm_build/tools/lldb --lldb-libs-dir /b/s/w/ir/x/w/llvm_build/./lib --skip-category=pexpect /b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/commands/expression/import-std-module/list-dbg-info-content -p TestDbgInfoContentListFromStdModule.py
--

Exit Code: -11

Current thread 0x00007f42d3c75740 (most recent call first):
  File "/b/s/w/ir/x/w/llvm_build/python3/lib/python3.11/site-packages/lldb/__init__.py", line 6750 in EvaluateExpression
  File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2547 in expect_expr
  File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/commands/expression/import-std-module/vector-dbg-info-content/TestDbgInfoContentVectorFromStdModule.py", line 44 in test
  File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 148 in wrapper
  File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 148 in wrapper
  File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 148 in wrapper
  File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1804 in test_method
  File "/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/lib/python3.11/unittest/case.py", line 579 in _callTestMethod
  File "/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/lib/python3.11/unittest/case.py", line 623 in run
  File "/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/lib/python3.11/unittest/case.py", line 678 in __call__
  File "/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/lib/python3.11/unittest/suite.py", line 122 in run
  File "/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/lib/python3.11/unittest/suite.py", line 84 in __call__
  File "/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/lib/python3.11/unittest/suite.py", line 122 in run
  File "/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/lib/python3.11/unittest/suite.py", line 84 in __call__
  File "/b/s/w/ir/x/w/install-cpython-x86_64-linux-gnu/lib/python3.11/unittest/runner.py", line 217 in run
  File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/packages/Python/lldbsuite/test/dotest.py", line 1108 in run_suite
  File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/dotest.py", line 8 in <module>

Extension modules: lldb._lldb (total: 1)
```
https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/lldb-linux-x64/b8717163196427818881/overview

cc: @winner245 @llvm/pr-subscribers-libcxx @llvm/pr-subscribers-libcxxabi @llvm/pr-subscribers-lldb @llvm/issue-subscribers-lldb 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsWM1u2zASfhr6QtCQKMmyDz64sbUI4P6gSbu9CRRJ22wpUuCP47z9gpQSp2maOGna7qGAAJsiOfPNN8PhaIi1Yqs4n4PiDSiWI-LdTpv51ssNby3ZG69GjWbX8_9yaB0xjjNoORdqCwm0fNty5YgTWsEN8dLBq52QHBqvVFhidcuhlKyBjltnIdk4buDOuc6CbAFwBXC1FW7nmzHVLcCVlPubH9QZ_ZVTB3DVeSkBrtIsn02SMQTJAkyS4UkWn959XF28X39eLUG2iNoQ6QQMCrIFpLptiWIW4IofOsOtFVoBXIm208Yh6xhqNfOSB7XCOsSaLRJqoxHVynEV9F9y65bN9lxt9Fn_ci2sq4xuLxx7G3ePu2sI8DQtZlBvIC7zBOBZAIpf_sDL1cUlBLj8ezYBXMJqcb5eLeGvWAKSxQU1onPBgGSBUGSmagCughFXAbsBuDrcDJR1REpEu2u30wodppN6kiMplD-grfJhrwgW9_MZfExYDKZ7ERUYBbgKUQlwtfhwDnDFdBgGRyIPz758qdaL_1zE_8M_xNUertef39br8zcX9fL8I8iWT2muGy8kA7gaR2c0d8Wcvztbf1qunitJKCo943clXb5_v34RokYoiBAxdAd7kiFCcR4xYZ6k9VZUjNBAX795rLRQjB8gQnGmj0ZECd3xVxEMcPWdzMGftwcFISq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