[Mono-bugs] [Bug 82782][Wis] New - IronPython 2.0a3/4 assertion failure

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 10 14:27:30 EDT 2007


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 m.david at xmlhacker.com.

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

--- shadow/82782	2007-09-10 14:27:30.000000000 -0400
+++ shadow/82782.tmp.4453	2007-09-10 14:27:30.000000000 -0400
@@ -0,0 +1,168 @@
+Bug#: 82782
+Product: Mono: Runtime
+Version: 1.2
+OS: other
+OS Details: Mac OSX (10.4.10)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: m.david at xmlhacker.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: IronPython 2.0a3/4 assertion failure
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Compile Mono from SVN (Mono 1.2.5./trunk/ r85570)
+2. Access the IronPython 2.0 alpha 4 assemblies from
+http://www.codeplex.com/IronPython
+3. Start the console with mono ipy.exe -X:TabCompletion -X:ColorfulConsole
+4. Enter the following code into the console,
+
+>>> class microprocess(object):
+...     def __init__(self):
+...         super(microprocess, self).__init__()
+...     def main(self): #<--- Look its here!!!
+...         yield 1
+...
+>>> class printer(microprocess):
+...     def __init__(self, tag):
+...         super(printer, self).__init__()
+...         self.tag = tag
+...     def main(self):
+...         while 1:
+...             yield 1 # Must be a generator
+...             print self.tag
+...
+>>> X = printer("Hello World")
+
+Actual Results:
+
+** ERROR **: file mini.c: line 4020 (mono_method_to_ir): assertion failed:
+(!sig->has_type_parameters)
+aborting...
+Stacktrace:
+
+  at IronPython.NewTypes.System.Object_1.GetRule
+(Microsoft.Scripting.Actions.Action,Microsoft.Scripting.CodeContext,object[])
+<0xffffffff>
+  at IronPython.NewTypes.System.Object_1.GetRule
+(Microsoft.Scripting.Actions.Action,Microsoft.Scripting.CodeContext,object[])
+<0x00017>
+  at Microsoft.Scripting.Actions.ActionBinder.GetRule
+(Microsoft.Scripting.CodeContext,Microsoft.Scripting.Actions.Action,object[])
+<0x00108>
+  at Microsoft.Scripting.Actions.DynamicSite`3.UpdateBindingAndInvoke
+(Microsoft.Scripting.CodeContext,object,object) <0x00162>
+  at UninitializedTargetHelper`7.Invoke2
+(Microsoft.Scripting.Actions.DynamicSite`3
+,Microsoft.Scripting.CodeContext,object,object) <0x00019>
+  at Microsoft.Scripting.Actions.DynamicSite`3.Invoke
+(Microsoft.Scripting.CodeContext,object,object) <0x0001e>
+  at (wrapper dynamic-method) System.Object.__init__$5##17
+(object[],Microsoft.Scripting.CodeContext,object,object) <0xffffffff>
+  at (wrapper dynamic-method) System.Object._stub_##23
+(object[],Microsoft.Scripting.Actions.DynamicSite`4,Microsoft.Scripting.CodeContext,object,object,string)
+<0xffffffff>
+  at Microsoft.Scripting.Actions.DynamicSite`4.UpdateBindingAndInvoke
+(Microsoft.Scripting.CodeContext,object,object,string) <0x00282>
+  at UninitializedTargetHelper`7.Invoke3
+(Microsoft.Scripting.Actions.DynamicSite`4
+,Microsoft.Scripting.CodeContext,object,object,string) <0x0001f>
+  at Microsoft.Scripting.Actions.DynamicSite`4.Invoke
+(Microsoft.Scripting.CodeContext,object,object,string) <0x00021>
+  at (wrapper dynamic-method) System.Object._stub_##22
+(object[],Microsoft.Scripting.Actions.DynamicSite`3,Microsoft.Scripting.CodeContext,object,string)
+<0xffffffff>
+  at Microsoft.Scripting.Actions.DynamicSite`3.UpdateBindingAndInvoke
+(Microsoft.Scripting.CodeContext ,object,string) <0x00252>
+  at UninitializedTargetHelper`7.Invoke2
+(Microsoft.Scripting.Actions.DynamicSite`3,Microsoft.Scripting.CodeContext,object,string)
+<0x00019>
+  at Microsoft.Scripting.Actions.DynamicSite`3.Invoke
+(Microsoft.Scripting.CodeContext,object,string) <0x0001e>
+  at (wrapper dynamic-method) System.Object._stub_##21
+(object[],Microsoft.Scripting.Actions.DynamicSite`3,Microsoft.Scripting.CodeContext,object,string)
+<0xffffffff>
+  at Microsoft.Scripting.Actions.DynamicSite`3.UpdateBindingAndInvoke
+(Microsoft.Scripting.CodeContext,object,string) <0x00252>
+  at UninitializedTargetHelper`7.Invoke2
+(Microsoft.Scripting.Actions.DynamicSite`3
+,Microsoft.Scripting.CodeContext,object,string) <0x00019>
+  at Microsoft.Scripting.Actions.DynamicSite`3.Invoke
+(Microsoft.Scripting.CodeContext,object,string) <0x0001e>
+  at (wrapper dynamic-method) System.Object.##20
+(object[],Microsoft.Scripting.CodeContext) <0xffffffff>
+  at Microsoft.Scripting.ScriptCode.Run
+(Microsoft.Scripting.CodeContext,bool) <0x00232>
+  at Microsoft.Scripting.ScriptCode.Run (Microsoft.Scripting.ScriptModule )
+<0x00087>
+  at Microsoft.Scripting.Hosting.CompiledCode.Evaluate
+(Microsoft.Scripting.IScriptModule) <0x00068>
+  at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteInteractiveCode
+(string,Microsoft.Scripting.IScriptModule ) <0x00038>
+  at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteCommand
+(string,Microsoft.Scripting.IScriptModule) <0x00140>
+  at Microsoft.Scripting.Shell.CommandLine.RunOneInteraction () <0x000c4>
+  at Microsoft.Scripting.Shell.CommandLine.TryInteractiveAction () <0x00032>
+  at IronPython.Hosting.PythonCommandLine.TryInteractiveAction () <0x00023>
+  at Microsoft.Scripting.Shell.CommandLine.RunInteractiveLoop () <0x00094>
+  at IronPython.Hosting.PythonCommandLine.RunInteractive () <0x0009c>
+  at Microsoft.Scripting.Shell.CommandLine.Run
+(Microsoft.Scripting.Hosting.IScriptEngine,Microsoft.Scripting.Shell.IConsole
+,Microsoft.Scripting.Shell.ConsoleOptions) <0x00104>
+  at Microsoft.Scripting.Hosting.ConsoleHost.RunCommandLine
+(Microsoft.Scripting.OptionsParser) <0x001d8>
+  at Microsoft.Scripting.Hosting.ConsoleHost.ExecuteInternal () <0x002d6>
+  at Microsoft.Scripting.Hosting.ConsoleHost.Execute () <0x000be>
+  at Microsoft.Scripting.Hosting.ConsoleHost.Run (string[]) <0x00129>
+  at PythonConsoleHost.Main (string[]) <0x00030>
+  at (wrapper runtime-invoke) PythonConsoleHost.runtime_invoke_int_string[]
+(object,intptr,intptr,intptr) <0xffffffff>
+Abort trap
+
+Expected Results:
+
+After hitting enter the console should return a new line as such,
+
+>>> X = printer("Hello World")
+>>>
+
+How often does this happen? 
+
+Always.
+
+Additional Information:
+
+Works as expected on MS.NET,
+
+C:\Users\m.david\Projects\IronPython-2.0A4>.\ipy.exe -X:TabCompletion
+-X:ColorfulConsole
+IronPython console: IronPython 2.0A4 (2.0.10904.02) on .NET 2.0.50727.1320
+Copyright (c) Microsoft Corporation. All rights reserved.
+>>> class microprocess(object):
+...     def __init__(self):
+...         super(microprocess, self).__init__()
+...     def main(self): #<--- Look its here!!!
+...         yield 1
+...
+>>> class printer(microprocess):
+...     def __init__(self, tag):
+...         super(printer, self).__init__()
+...         self.tag = tag
+...     def main(self):
+...         while 1:
+...             yield 1 # Must be a generator
+...             print self.tag
+...
+>>> X = printer("Hello World")
+>>>


More information about the mono-bugs mailing list