[Mono-bugs] [Bug 673449] New: compiler crashes: Not a valid token for the constant table: 0x00000000

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 18 14:48:48 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=673449#c0


           Summary: compiler crashes: Not a valid token for the constant
                    table: 0x00000000
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: Hartmut.Luttermann at itemis.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de;
rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

the compiler gives the following output after compilation:

<project-name> (Debug|x86) wird erzeugt

Hauptkompilierung wird ausgeführt...
/Library/Frameworks/Mono.framework/Versions/2.10/bin/gmcs /noconfig
"/out:/Users/../../<project-name>.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Configuration.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Core.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Data.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.DirectoryServices.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Management.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Runtime.Serialization.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Security.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Transactions.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Web.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Windows.Forms.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/2.0/System.Xml.dll"
. more dlls and a lot of .cs-files 

Not a valid token for the constant table: 0x00000000
* Assertion at class.c:6417, condition `cindex' not met

Stacktrace:

  at (wrapper managed-to-native)
System.Reflection.MonoField.GetRawConstantValue (System.Reflection.MonoField)
<0xffffffff>
  at Mono.CSharp.MetadataImporter.CreateField
(System.Reflection.FieldInfo,Mono.CSharp.TypeSpec) <0x00395>
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers
(Mono.CSharp.TypeSpec,bool,Mono.CSharp.MemberCache&) <0x00a4d>
  at Mono.CSharp.TypeSpec.InitializeMemberCache (bool) <0x000a3>
  at Mono.CSharp.TypeSpec.get_MemberCache () <0x00027>
  at Mono.CSharp.MemberCache.FindMembers (Mono.CSharp.TypeSpec,string,bool)
<0x0002d>
  at Mono.CSharp.Expression.ConstructorLookup
(Mono.CSharp.ResolveContext,Mono.CSharp.TypeSpec,Mono.CSharp.Arguments&,Mono.CSharp.Location)
<0x00039>
  at Mono.CSharp.New.DoResolve (Mono.CSharp.ResolveContext) <0x004bf>
  at Mono.CSharp.Expression.Resolve
(Mono.CSharp.ResolveContext,Mono.CSharp.ResolveFlags) <0x00037>
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext) <0x00017>
  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.ResolveContext) <0x00021>
  at Mono.CSharp.SimpleAssign.DoResolve (Mono.CSharp.ResolveContext) <0x00019>
  at Mono.CSharp.Expression.Resolve
(Mono.CSharp.ResolveContext,Mono.CSharp.ResolveFlags) <0x00037>
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext) <0x00017>
  at Mono.CSharp.ExpressionStatement.ResolveStatement
(Mono.CSharp.BlockContext) <0x00017>
  at Mono.CSharp.BlockVariableDeclaration.ResolveInitializer
(Mono.CSharp.BlockContext,Mono.CSharp.LocalVariable,Mono.CSharp.Expression)
<0x0006f>
  at Mono.CSharp.BlockVariableDeclaration.Resolve (Mono.CSharp.BlockContext)
<0x00456>
  at Mono.CSharp.Block.Resolve (Mono.CSharp.BlockContext) <0x002da>
  at Mono.CSharp.ParametersBlock.Resolve
(Mono.CSharp.FlowBranching,Mono.CSharp.BlockContext,Mono.CSharp.IMethodData)
<0x000c4>
  at Mono.CSharp.Constructor.Emit () <0x0039f>
  at Mono.CSharp.TypeContainer.EmitConstructors () <0x00262>
  at Mono.CSharp.TypeContainer.EmitType () <0x0013d>
  at Mono.CSharp.ModuleContainer.Emit () <0x001c7>
  at Mono.CSharp.AssemblyDefinition.Emit () <0x00123>
  at Mono.CSharp.Driver.Compile () <0x00451>
  at Mono.CSharp.Driver.Main (string[]) <0x000ab>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    0   mono                                0x000b6f09
mono_handle_native_sigsegv + 377
    1   libSystem.B.dylib                   0x930552bb _sigtramp + 43
    2   ???                                 0xffffffff 0x0 + 4294967295
    3   libSystem.B.dylib                   0x930c923a raise + 26
    4   libSystem.B.dylib                   0x930d5679 abort + 73
    5   mono                                0x0024ec3a monoeg_g_logv + 195
    6   mono                                0x0024ec9c monoeg_assertion_message
+ 46
    7   mono                                0x001285c0
mono_class_get_field_default_value + 319
    8   mono                                0x0014fcb7
mono_gc_reference_queue_free + 17299
    9   ???                                 0x04d39478 0x0 + 80974968
    10  ???                                 0x043cadee 0x0 + 71085550
    11  ???                                 0x0438d796 0x0 + 70834070
    12  ???                                 0x0438ccc4 0x0 + 70831300
    13  ???                                 0x043832f0 0x0 + 70791920
    14  ???                                 0x043d234e 0x0 + 71115598
    15  ???                                 0x043d220a 0x0 + 71115274
    16  ???                                 0x04d76980 0x0 + 81226112
    17  ???                                 0x043d1d60 0x0 + 71114080
    18  ???                                 0x043d1d10 0x0 + 71114000
    19  ???                                 0x04d4b252 0x0 + 81048146
    20  ???                                 0x04d4b1a2 0x0 + 81047970
    21  ???                                 0x043d1d60 0x0 + 71114080
    22  ???                                 0x043d1d10 0x0 + 71114000
    23  ???                                 0x04d40bc0 0x0 + 81005504
    24  ???                                 0x04d4dbe8 0x0 + 81058792
    25  ???                                 0x04d4cdf7 0x0 + 81055223
    26  ???                                 0x04d405db 0x0 + 81003995
    27  ???                                 0x04d3f8e5 0x0 + 81000677
    28  ???                                 0x04d3dc48 0x0 + 80993352
    29  ???                                 0x04d3d7e3 0x0 + 80992227
    30  ???                                 0x04e7ce4e 0x0 + 82300494
    31  ???                                 0x043d0368 0x0 + 71107432
    32  ???                                 0x043cf4cc 0x0 + 71103692
    33  ???                                 0x014c3272 0x0 + 21770866
    34  ???                                 0x007d3da4 0x0 + 8207780
    35  ???                                 0x007d419c 0x0 + 8208796
    36  mono                                0x00011474 mono_jit_compile_method
+ 308
    37  mono                                0x001bccd2 mono_runtime_invoke +
138
    38  mono                                0x001bf279 mono_runtime_exec_main +
585
    39  mono                                0x001be6b7 mono_runtime_run_main +
852
    40  mono                                0x00088562 mono_main + 6930
    41  mono                                0x00003d36 start + 54
    42  ???                                 0x00000004 0x0 + 4

Debug info from gdb:

/tmp/mono-gdb-commands.kj9w7o:1: Error in sourced command file:
unable to debug self

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================



Reproducible: Always

Steps to Reproduce:
Don't know which line in .cs-files produces the error. Hopefully, the
stacktrace will tell you the problem.

Actual Results:  
monodevelop (MonoDevelop-20402000.dmg) shows one error with the following text
during building the project:
The compiler appears to have crashed. check the build output pad for details.

Expected Results:  
building project without compiler error.

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


More information about the mono-bugs mailing list