Skip to content

DumpIL SOS command does not properly handle DynamicMethods in .NET Core #4850

@davidwrighton

Description

@davidwrighton

Description

  • Create a DynamicMethod
  • Use the !dumpil command to examine the IL of the associated MethodDesc
  • This will fail with a message indicating "Error gathering dynamic info from object at ADDRESS"

Configuration

Any vaguely recent .NET Core build.

Regression?

This probably works targeting the .NET Framework

Other information

It appears that at some point in time the fields on the System.Reflection.Emit.DynamicMethod object were changed to change the m_ prefix to _. In addition, a few other fields look to have changed their name entirely. GatherDynamicInfo in the SOS codebase appears to need to be updated to handle the newer paths, and we probably need some testing for this scenario.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsos

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions