[Mono-bugs] [Bug 691895] New: compiler stops with error at System.Reflection.MonoField.GetRawConstantValue()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 5 05:04:22 EDT 2011


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

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


           Summary: compiler stops with error at
                    System.Reflection.MonoField.GetRawConstantValue()
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Critical
          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: Community User
           Blocker: No


Description of Problem:
compiler prints error output and stops compiling

Steps to reproduce the problem:
compiling my sources which are compiled without problems by Microsoft
c#-Compiler in SharpDevelop

Actual Results:
following output:
/Library/Frameworks/Mono.framework/Versions/2.10.2/bin/gmcs /noconfig .....
Not a valid token for the constant table: 0x00000000
* Assertion at class.c:6460, condition `cindex' not met

.. some warnings ...
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                                0x000b6ea9 _mh_execute_header +
745129
    1   libSystem.B.dylib                   0x9050e2bb _sigtramp + 43
    2   ???                                 0xffffffff 0x0 + 4294967295
    3   libSystem.B.dylib                   0x9058223a raise + 26
    4   libSystem.B.dylib                   0x9058e679 abort + 73
    5   mono                                0x0024fd9e _mh_execute_header +
2420126
    6   mono                                0x0024fe00 _mh_execute_header +
2420224
    7   mono                                0x001286f8 _mh_execute_header +
1210104
    8   mono                                0x0014fea7 _mh_execute_header +
1371815
    9   ???                                 0x0446d478 0x0 + 71750776
    10  ???                                 0x04410dee 0x0 + 71372270
    11  ???                                 0x042bb93e 0x0 + 69974334
    12  ???                                 0x042bae6c 0x0 + 69971564
    13  ???                                 0x042b1800 0x0 + 69933056
    14  ???                                 0x04418396 0x0 + 71402390
    15  ???                                 0x04418252 0x0 + 71402066
    16  ???                                 0x0449a980 0x0 + 71936384
    17  ???                                 0x04417da8 0x0 + 71400872
    18  ???                                 0x04417d58 0x0 + 71400792
    19  ???                                 0x0447f252 0x0 + 71823954
    20  ???                                 0x0447f1a2 0x0 + 71823778
    21  ???                                 0x04417da8 0x0 + 71400872
    22  ???                                 0x04417d58 0x0 + 71400792
    23  ???                                 0x04474bc0 0x0 + 71781312
    24  ???                                 0x04481bf0 0x0 + 71834608
    25  ???                                 0x04480df7 0x0 + 71831031
    26  ???                                 0x044745db 0x0 + 71779803
    27  ???                                 0x044738e5 0x0 + 71776485
    28  ???                                 0x04471c48 0x0 + 71769160
    29  ???                                 0x044717e3 0x0 + 71768035
    30  ???                                 0x045b0e4e 0x0 + 73076302
    31  ???                                 0x044163b0 0x0 + 71394224
    32  ???                                 0x04415514 0x0 + 71390484
    33  ???                                 0x014042ea 0x0 + 20988650
    34  ???                                 0x0038dda4 0x0 + 3726756
    35  ???                                 0x0038e19c 0x0 + 3727772
    36  mono                                0x000112c4 _mh_execute_header +
66244
    37  mono                                0x001bd83c _mh_execute_header +
1820732
    38  mono                                0x001bfde1 _mh_execute_header +
1830369
    39  mono                                0x001bf21f _mh_execute_header +
1827359
    40  mono                                0x000884c2 _mh_execute_header +
554178
    41  mono                                0x00003a46 _mh_execute_header +
10822
    42  ???                                 0x00000004 0x0 + 4

Debug info from gdb:

/tmp/mono-gdb-commands.M0kdkd: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.
=================================================================


Expected Results:
successful compilation

How often does this happen? 
every time

Additional Information:

-- 
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