[Mono-bugs] [Bug 375274] New: Use of a native dll- In this case filehelpers. dll causes a catastrophic failure of the compiler

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Mar 30 12:46:47 EDT 2008


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


           Summary: Use of a native dll- In this case filehelpers.dll causes
                    a catastrophic failure of the compiler
           Product: Mono: Compilers
           Version: 1.9.0
          Platform: x86-64
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Other.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gsteri1 at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer


I am compiling a project which works under winXP. The references to some dlls
were missing. The dlls were the output from filehelpers.dll. Instead of
re-building the project (filehelpers) under mono for opensuse 10.3, I did the
bone head thing and just included a reference to the pre-built win32 code. The
following is the mayhem which ensued! -Greg

** ERROR **: file class.c: line 836 (mono_class_setup_fields): assertion
failed: ((packing_size & 0xfffffff0) == 0)
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.Assembly.InternalGetType
(System.Reflection.Module,string,bool,bool) <0x00062>
  at (wrapper managed-to-native) System.Reflection.Assembly.InternalGetType
(System.Reflection.Module,string,bool,bool) <0xffffffff>
  at System.Reflection.Assembly.GetType (string,bool,bool) <0x00045>
  at System.Reflection.Assembly.GetType (string) <0x00026>
  at Mono.CSharp.RootNamespace.GetTypeInAssembly
(System.Reflection.Assembly,string) <0x0002d>
  at Mono.CSharp.GlobalRootNamespace.LookupTypeReflection
(string,Mono.CSharp.Location) <0x00060>
  at Mono.CSharp.Namespace.LookupType (string,Mono.CSharp.Location) <0x0016f>
  at Mono.CSharp.Namespace.Lookup
(Mono.CSharp.DeclSpace,string,Mono.CSharp.Location) <0x000b5>
  at Mono.CSharp.NamespaceEntry.Lookup
(Mono.CSharp.DeclSpace,string,Mono.CSharp.Location,bool) <0x001e3>
  at Mono.CSharp.NamespaceEntry.LookupNamespaceOrType
(Mono.CSharp.DeclSpace,string,Mono.CSharp.Location,bool) <0x0007c>
  at Mono.CSharp.DeclSpace.LookupNamespaceOrType
(string,Mono.CSharp.Location,bool) <0x001ad>
  at Mono.CSharp.DeclSpace.LookupNamespaceOrType
(string,Mono.CSharp.Location,bool) <0x00153>
  at Mono.CSharp.SimpleName.ResolveAsTypeStep
(Mono.CSharp.IResolveContext,bool) <0x00101>
  at Mono.CSharp.Expression.ResolveAsBaseTerminal
(Mono.CSharp.IResolveContext,bool) <0x00047>
  at Mono.CSharp.Expression.ResolveAsTypeTerminal
(Mono.CSharp.IResolveContext,bool) <0x00033>
  at Mono.CSharp.MemberBase.get_MemberType () <0x00061>
  at Mono.CSharp.FieldBase.Define () <0x00017>
  at Mono.CSharp.Field.Define () <0x00031>
  at MemberCoreArrayList.DefineContainerMembers () <0x00095>
  at Mono.CSharp.TypeContainer.DefineContainerMembers
(Mono.CSharp.TypeContainer/MemberCoreArrayList) <0x00020>
  at Mono.CSharp.Class.DefineContainerMembers
(Mono.CSharp.TypeContainer/MemberCoreArrayList) <0x00086>
  at Mono.CSharp.TypeContainer.DoDefineMembers () <0x00a64>
  at Mono.CSharp.Class.DoDefineMembers () <0x00083>
  at Mono.CSharp.TypeContainer.DefineMembers () <0x0005e>
  at Mono.CSharp.RootContext.PopulateTypes () <0x00286>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x00cc7>
  at Mono.CSharp.Driver.Main (string[]) <0x00079>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[]
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /usr/bin/mono [0x533f98]
        /lib64/libpthread.so.0 [0x2b0fa83a3fb0]
        /lib64/libc.so.6(gsignal+0x35) [0x2b0fa8834b45]
        /lib64/libc.so.6(abort+0x110) [0x2b0fa88360e0]
        /usr/lib64/libglib-2.0.so.0(g_logv+0x3ba) [0x2b0fa7f0073a]
        /usr/lib64/libglib-2.0.so.0(g_log+0x83) [0x2b0fa7f007d3]
        /usr/bin/mono [0x45fc78]
        /usr/bin/mono(mono_class_init+0x615) [0x45e085]
        /usr/bin/mono [0x45eb36]
        /usr/bin/mono [0x45ed8d]
        /usr/bin/mono [0x45fb42]
        /usr/bin/mono(mono_class_init+0x615) [0x45e085]
        /usr/bin/mono [0x4c8b54]
        /usr/bin/mono [0x4c8e27]
        /usr/bin/mono [0x4b16cf]
        [0x40294602]

Debug info from gdb:

