Skip to content

MacOS 15.4 M1 Error while trying to enter break state. Debugging will now stop. LLDB exited unexpectedly with exit code 139 #13496

Open
@Khalyutin

Description

@Khalyutin

After update OS to 15.4. (and autoupdate Xcode) crash debug process on breakpoint (application not crash). Crash corresponding with mouse action in application (if same action activate from keyboard not crash debug). First breakpoint maybe work. crash on 1, 2 or 3-d of iteration same breakpoint

MacOS Sequoia 15.4. arm M1
VSCodeVersion: 1.99.2 (Universal)
Commit: 4949701c880d4bdb949e3c0e6b400288da7f474b
Date: 2025-04-10T01:21:25.295Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.4.0

lldb -version
lldb-1700.0.9.46
Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
clang --version
Apple clang version 17.0.0 (clang-1700.0.13.3)
Target: arm64-apple-darwin24.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

cmake version 3.30.2

use wxWidgets 3.2.6

1: (85258) Send Event AD7MessageEvent
--> E (output): {"type":"event","event":"output","body":{"category":"stderr","output":"ERROR: Error while trying to enter break state. Debugging will now stop. LLDB exited unexpectedly with exit code 139 (0x8B).\n"},"seq":8755}
ERROR: Error while trying to enter break state. Debugging will now stop. LLDB exited unexpectedly with exit code 139 (0x8B).
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (85259) Send Event AD7ProgramDestroyEvent\n"},"seq":8757}

full log:

lldb-log.txt

    {
        "name": "mac c++",
        "type": "cppdbg",
        "request": "launch",
        // Resolved by CMake Tools:
        "program": "${command:cmake.launchTargetPath}",
        "args": [],
        "additionalSOLibSearchPath": "${workspaceFolder}/build/RESULT",
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}",
        "environment": [
            {
                // add the directory where our target was built to the PATHs
                // it gets resolved by CMake Tools:
                "name": "PATH",
                "value": "${env:PATH}:${command:cmake.getLaunchTargetDirectory}"
            },
            {
                "name": "OTHER_VALUE",
                "value": "Something something"
            }
        ],

        "logging": 
        {
            "engineLogging": true,
            "trace": true,
            "traceResponse": true
        },

        "externalConsole": false,
        "MIMode": "lldb"
    },

Activity

github-actions

github-actions commented on Apr 16, 2025

@github-actions

Thank you for reporting this issue. We’ll let you know if we need more information to investigate it. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated.

duncandrennan

duncandrennan commented on Apr 24, 2025

@duncandrennan

Same problem, Mac M4. Started after an Xcode upgrade

  • lldb-1700.0.9.46
  • clang-1700.0.13.3

I was checking some things now and deleted all the existing breakpoints and re-added them and I can now halt on a break point again.

Khalyutin

Khalyutin commented on May 5, 2025

@Khalyutin
Author

Unfortunately after removing and readdition the breakpoints the problem is not solved. Some of the breakpoints work and some cause the debugger to crash...

Subham-KRLX

Subham-KRLX commented on Jun 18, 2025

@Subham-KRLX

Hi everyone,
I've linked a PR (#13704) that documents a potential workaround and references this LLDB crash issue (exit code 139) on macOS 15.4 and 15.5.
If anyone facing the issue can try it and provide feedback, that would be greatly appreciated.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdebuggerhelp wantedCan be fixed in the public (open source) repo.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @duncandrennan@sean-mcmanus@Khalyutin@Subham-KRLX

      Issue actions

        MacOS 15.4 M1 Error while trying to enter break state. Debugging will now stop. LLDB exited unexpectedly with exit code 139 · Issue #13496 · microsoft/vscode-cpptools