Skip to content

Conversation

@dhthwy
Copy link
Contributor

@dhthwy dhthwy commented Nov 26, 2025

This only popped when compiling with LTO (dfhack library, as well as dfhack library + plugins).

For some reason DebugManager's instance was being destroyed before the debug plugin's FilterManager, which lead to a use-after-free in Signal.

A 'proper fix' might be to fix the Signal library, but since DebugManager is a singleton, I think it's ok to just leak for these types.

@dhthwy
Copy link
Contributor Author

dhthwy commented Nov 26, 2025

pre-commit.ci autofix

@dhthwy dhthwy changed the title fix debug plugin use-after-free on shutdown (lto enabled) fix debug plugin use-after-free on shutdown (LTO) Nov 26, 2025
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