microsoft / microsoft/vscode-cpptools

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

Aperta
#13,703 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug debugger help wanted
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il crash con l’ambiente macOS 15.5 documentato, main.cpp compilato e launch.json usando MIMode lldb e /usr/bin/lldb. Confronta il comportamento con l’issue #13496 ed esamina i log del debugger acquisiti; il lavoro è completato quando il problema di avvio di LLDB è stato identificato e corretto e quando è confermato che la sessione di debug C++ di base viene eseguita correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cpp, macos, vscode
Ambito
devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.