Skip to content

Using --debug results in deadlock #4901

@rossipedia

Description

@rossipedia

Describe the bug

Running lazygit --debug results in a crash and error output about recursive locking.

To Reproduce

Steps to reproduce the behavior:

  1. Run lazygit --debug

Expected behavior

I expected lazygit to run successfully, and allow me to tail the debug logs with lazygit -l in another terminal

Screenshots

Image

Version info:

  • Run lazygit --version and paste the result here
❯ lazygit --version
commit=, build date=, build source=Homebrew, version=0.55.0, os=darwin, arch=arm64, git version=2.51.0

(Installed via homebrew)

  • Run git --version and paste the result here
❯ git --version
git version 2.51.0

Additional context

This is on macOS 26 Tahoe.

Also, running lazygit without --debug works as expected.

Note

Please try updating to the latest version or manually building the latest master to see if the issue still occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions