microsoft / microsoft/vscode-cpptools

LLDB Crash with exit code 139 on macOS 15.5 when launching C++ debug session

Open
#13,703 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug debugger help wanted
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Environment
  • OS and version: macOS 15.5 (Build 24F74)
  • VS Code: 1.90.0
  • C/C++ extension: 1.19.9
  • OS and version of remote machine (if applicable): Not applicable
  • GDB / LLDB version: lldb-1900.0.39.0
Bug Summary and Steps to Reproduce

Bug Summary:
LLDB crashes with exit code 139 when launching a basic C++ program from VS Code using the C++ extension with MIMode set to "lldb".

Steps to reproduce:

  1. Install VS Code with the C++ extension on macOS 15.5.
  2. Create a simple C++ program (e.g., main.cpp printing "Hello, LLDB!").
  3. Compile it using clang++ main.cpp -o main.
  4. Use the following launch.json configuration with "MIMode": "lldb".
  5. Run the debugger.
  6. LLDB crashes with exit code 139.
Debugger Configurations
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "LLDB Test",
      "type": "cppdbg",
      "request": "launch",
      "program": "${workspaceFolder}/main",
      "args": [],
      "stopAtEntry": false,
      "cwd": "${workspaceFolder}",
      "environment": [],
      "externalConsole": false,
      "MIMode": "lldb",
      "miDebuggerPath": "/usr/bin/lldb",
      "setupCommands": [
        {
          "description": "Enable pretty-printing for LLDB",
          "text": "settings set target.inline-breakpoint-strategy always",
          "ignoreFailures": true
        }
      ]
    }
  ]
}
Debugger Logs
"logging": {
  "engineLogging": true,
  "trace": true,
  "traceResponse": true
}
Other Extensions

Only C/C++ and CodeLLDB extensions are enabled. The issue persists even with all other extensions disabled.

Additional Information

This issue appears to be the same as #13496. I followed all the steps to reproduce and used the latest version of the extension. The program runs correctly via terminal (./main), but crashes only via the debugger.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash with the documented macOS 15.5 environment, compiled main.cpp, and launch.json using MIMode lldb and /usr/bin/lldb. Compare the behavior with issue #13496 and inspect the captured debugger logs; done means identifying and fixing the LLDB launch failure and confirming that the basic C++ debug session runs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.