[Mono-bugs] [Bug 74311][Nor] New - mono cant find <Module>.ctor (in case of custom attribute)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 1 Apr 2005 09:31:23 -0500 (EST)
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 radical@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74311
--- shadow/74311 2005-04-01 09:31:23.000000000 -0500
+++ shadow/74311.tmp.7991 2005-04-01 09:31:23.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 74311
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: radical@gmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mono cant find <Module>.ctor (in case of custom attribute)
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Attached is a .exe (delphi, compiled in release mode, works fine on .net on
+a mchine which doesnt have any delphi stuff).
+
+With mono, it gives
+
+$ mono a.exe
+
+** (a.exe:22938): WARNING **: Missing method .ctor in assembly
+/home/ankit/a.exe, type <Module>
+
+** ERROR **: Can't find custom attr constructor image: /home/ankit/a.exe
+mtoken: 0x0a000006
+aborting...
+Aborted
+
+On doing a monodis on the .exe, the problems seems to be in the class
+"Unit", which defines a custom attribute as :
+
+.custom instance void .ctor() = ( 01 00 00 00 )
+
+ildasm.exe takes the classref for that as <Module>, mono also recognizes
+that cant seem to find the .ctor.
+
+$ monodis --customattr a.exe
+Custom Attributes Table (1..7)
+1: Assembly: 1: instance void class
+[mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(bool, bool) [true,
+true]
+
+** (process:22936): WARNING **: Missing method .ctor in assembly
+/home/ankit/a.exe, type <Module>
+
+** (process:22936): WARNING **: Missing method .ctor in assembly
+/home/ankit/a.exe, type <Module>
+Segmentation fault