Bug 11704 - [regression] invalid symbols for System.Data.dll
Summary: [regression] invalid symbols for System.Data.dll
Status: VERIFIED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2013-04-10 10:17 UTC by Sebastien Pouliot
Modified: 2013-04-11 16:35 UTC (History)
4 users (show)

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

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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Sebastien Pouliot 2013-04-10 10:17:03 UTC
After building master-3.0 try this:

    mono mdbdump.exe /Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll

and it will ends with:

Unhandled Exception:
System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.Int32,Mono.CompilerServices.SymbolWriter.MethodEntry].Add (Int32 key, Mono.CompilerServices.SymbolWriter.MethodEntry value) [0x00000] in <filename unknown>:0 
  at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.read_methods () [0x00000] in <filename unknown>:0 
  at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.get_Methods () [0x00000] in <filename unknown>:0 
  at MdbDump.DumpSymbolFile (Mono.Cecil.AssemblyDefinition assembly, Mono.CompilerServices.SymbolWriter.MonoSymbolFile symbolFile, System.IO.TextWriter output) [0x00000] in <filename unknown>:0 
  at MdbDump.Main (System.String[] args) [0x00000] in <filename unknown>:0 
 />
</symbols>[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.Int32,Mono.CompilerServices.SymbolWriter.MethodEntry].Add (Int32 key, Mono.CompilerServices.SymbolWriter.MethodEntry value) [0x00000] in <filename unknown>:0 
  at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.read_methods () [0x00000] in <filename unknown>:0 
  at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.get_Methods () [0x00000] in <filename unknown>:0 
  at MdbDump.DumpSymbolFile (Mono.Cecil.AssemblyDefinition assembly, Mono.CompilerServices.SymbolWriter.MonoSymbolFile symbolFile, System.IO.TextWriter output) [0x00000] in <filename unknown>:0 
  at MdbDump.Main (System.String[] args) [0x00000] in <filename unknown>:0 


This affect mtouch because it will try to load the symbols to link them - the exception will stop it's execution, see bots, linkall.app, on master-3.0


This is a recent regression only the last versions of the bots shows it. However the last dozen revisions from yesterday did not build properly so we can't pinpoint exactly where it went wrong.
Comment 1 Marek Safar 2013-04-10 12:46:48 UTC
Fixed in master
Comment 2 Sebastien Pouliot 2013-04-10 13:39:45 UTC
Can you bump monotouch/master-3.0 to that revision ?
Comment 3 Sebastien Pouliot 2013-04-10 15:57:19 UTC
*** Bug 11656 has been marked as a duplicate of this bug. ***
Comment 4 Peter Collins 2013-04-11 16:35:33 UTC
Verified fixed in master-3.0 - f0238159