[Mono-bugs] [Bug 80164][Wis] New - MoMA fails in AggressiveReflectionReader

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 6 08:59:24 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mugenjouchan at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80164

--- shadow/80164	2006-12-06 08:59:24.000000000 -0500
+++ shadow/80164.tmp.3758	2006-12-06 08:59:24.000000000 -0500
@@ -0,0 +1,109 @@
+Bug#: 80164
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Mono.Cecil
+AssignedTo: mono at evain.net                            
+ReportedBy: mugenjouchan at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MoMA fails in AggressiveReflectionReader
+
+Description of Problem:
+
+MoMA fails somewhere while analyzing a bigger ASP.NET 1.1 dll(5 MiB).
+Unfortunately I cannot provide this one.
+
+Steps to reproduce the problem:
+1. let MoMA analyze it
+
+Actual Results:
+exception
+
+Expected Results:
+no exception
+
+How often does this happen? 
+always
+
+Additional Information:
+- running with MS.NET2
+
+
+Stacktrace: 
+-------------------------------------
+System.IndexOutOfRangeException: Index was outside the bounds of the array.
+   at Mono.Cecil.AggressiveReflectionReader.ReadCustomAttributes()
+   at
+Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection(TypeDefinitionCollection
+types)
+   at Mono.Cecil.ReflectionReader.VisitModuleDefinition(ModuleDefinition mod)
+   at
+Mono.Cecil.StructureReader.TerminateAssemblyDefinition(AssemblyDefinition asm)
+   at Mono.Cecil.AssemblyDefinition.Accept(IReflectionStructureVisitor visitor)
+   at Mono.Cecil.AssemblyFactory.GetAssembly(String file)
+   at MoMA.Analyzer.AssemblyAnalyzer.IsValidAssembly(String assembly)
+   at MoMA.MainForm.VerifyValidAssemblies()
+   at MoMA.MainForm.NextButton_Click(Object sender, EventArgs e)
+   at System.Windows.Forms.Control.OnClick(EventArgs e)
+   at System.Windows.Forms.Button.OnClick(EventArgs e)
+   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
+   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
+button, Int32 clicks)
+   at System.Windows.Forms.Control.WndProc(Message& m)
+   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
+   at System.Windows.Forms.Button.WndProc(Message& m)
+   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
+   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
+   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
+IntPtr wparam, IntPtr lparam)
+-----------------------------------------
+
+Another Stacktrace with the current SVN version in SharpDevelop as
+debugger: (Tried to find problem myself, but was scared after seeing
+Tokenstuff ;) )
+
+--------------------------------------------------
+Exception System.IndexOutOfRangeException was thrown in debuggee:
+Index was outside the bounds of the array.
+
+GetFieldDefAt() - $monotrunk\cecil\lib\Mono.Cecil\ReflectionReader.cs:151,4
+	* rid = 0, so accessing index -1
+ReadCustomAttributes() -
+$monotrunk\cecil\lib\Mono.Cecil\AggressiveReflectionReader.cs:328,6
+VisitTypeDefinitionCollection() -
+$monotrunk\cecil\lib\Mono.Cecil\AggressiveReflectionReader.cs:56,4
+VisitModuleDefinition() -
+$monotrunk\cecil\lib\Mono.Cecil\ReflectionReader.cs:379,4
+TerminateAssemblyDefinition() -
+$monotrunk\cecil\lib\Mono.Cecil\StructureReader.cs:266,5
+Accept() - $monotrunk\cecil\lib\Mono.Cecil\AssemblyDefinition.cs:140,4
+GetAssembly() - $monotrunk\cecil\lib\Mono.Cecil\AssemblyFactory.cs:49,4
+GetAssembly() - $monotrunk\cecil\lib\Mono.Cecil\AssemblyFactory.cs:55,4
+GetAssembly() - $monotrunk\cecil\lib\Mono.Cecil\AssemblyFactory.cs:65,4
+IsValidAssembly() - $monotrunk\moma\MoMA.Analyzer\AssemblyAnalyzer.cs:320,5
+VerifyValidAssemblies() - $monotrunk\moma\MainForm.cs:382,5
+NextButton_Click() - $monotrunk\moma\MainForm.cs:127,6
+OnClick()
+OnClick()
+OnMouseUp()
+WmMouseUp()
+WndProc()
+WndProc()
+WndProc()
+OnMessage()
+WndProc()
+DebuggableCallback()
+System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop()
+RunMessageLoopInner()
+RunMessageLoop()
+Run()
+Main() - $monotrunk\moma\Program.cs:17,4
+---------------------------------------------------------------------


More information about the mono-bugs mailing list