[Mono-bugs] [Bug 334493] New: IronPython crash

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 17 05:33:09 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=334493

           Summary: IronPython crash
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: sanxiyn at gmail.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


1. Get IronPython 2.0 Alpha 5.

My build is available from
http://www.ironpython.info/downloads/IPCE-r7.zip

2. Create test.py

class X(object):
    __slots__ = ['y']

3. mono ipy.exe test.py

** ERROR **: file reflection.c: line 2555 (create_generic_typespec): assertion
failed: (klass->generic_container)
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.getToken
(System.Reflection.Emit.ModuleBuilder,object) <0x00004>
  at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.getToken
(System.Reflection.Emit.ModuleBuilder,object) <0xffffffff>
  at System.Reflection.Emit.ModuleBuilder.GetToken
(System.Reflection.MemberInfo) <0x0000d>
  at System.Reflection.Emit.ModuleBuilderTokenGenerator.GetToken
(System.Reflection.MemberInfo) <0x00016>
  at System.Reflection.Emit.ILGenerator.Emit
(System.Reflection.Emit.OpCode,System.Reflection.FieldInfo) <0x0001d>
  at Microsoft.Scripting.Generation.CodeGen.Emit
(System.Reflection.Emit.OpCode,System.Reflection.FieldInfo) <0x00053>
  at Microsoft.Scripting.Generation.FieldSlot.EmitGet
(Microsoft.Scripting.Generation.CodeGen) <0x0007e>
  at IronPython.Compiler.Generation.NewTypeMaker.ImplementSlots () <0x00113>
  at IronPython.Compiler.Generation.NewTypeMaker.CreateNewType () <0x000bc>
  at <>c__CompilerGenerated30.<GetNewType>c__31 () <0x00024>
  at Microsoft.Scripting.Utils.Publisher`2.GetOrCreateValue
(IronPython.Compiler.Generation.NewTypeInfo,Microsoft.Scripting.Utils.Publisher`2/CreateValue)
<0x00161>
  at IronPython.Compiler.Generation.NewTypeMaker.GetNewType
(string,IronPython.Runtime.PythonTuple,Microsoft.Scripting.IAttributesCollection)
<0x00165>
  at IronPython.Runtime.Types.UserTypeBuilder.Build
(Microsoft.Scripting.CodeContext,string,IronPython.Runtime.PythonTuple,Microsoft.Scripting.IAttributesCollection)
<0x00041>
  at IronPython.Runtime.Operations.PythonOps.MakeClass
(Microsoft.Scripting.CodeContext,string,object[],string,System.Delegate)
<0x00305>
  at __main__$mod_7.Initialize (Microsoft.Scripting.CodeContext) <0x0008b>
  at Microsoft.Scripting.ScriptCode.Run (Microsoft.Scripting.CodeContext,bool)
<0x001f9>
  at Microsoft.Scripting.ScriptCode.Run
(Microsoft.Scripting.Scope,Microsoft.Scripting.ModuleContext,bool) <0x0005c>
  at Microsoft.Scripting.ScriptCode.Run
(Microsoft.Scripting.Scope,Microsoft.Scripting.ModuleContext) <0x00012>
  at Microsoft.Scripting.ScriptModule.Execute () <0x00088>
  at IronPython.Hosting.PythonCommandLine.RunFileWorker (string) <0x001d7>
  at IronPython.Hosting.PythonCommandLine.RunFile (string) <0x00079>
  at Microsoft.Scripting.Shell.CommandLine.Run () <0x0007d>
  at IronPython.Hosting.PythonCommandLine.Run () <0x000d2>
  at Microsoft.Scripting.Shell.CommandLine.Run
(Microsoft.Scripting.Hosting.IScriptEngine,Microsoft.Scripting.Shell.IConsole,Microsoft.Scripting.Shell.ConsoleOptions)
<0x00071>
  at Microsoft.Scripting.Hosting.ConsoleHost.RunCommandLine
(Microsoft.Scripting.OptionsParser) <0x001bf>
  at Microsoft.Scripting.Hosting.ConsoleHost.ExecuteInternal () <0x00268>
  at Microsoft.Scripting.Hosting.ConsoleHost.Execute () <0x0009b>
  at Microsoft.Scripting.Hosting.ConsoleHost.Run (string[]) <0x00143>
  at PythonConsoleHost.Main (string[]) <0x00025>
  at (wrapper runtime-invoke) PythonConsoleHost.runtime_invoke_int_string[]
(object,intptr,intptr,intptr) <0xffffffff>


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list