[Mono-bugs] [Bug 627840] New: [X86, AMD64] mono_class_layout_fields: assertion failed: (class->image->dynamic || field->offset > 0)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 3 08:15:30 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=627840

http://bugzilla.novell.com/show_bug.cgi?id=627840#c0


           Summary: [X86, AMD64] mono_class_layout_fields: assertion
                    failed: (class->image->dynamic || field->offset > 0)
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: meebey at meebey.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4
(KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4

On Mono 2.6.7 the generics-sharing.2.cs test-case fails with an assertion on
X86 and AMD64 (further arches not tested), see:

MONO_PATH=../../mcs/class/lib/net_2_0 ../../runtime/mono-wrapper
./../mcs/class/lib/net_2_0/gmcs.exe -unsafe -nowarn:0162 -nowarn:0168
-nowarn:0219 -debug -r:TestDriver.dll -out:generics-sharing.2.exe
generics-sharing.2.cs
**
ERROR:class.c:1725:mono_class_layout_fields: assertion failed:
(class->image->dynamic || field->offset > 0)
Stacktrace:

  at (wrapper managed-to-native) System.Type.MakeGenericType
(System.Type,System.Type[]) <0x00004>
  at (wrapper managed-to-native) System.Type.MakeGenericType
(System.Type,System.Type[]) <0x00004>
  at System.Type.MakeGenericType (System.Type[]) <0x00144>
  at Mono.CSharp.GenericTypeExpr.DoResolveAsTypeStep
(Mono.CSharp.IMemberContext) <0x0009c>
  at Mono.CSharp.TypeExpr.ResolveAsTypeStep (Mono.CSharp.IMemberContext,bool)
<0x0001e>
  at Mono.CSharp.Expression.ResolveAsBaseTerminal
(Mono.CSharp.IMemberContext,bool) <0x0004d>
  at Mono.CSharp.Expression.ResolveAsTypeTerminal
(Mono.CSharp.IMemberContext,bool) <0x0001b>
  at Mono.CSharp.Nullable.NullableType.DoResolveAsTypeStep
(Mono.CSharp.IMemberContext) <0x000f6>
  at Mono.CSharp.TypeExpr.ResolveAsTypeStep (Mono.CSharp.IMemberContext,bool)
<0x0001e>
  at Mono.CSharp.Expression.ResolveAsBaseTerminal
(Mono.CSharp.IMemberContext,bool) <0x0004d>
  at Mono.CSharp.Nullable.NullableType.ResolveAsTypeTerminal
(Mono.CSharp.IMemberContext,bool) <0x00018>
  at Mono.CSharp.ComposedCast.DoResolveAsTypeStep (Mono.CSharp.IMemberContext)
<0x00108>
  at Mono.CSharp.TypeExpr.ResolveAsTypeStep (Mono.CSharp.IMemberContext,bool)
<0x0001e>
  at Mono.CSharp.Expression.ResolveAsBaseTerminal
(Mono.CSharp.IMemberContext,bool) <0x0004d>
  at Mono.CSharp.ComposedCast.ResolveAsTypeTerminal
(Mono.CSharp.IMemberContext,bool) <0x00018>
  at Mono.CSharp.MemberBase.ResolveMemberType () <0x00023>
  at Mono.CSharp.MethodOrOperator.ResolveMemberType () <0x0006b>
  at Mono.CSharp.MemberBase.Define () <0x0002a>
  at Mono.CSharp.InterfaceMemberBase.Define () <0x001dd>
  at Mono.CSharp.MethodOrOperator.Define () <0x00014>
  at Mono.CSharp.Method.Define () <0x00095>
  at Mono.CSharp.TypeContainer/MemberCoreArrayList.DefineContainerMembers ()
<0x00086>
  at Mono.CSharp.TypeContainer.DefineContainerMembers
(Mono.CSharp.TypeContainer/MemberCoreArrayList) <0x0001f>
  at Mono.CSharp.Class.DefineContainerMembers
(Mono.CSharp.TypeContainer/MemberCoreArrayList) <0x0004f>
  at Mono.CSharp.TypeContainer.DoDefineMembers () <0x00dbb>
  at Mono.CSharp.Class.DoDefineMembers () <0x00045>
  at Mono.CSharp.TypeContainer.Define () <0x0002c>
  at Mono.CSharp.ClassOrStruct.Define () <0x0001e>
  at Mono.CSharp.Class.Define () <0x000e6>
  at Mono.CSharp.RootContext.PopulateTypes () <0x00286>
  at Mono.CSharp.Driver.Compile () <0x00638>
  at Mono.CSharp.Driver.Main (string[]) <0x0008f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0x00043>

Native stacktrace:

    /home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono()
[0x80d5be9]
    [0x4001d40c]
    /lib/i686/cmov/libc.so.6(abort+0x182) [0x40191b82]
    /lib/libglib-2.0.so.0(g_assertion_message+0x13f) [0x400af31f]
    /lib/libglib-2.0.so.0(+0x6197d) [0x400af97d]
    /home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono()
[0x818f8b4]
    /home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono()
[0x81904e4]
   
/home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono(mono_class_init+0x8cb)
[0x8189fcb]
   
/home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono(mono_type_get_object+0x418)
[0x819a3e8]
    [0x40ec7ba8]
    [0x40ec78ad]
    [0x418540ed]
    [0x4185402f]
    [0x4185112e]
    [0x418543ac]
    [0x4186ca67]
    [0x4185402f]
    [0x4185112e]
    [0x4186c969]
    [0x41869ef9]
    [0x4185402f]
    [0x4185112e]
    [0x41869de9]
    [0x41864094]
    [0x41866d74]
    [0x41863f9b]
    [0x41866676]
    [0x418661bd]
    [0x41865c66]
    [0x4185f71f]
    [0x4185f690]
    [0x4185ed10]
    [0x4185c014]
    [0x4185b05e]
    [0x4185aff5]
    [0x4185addf]
    [0x4185ada7]
    [0x41856c97]
    [0x41501449]
    [0x40ec2240]
    [0x40ec25e4]
    /home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono()
[0x80644c8]
   
/home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono(mono_runtime_invoke+0x40)
[0x8176050]
   
/home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono(mono_runtime_exec_main+0x15b)
[0x8179b7b]
   
/home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono(mono_runtime_run_main+0x112)
[0x8179e02]
   
/home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono(mono_main+0x15ec)
[0x80b3c7c]
    /home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono()
[0x805b715]
    /lib/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x4017ac76]
    /home/meebey/data/projects/debian/pkg-mono/mono/git/mono/mini/mono()
[0x805b651]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0x413d9b70 (LWP 8352)]
[New Thread 0x412b8b70 (LWP 8351)]
[New Thread 0x40c3fb70 (LWP 8350)]
[New Thread 0x40a3eb70 (LWP 8349)]
[New Thread 0x4083db70 (LWP 8348)]
0x4001d424 in __kernel_vsyscall ()
  6 Thread 0x4083db70 (LWP 8348)  0x4001d424 in __kernel_vsyscall ()
  5 Thread 0x40a3eb70 (LWP 8349)  0x4001d424 in __kernel_vsyscall ()
  4 Thread 0x40c3fb70 (LWP 8350)  0x4001d424 in __kernel_vsyscall ()
  3 Thread 0x412b8b70 (LWP 8351)  0x4001d424 in __kernel_vsyscall ()
  2 Thread 0x413d9b70 (LWP 8352)  0x4001d424 in __kernel_vsyscall ()
* 1 Thread 0x402e09c0 (LWP 8335)  0x4001d424 in __kernel_vsyscall ()

Thread 6 (Thread 0x4083db70 (LWP 8348)):
#0  0x4001d424 in __kernel_vsyscall ()
#1  0x4012df7f in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2  0x0820f77a in GC_wait_marker () at pthread_support.c:1785
#3  0x082087fd in GC_help_marker (my_mark_no=6) at mark.c:1116
#4  0x08210565 in GC_mark_thread (id=0x0) at pthread_support.c:548
#5  0x40129955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0x4023010e in clone () from /lib/i686/cmov/libc.so.6

Thread 5 (Thread 0x40a3eb70 (LWP 8349)):
#0  0x4001d424 in __kernel_vsyscall ()
#1  0x4012df7f in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2  0x0820f77a in GC_wait_marker () at pthread_support.c:1785
#3  0x082087fd in GC_help_marker (my_mark_no=6) at mark.c:1116
#4  0x08210565 in GC_mark_thread (id=0x1) at pthread_support.c:548
#5  0x40129955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0x4023010e in clone () from /lib/i686/cmov/libc.so.6

Thread 4 (Thread 0x40c3fb70 (LWP 8350)):
#0  0x4001d424 in __kernel_vsyscall ()
#1  0x4012df7f in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2  0x0820f77a in GC_wait_marker () at pthread_support.c:1785
#3  0x082087fd in GC_help_marker (my_mark_no=6) at mark.c:1116
#4  0x08210565 in GC_mark_thread (id=0x2) at pthread_support.c:548
#5  0x40129955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0x4023010e in clone () from /lib/i686/cmov/libc.so.6

Thread 3 (Thread 0x412b8b70 (LWP 8351)):
#0  0x4001d424 in __kernel_vsyscall ()
#1  0x40131876 in nanosleep () from /lib/i686/cmov/libpthread.so.0
#2  0x081f63a8 in collection_thread (unused=0x0) at collection.c:34
#3  0x40129955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#4  0x4023010e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0x413d9b70 (LWP 8352)):
#0  0x4001d424 in __kernel_vsyscall ()
#1  0x40130385 in sem_wait@@GLIBC_2.1 () from /lib/i686/cmov/libpthread.so.0
#2  0x081ffe68 in mono_sem_wait (sem=0x82c76d8, alertable=0) at
mono-semaphore.c:102
#3  0x0811a8d8 in finalizer_thread (unused=0x0) at gc.c:1022
#4  0x081c294b in start_wrapper (data=0x975e270) at threads.c:666
#5  0x081ee27e in thread_start_routine (args=0x9753abc) at wthreads.c:286
#6  0x08210b15 in GC_start_routine (arg=0x35f20) at pthread_support.c:1390
#7  0x40129955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#8  0x4023010e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0x402e09c0 (LWP 8335)):
#0  0x4001d424 in __kernel_vsyscall ()
#1  0x4013109b in read () from /lib/i686/cmov/libpthread.so.0
#2  0x080d5d9d in mono_handle_native_sigsegv (signal=6, ctx=0xbfb9af1c) at
mini-exceptions.c:1818
#3  <signal handler called>
#4  0x4001d424 in __kernel_vsyscall ()
#5  0x4018e751 in raise () from /lib/i686/cmov/libc.so.6
#6  0x40191b82 in abort () from /lib/i686/cmov/libc.so.6
#7  0x400af31f in g_assertion_message () from /lib/libglib-2.0.so.0
#8  0x400af97d in g_assertion_message_expr () from /lib/libglib-2.0.so.0
#9  0x0818f8b4 in mono_class_layout_fields (class=0x99fc0e0) at class.c:1725
#10 0x081904e4 in mono_class_setup_fields (class=0x99fc0e0) at class.c:1496
#11 0x08189fcb in mono_class_init (class=0x99fc0e0) at class.c:4359
#12 0x0819a3e8 in mono_type_get_object (domain=0x34e70, type=0x99fc15c) at
reflection.c:6364
#13 0x40ec7ba8 in ?? ()
#14 0x40ec78ad in ?? ()
#15 0x418540ed in ?? ()
#16 0x4185402f in ?? ()
#17 0x4185112e in ?? ()
#18 0x418543ac in ?? ()
#19 0x4186ca67 in ?? ()
#20 0x4185402f in ?? ()
#21 0x4185112e in ?? ()
#22 0x4186c969 in ?? ()
#23 0x41869ef9 in ?? ()
#24 0x4185402f in ?? ()
#25 0x4185112e in ?? ()
#26 0x41869de9 in ?? ()
#27 0x41864094 in ?? ()
#28 0x41866d74 in ?? ()
#29 0x41863f9b in ?? ()
#30 0x41866676 in ?? ()
#31 0x418661bd in ?? ()
#32 0x41865c66 in ?? ()
#33 0x4185f71f in ?? ()
#34 0x4185f690 in ?? ()
#35 0x4185ed10 in ?? ()
#36 0x4185c014 in ?? ()
#37 0x4185b05e in ?? ()
#38 0x4185aff5 in ?? ()
#39 0x4185addf in ?? ()
#40 0x4185ada7 in ?? ()
#41 0x41856c97 in ?? ()
#42 0x41501449 in ?? ()
#43 0x40ec2240 in ?? ()
#44 0x40ec25e4 in ?? ()
#45 0x080644c8 in mono_jit_runtime_invoke (method=0x97739cc, obj=0x0,
params=0xbfb9c14c, exc=0x0) at mini.c:4789
#46 0x08176050 in mono_runtime_invoke (method=0x97739cc, obj=0x0,
params=0xbfb9c14c, exc=0x0) at object.c:2613
#47 0x08179b7b in mono_runtime_exec_main (method=0x97739cc, args=0x36ea0,
exc=0x0) at object.c:3575
#48 0x08179e02 in mono_runtime_run_main (method=0x97739cc, argc=9,
argv=0xbfb9c380, exc=0x0) at object.c:3357
#49 0x080b3c7c in main_thread_handler (argc=12, argv=0xbfb9c374) at
driver.c:999
#50 mono_main (argc=12, argv=0xbfb9c374) at driver.c:1732
#51 0x0805b715 in main (argc=12, argv=0xbfb9c374) at main.c:34

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

make[2]: *** [generics-sharing.2.exe] Aborted
make[2]: Leaving directory
`/home/meebey/data/projects/debian/pkg-mono/mono/git/mono/tests'


Reproducible: Always

Steps to Reproduce:
1. build mono 2.6.7
2. run test-cases: cd mono/tests && make test
3. assertion failed

-- 
Configure bugmail: http://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