Fix a set of minor DAC bugs I encountered recently #100031
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In src/coreclr/debug/daccess/dacdbiimpl.cpp
g_pDebugger
is NULL, produce an error, or NULL result instead of an invalid memory access.In src/coreclr/debug/di/module.cpp
MapAddr
if the number of entries in the map is 0, as it may not yet be fully initialized and attempting to call theGetMapAddr
function may cause an ASSERT in debug/checked versions of the DACIn src/coreclr/utilcode/collections.cpp
CHashTable
is not fully initialized, or is in an intermediate state, its possible for the linked list to have an infinite cycle. Tweak the iteration here under the DAC to stop