panda-re / panda

Platform for Architecture-Neutral Dynamic Analysis
https://panda.re
Other
2.48k stars 479 forks source link

PyPANDA: move unload into main loop wait to try fixing a deadlock #1440

Closed AndrewFasano closed 8 months ago

AndrewFasano commented 8 months ago

Previously I was seeing some deadlocks around hypercalls handled by pyplugins while the uninit method was running. Not 100% sure this fixes it, but I suspect it's safer to do our unload logic in main loop wait anyway.