goldshtn/msos

Multiple entries to DbgEng mode produce duplicate output

goldshtn opened this issue · 2 comments

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...

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.

Fixed in a010785 by changing the Dispose method appropriately.