[?1034hUsing host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2b0fa8d54b40 (LWP 8844)]
[New Thread 0x40224950 (LWP 8848)]
[New Thread 0x40023950 (LWP 8847)]
0x00002b0fa88c2f12 in select () from /lib64/libc.so.6
  3 Thread 0x40023950 (LWP 8847)  0x00002b0fa83a35c1 in nanosleep ()
   from /lib64/libpthread.so.0
  2 Thread 0x40224950 (LWP 8848)  0x00002b0fa83a0656 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  1 Thread 0x2b0fa8d54b40 (LWP 8844)  0x00002b0fa88c2f12 in select ()
   from /lib64/libc.so.6

Thread 3 (Thread 0x40023950 (LWP 8847)):
#0  0x00002b0fa83a35c1 in nanosleep () from /lib64/libpthread.so.0
#1  0x00000000004e6c1a in collection_thread (unused=<value optimized out>)
    at collection.c:34
#2  0x00002b0fa839c020 in start_thread () from /lib64/libpthread.so.0
#3  0x00002b0fa88c928d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x40224950 (LWP 8848)):
#0  0x00002b0fa83a0656 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x00000000004e20ca in timedwait_signal_poll_cond (cond=0x2aaaaadb2268, 
    mutex=0x2aaaaadb2240, timeout=0x0, alertable=-1) at handles.c:1443
#2  0x00000000004e21ee in _wapi_handle_timedwait_signal_handle (
    handle=<value optimized out>, timeout=0x0, alertable=1) at handles.c:1523
#3  0x00000000004e236d in _wapi_handle_wait_signal_handle (
    handle=0x2aaaaadb226c, alertable=3) at handles.c:1483
#4  0x00000000004d3d82 in WaitForSingleObjectEx (handle=0x404, 
    timeout=4294967295, alertable=0) at wait.c:200
#5  0x00000000004a839f in finalizer_thread (unused=<value optimized out>)
    at gc.c:894
#6  0x000000000048daa6 in start_wrapper (data=<value optimized out>)
    at threads.c:589
#7  0x00000000004d5ab0 in thread_start_routine (args=<value optimized out>)
    at threads.c:282
#8  0x00000000004efd47 in GC_start_routine (arg=<value optimized out>)
    at pthread_support.c:1369
#9  0x00002b0fa839c020 in start_thread () from /lib64/libpthread.so.0
#10 0x00002b0fa88c928d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x2b0fa8d54b40 (LWP 8844)):
#0  0x00002b0fa88c2f12 in select () from /lib64/libc.so.6
#1  0x00002b0fa7f270ec in g_spawn_sync () from /usr/lib64/libglib-2.0.so.0
#2  0x00002b0fa7f274c8 in g_spawn_command_line_sync ()
   from /usr/lib64/libglib-2.0.so.0
#3  0x0000000000533ffb in mono_handle_native_sigsegv (
    signal=<value optimized out>, ctx=<value optimized out>)
    at mini-exceptions.c:1044
#4  <signal handler called>
#5  0x00002b0fa8834b45 in raise () from /lib64/libc.so.6
#6  0x00002b0fa88360e0 in abort () from /lib64/libc.so.6
#7  0x00002b0fa7f0073a in g_logv () from /usr/lib64/libglib-2.0.so.0
#8  0x00002b0fa7f007d3 in g_log () from /usr/lib64/libglib-2.0.so.0
#9  0x000000000045fc78 in mono_class_setup_fields (class=0xf6b2c0)
    at class.c:923
#10 0x000000000045e085 in mono_class_init (class=0xf6b2c0) at class.c:3024
#11 0x000000000045eb36 in mono_class_has_references (klass=0xf6b2c0)
    at class.c:993
#12 0x000000000045ed8d in mono_class_layout_fields (class=0xf6a2f0)
    at class.c:1098
#13 0x000000000045fb42 in mono_class_setup_fields (class=0xf6a2f0)
    at class.c:962
#14 0x000000000045e085 in mono_class_init (class=0xf6a2f0) at class.c:3024
#15 0x00000000004c8b54 in mono_reflection_get_type_internal (
    rootimage=0xdc5e30, image=<value optimized out>, info=0x7fff03000a20, 
    ignorecase=0) at reflection.c:6473
#16 0x00000000004c8e27 in mono_reflection_get_type_with_rootimage (
    rootimage=0xdc5e30, image=0x228c, info=0x7fff03000a20, ignorecase=0, 
    type_resolve=0x7fff03000a1c) at reflection.c:6578
#17 0x00000000004b16cf in ves_icall_System_Reflection_Assembly_InternalGetType
    (assembly=0x2aaaabf76300, module=0x0, name=0x2aaaac1d3b58, 
    throwOnError=0 '\0', ignoreCase=6 '\006') at icall.c:4068
#18 0x0000000040294602 in ?? ()
#19 0x000000000071c380 in ?? ()
#20 0x0000000000000006 in ?? ()
#21 0x0000000000000000 in ?? ()
#0  0x00002b0fa88c2f12 in select () from /lib64/libc.so.6


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



Build complete -- 1 error, 0 warnings


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