Multiple entries to DbgEng mode produce duplicate output
goldshtn opened this issue · 2 comments
goldshtn commented
For example, open a dump file and run .dem
. Quit with q
. Repeat .dem
again. Quit with q
. Every time you enter with .dem
, there is some engine output repeated multiple times. It seems that our call to SetOutputCallbacksWide is somehow being persisted across multiple DataTarget instances...
goldshtn commented
Tracked this down to CLRMD's DbgEngDataReader.Dispose
not cleaning up the IDebugClient
completely, so it will still have lingering output callbacks until the next GC-finalize cycle.