Skip to content

tools: wine-thread-stacks.py - #156

Merged
mescon merged 2 commits into
masterfrom
tools/wine-thread-stacks
Nov 30, 2026
Merged

mescon merged 2 commits into
masterfrom
tools/wine-thread-stacks

Conversation

@mescon

@mescon mescon commented Nov 30, 2026

Copy link
Copy Markdown
Owner

A diagnostic for #121: prints the Windows-side stack of every blocked thread in a running Wine/Proton game as module+offset, reading only /proc. Nothing is attached to or stopped, so it cannot freeze or kill the game.

Checked against winedbg backtraces of the same processes in a scratch prefix (Proton Experimental): the frames match.

…out a debugger

Reads /proc only: for every thread blocked in a system call it finds the
register frame Wine saved on entry and prints the return addresses on the
Windows-side stack as module+offset. The game is never stopped or
attached to, unlike winedbg, which can hang and take the game with it.

For #121, where the physics thread waits on a Windows-side lock that
Linux tools cannot name.
No process id is taken from the command line any more, so nothing typed
there ends up in a /proc path; -c NAME selects another process name. The
per-thread printing moves into its own function.
@sonarqubecloud

Copy link
Copy Markdown

@mescon
mescon merged commit 98331cf into master Nov 30, 2026
25 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant