Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R2RDump fails for System.IO.FileSystem #46210

Closed
mangod9 opened this issue Dec 18, 2020 · 1 comment · Fixed by #46833
Closed

R2RDump fails for System.IO.FileSystem #46210

mangod9 opened this issue Dec 18, 2020 · 1 comment · Fixed by #46833
Assignees
Labels
area-R2RDump-coreclr Ready-to-run image dump tool
Milestone

Comments

@mangod9
Copy link
Member

mangod9 commented Dec 18, 2020

Description

Running R2RDump on System.IO.FileSystem which has been compiled with crossgen2 causes the following exception:

CoreRun.exe R2RDump\R2RDump.dll -d -i System.IO.FileSystem.dll

Error: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at ILCompiler.Reflection.ReadyToRun.Amd64.UnwindInfo.ParseUnwindCode(Int32& i) in C:\git\runtime\src\coreclr\src\tools\aot\ILCompiler.Reflection.ReadyToRun\Amd64\UnwindInfo.cs:line 244
   at ILCompiler.Reflection.ReadyToRun.Amd64.UnwindInfo..ctor(Byte[] image, Int32 offset) in C:\git\runtime\src\coreclr\src\tools\aot\ILCompiler.Reflection.ReadyToRun\Amd64\UnwindInfo.cs:line 139
   at ILCompiler.Reflection.ReadyToRun.ReadyToRunMethod.ParseRuntimeFunctions() in C:\git\runtime\src\coreclr\src\tools\aot\ILCompiler.Reflection.ReadyToRun\ReadyToRunMethod.cs:line 480
   at ILCompiler.Reflection.ReadyToRun.ReadyToRunMethod.EnsureRuntimeFunctions() in C:\git\runtime\src\coreclr\src\tools\aot\ILCompiler.Reflection.ReadyToRun\ReadyToRunMethod.cs:line 267
   at ILCompiler.Reflection.ReadyToRun.ReadyToRunMethod.get_RuntimeFunctions() in C:\git\runtime\src\coreclr\src\tools\aot\ILCompiler.Reflection.ReadyToRun\ReadyToRunMethod.cs:line 257
   at R2RDump.Extensions.WriteTo(ReadyToRunMethod theThis, TextWriter writer, DumpOptions options) in C:\git\runtime\src\coreclr\src\tools\r2rdump\Extensions.cs:line 147
   at R2RDump.TextDumper.DumpMethod(ReadyToRunMethod method) in C:\git\runtime\src\coreclr\src\tools\r2rdump\TextDumper.cs:line 154
   at R2RDump.TextDumper.DumpAllMethods() in C:\git\runtime\src\coreclr\src\tools\r2rdump\TextDumper.cs:line 142
   at R2RDump.R2RDump.Dump(ReadyToRunReader r2r) in C:\git\runtime\src\coreclr\src\tools\r2rdump\R2RDump.cs:line 400
   at R2RDump.R2RDump.Run() in C:\git\runtime\src\coreclr\src\tools\r2rdump\R2RDump.cs:line 569

Configuration

Compile System.IO.FileSystem.dll with crossgen2
Use R2RDump to disassemble compiled version of System.IO.FileSystem.dll

Regression?

No

@mangod9 mangod9 added the area-R2RDump-coreclr Ready-to-run image dump tool label Dec 18, 2020
@mangod9 mangod9 added this to the 6.0.0 milestone Dec 18, 2020
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Dec 18, 2020
@mangod9 mangod9 removed the untriaged New issue has not been triaged by the area owner label Dec 18, 2020
@mangod9
Copy link
Member Author

mangod9 commented Dec 18, 2020

cc @dotnet/crossgen-contrib

@nattress nattress self-assigned this Jan 11, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 11, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jan 12, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-R2RDump-coreclr Ready-to-run image dump tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants