Skip to content

Instantly share code, notes, and snippets.

@garfvl
Last active August 27, 2020 16:13
Show Gist options
  • Save garfvl/8aee2ebee56612502e5fe9e0d6c5f78d to your computer and use it in GitHub Desktop.
Save garfvl/8aee2ebee56612502e5fe9e0d6c5f78d to your computer and use it in GitHub Desktop.
"Easy" way to get a stacktrace on VLC crash on Windows

"Easy" way to get a stacktrace on VLC crash on Windows

  1. Install msys2 + gdb:

    1. Install msys2 (64bits version)

    2. In msys2 command line, install gdb:

      msys:~$ pacman -S mingw-w64-x86_64-gdb
  2. Attach gdb to vlc and put a break on abort

    1. launch a vlc.exe process, and note the process id (PID column) in the Task Manager app.

    2. Launch msys2 command line, then launch gdb:

      msys:~$ /mingw64/bin/gdb.exe <path to vlc.exe>
    3. In gdb prompt, launch:

      gdb$ break abort
      gdb$ attach <VLC PID number>
      gdb$ continue
    4. On crash, gdb should display a prompt. Ask for all threads backtraces:

      gdb$ thread apply all backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment