Bug 53272 - Unhandled Exception System.Collections.Generic.KeyNotFoundException in ikdasm
Summary: Unhandled Exception System.Collections.Generic.KeyNotFoundException in ikdasm
Alias: None
Product: Tools
Classification: Mono
Component: ikdasm ()
Version: 4.2.1 (C6SR0)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Katelyn Gadd
Depends on:
Reported: 2017-03-13 02:39 UTC by szt
Modified: 2017-08-31 14:29 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

linux terminal session (5.71 KB, text/plain)
2017-03-13 02:39 UTC, szt

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 53272 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description szt 2017-03-13 02:39:54 UTC
Created attachment 20284 [details]
linux terminal session

Got exception in ikdasm when tried to disasm stuff which was assembled using ilasm
Comment 1 Katelyn Gadd 2017-05-04 08:30:22 UTC
This is at least two bugs. Mono ilasm appears to generate an incorrect hello.exe here that happens to run but makes ikdasm choke. If you assemble it using the MS .NET ilasm the output exe works fine in ikdasm.

ikdasm also is not handling this incorrect exe right - MS ildasm handles it fine. For some reason the mscorlib reference it's using to resolve types is hosed so the disassembler is unable to find any mscorlib types in order to print them out.
Comment 2 Katelyn Gadd 2017-05-11 18:05:06 UTC
I was incorrect as a result of a non-obvious makefile behavior. Mono ilasm is fine. So the only bug here is in ikdasm and a fix has been found. It should make it in to mono in the future. Thanks for the report.