[Mono-bugs] [Bug 78253][Wis] New - IronPython and System.Reflection.Emit problem

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 1 03:55:16 EDT 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 sanxiyn at gmail.com.

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

--- shadow/78253	2006-05-01 03:55:16.000000000 -0400
+++ shadow/78253.tmp.18004	2006-05-01 03:55:16.000000000 -0400
@@ -0,0 +1,65 @@
+Bug#: 78253
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: sanxiyn at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: IronPython and System.Reflection.Emit problem
+
+SVN revision 60112. Always reproducible.
+
+1. Get IronPython 1.0 Beta 6.
+
+2. Create test.py
+
+class C:
+    pass
+
+3. Run as
+mono IronPythonConsole.exe -X:GenerateAsSnippets test.py
+
+4. Expected result is no error. This works fine with MS.NET.
+
+5. Run as
+mono IronPythonConsole.exe -X:ExceptionDetail -X:GenerateAsSnippets test.py
+
+This produces more useful output:
+
+Object reference not set to an instance of an object
+in <0x0005d> System.Reflection.Emit.ILGenerator:Emit (OpCode opcode,
+System.Reflection.MethodInfo method)
+in <0x00024> IronPython.Compiler.CodeGen:Emit (OpCode opcode,
+System.Reflection.MethodInfo meth)
+in <0x0008b> IronPython.Compiler.CodeGen:EmitCall
+(System.Reflection.MethodInfo mi)
+in <0x00102> IronPython.Compiler.ClassDef:Emit (IronPython.Compiler.CodeGen cg)
+in <0x0001f> IronPython.Compiler.GlobalSuite:Emit
+(IronPython.Compiler.CodeGen cg)
+in <0x00217> IronPython.Compiler.OutputGenerator:GenerateSnippet
+(IronPython.Compiler.CompilerContext context, IronPython.Compiler.Stmt
+body, System.String name, Boolean printExprStmts)
+in <0x001d2> IronPython.Compiler.OutputGenerator:GenerateModuleAsSnippets
+(IronPython.Compiler.CompilerContext context, IronPython.Compiler.Stmt
+body, System.String moduleName)
+in <0x00042> IronPython.Compiler.OutputGenerator:GenerateModule
+(IronPython.Compiler.CompilerContext context, IronPython.Compiler.Stmt
+body, System.String moduleName, System.String sourceFileName)
+in <0x00067> IronPython.Hosting.PythonEngine:RunFileInNewModule
+(System.String fileName, System.String moduleName, Boolean skipLine,
+System.Boolean exitRaised)
+in <0x00108> IronPython.Hosting.PythonEngine:RunFileInNewModule
+(System.String fileName, System.Collections.ArrayList commandLineArgs,
+Boolean introspection, Boolean skipLine)
+in <0x0012b> IronPythonConsole.PythonCommandLine:RunFile
+(IronPython.Hosting.PythonEngine engine, System.Collections.ArrayList args)
+SystemError: Object reference not set to an instance of an object


More information about the mono-bugs mailing list