[Mono-bugs] [Bug 689533] New: Nemerle Compiler self compiling crashes the runtime.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 25 03:17:16 EDT 2011


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

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


           Summary: Nemerle Compiler self compiling crashes the runtime.
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: emperon at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other
           Blocker: Yes


When we try to build Nemerle compiler we get the following error :

             Stacktrace:
                                 at (wrapper managed-to-native)
System.MonoCustomAttrs.GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool)
<0xffffffff>
                                 at
System.MonoCustomAttrs.GetCustomAttributesBase
(System.Reflection.ICustomAttributeProvider,System.Type) <0x00047>
                                 at System.MonoCustomAttrs.GetCustomAttributes
(System.Reflection.ICustomAttributeProvider,System.Type,bool)
<0x0003d>
                                 at System.MonoType.GetCustomAttributes
(System.Type,bool) <0x00021>
                                 at
Nemerle.Compiler.LibraryReference/ExternalNemerleTypeInfo..ctor
(Nemerle.Compiler.LibraryReference,System.Type,Nemerle.Compiler.NamespaceTree/Node)
<0x000ca>
                                 at
Nemerle.Compiler.LibraryReference.ConstructTypeInfo
(System.Type,Nemerle.Compiler.NamespaceTree/Node) <0x0007d>
                                 at
Nemerle.Compiler.ExternalType.ConstructTypeInfo
(Nemerle.Compiler.NamespaceTree/Node,bool) <0x0002f>
                                 at
Nemerle.Compiler.NamespaceTree/Node.LookupType
(Nemerle.Core.list`1<string>,int) <0x0018f>
                                 at
Nemerle.Compiler.LibraryReference.TypeInfoOfType
(System.Type) <0x000a3>
                                 at
Nemerle.Compiler.LibraryReference.TypeOfType
(Nemerle.Collections.Map`2<string,
Nemerle.Compiler.StaticTypeVar>,System.Type) <0x0042f>
                                 at
Nemerle.Compiler.LibraryReference/ExternalMethodInfo..ctor
(Nemerle.Collections.Map`2<string,
Nemerle.Compiler.StaticTypeVar>,Nemerle.Compiler.LibraryReference,System.Reflection.MethodBase)
<0x001bf>
                                 at
Nemerle.Compiler.LibraryReference/ExternalTypeInfo.imember_of_memberinfo
(System.Reflection.MemberInfo) <0x00095>
                                 at
Nemerle.Compiler.LibraryReference/ExternalTypeInfo.collect_members
() <0x00105>
                                 at
Nemerle.Compiler.LibraryReference/ExternalTypeInfo.LookupMemberImpl
(string) <0x000d5>
                                 at
Nemerle.Compiler.LibraryReference/ExternalTypeInfo.GetMembers
() <0x0001b>
                                 at
Nemerle.Compiler.LibraryReference/ExternalTypeInfo.decode_extension_methods
(Nemerle.Compiler.LibraryReferenceManager) <0x00040>
                                 at
Nemerle.Compiler.LibraryReference/ExternalTypeInfo..ctor
(Nemerle.Compiler.LibraryReference,System.Type,Nemerle.Compiler.NamespaceTree/Node)
<0x008a9>
                                 at
Nemerle.Compiler.LibraryReference/ExternalNemerleTypeInfo..ctor
(Nemerle.Compiler.LibraryReference,System.Type,Nemerle.Compiler.NamespaceTree/Node)
<0x00037>
                                 at
Nemerle.Compiler.LibraryReference.ConstructTypeInfo
(System.Type,Nemerle.Compiler.NamespaceTree/Node) <0x0007d>
                                 at
Nemerle.Compiler.ExternalType.ConstructTypeInfo
(Nemerle.Compiler.NamespaceTree/Node,bool) <0x0002f>
                                 at
Nemerle.Compiler.NamespaceTree/Node.LookupType
(Nemerle.Core.list`1<string>,int) <0x0018f>
                                 at
Nemerle.Compiler.NamespaceTree.LookupExactType (string,int) <0x00061>
                                 at
Nemerle.Compiler.ManagerClass.LookupTypeInfo (string,int) <0x0001f>
                                 at Nemerle.Compiler.ManagerClass.Lookup
(string,int) <0x00019>
                                 at Nemerle.Compiler.InternalTypeClass.lookup
(string,int) <0x0001f>
                                 at
Nemerle.Compiler.InternalTypeClass.InitNemerleTypes () <0x002fb>
                                 at
Nemerle.Compiler.SystemTypeClass.get_NemerleAttribute () <0x00037>
                                 at
Nemerle.Compiler.LibraryReference.ConstructTypeInfo
(System.Type,Nemerle.Compiler.NamespaceTree/Node) <0x0002f>
                                 at
Nemerle.Compiler.ExternalType.ConstructTypeInfo
(Nemerle.Compiler.NamespaceTree/Node,bool) <0x0002f>
                                 at
Nemerle.Compiler.NamespaceTree/Node.LookupType
(Nemerle.Core.list`1<string>,int) <0x0018f>
                                 at
Nemerle.Compiler.NamespaceTree/Node.LookupValue () <0x0001b>
                                 at
Nemerle.Compiler.LibraryReferenceManager.LoadExtensions () <0x000a9>
                                 at
Nemerle.Compiler.ManagerClass/_N__N_lambda__24460__24623.apply_void
() <0x00089>
                                 at
Nemerle.Compiler.ManagerClass._N_tryEx_24483
(Nemerle.Compiler.ManagerClass/_N_closure_24467,Nemerle.Builtins.FunctionVoid)
<0x0001a>
                                 at
Nemerle.Compiler.ManagerClass.LoadExternalLibraries () <0x00177>
                                 at Nemerle.Compiler.ManagerClass.Run ()
<0x0009d>
                                 at
Nemerle.CommandlineCompiler.MainClass.main_with_catching () <0x00145>
                                 at Nemerle.CommandlineCompiler.MainClass.Main
() <0x001b7>
                                 at (wrapper runtime-invoke)
object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
                               Native stacktrace:
                                       mono() [0x80e5702]
                                       mono() [0x81278dc]
                                       mono() [0x806025d]
                                       [0xffffe410]
                                       mono() [0x81cf757]
                                      
mono(mono_reflection_get_custom_attrs_by_type+0x3a) [0x81cf89a]
                                       mono() [0x81910f9]
                                       [0xb6d9f8ae]
                                       [0xb6d9f6c0]
                                       [0xb6d9ef26]
                                       [0xb6bf46aa]
                                       [0xb6be48fb]
                                       [0xb6bec846]
                                       [0xb6bec788]
                                       [0xb6bec5d8]
                                       [0xb6bf1324]
                                       [0xb6bf5410]
                                       [0xb6bdd690]
                                       [0xb6bdc896]
                                       [0xb6bdaca6]
                                       [0xb6bdaa9e]
                                       [0xb6bdf634]
                                       [0xb6bf4841]
                                       [0xb6bed45a]
                                       [0xb6be4868]
                                       [0xb6bec846]
                                       [0xb6bec788]
                                       [0xb6bec5d8]
                                       [0xb6bec42a]
                                       [0xb6bd9d30]
                                       [0xb6bd9cfa]
                                       [0xb6bd9cc8]
                                       [0xb6be478c]
                                       [0xb6be4480]
                                       [0xb6bec7f8]
                                       [0xb6bec788]
                                       [0xb6bec5d8]
                                       [0xb6be443c]
                                       [0xb6be43ba]
                                       [0xb6da5022]
                                       [0xb6d9d5eb]
                                       [0xb6d9d520]
                                       [0xb6d9958e]
                                       [0xb6f4736e]
                                       [0xb7255f38]
                                       [0xb7255d54]
                                       mono() [0x8065366]
                               Debug info from gdb:
:  warning : the debug information found in
"/usr/lib/debug//lib/libc-2.11.3.so.debug" does not match
"/lib/libc.so.6" (CRC mismatch).
:  warning : the debug information found in
"/usr/lib/debug/lib/libc-2.11.3.so.debug" does not match
"/lib/libc.so.6" (CRC mismatch).
                               Missing separate debuginfo for /lib/libc.so.6
                               Try: zypper install -C
"debuginfo(build-id)=4e99c4beda72d59ee70b505b5f9293a0de7b77e5"
                               82      ../sysdeps/unix/syscall-template.S: No
such file or directory.
                               Mono support loaded.
                               [Thread debugging using libthread_db enabled]
                               [New Thread 0xb7234b70 (LWP 9554)]
                               0xb77cfc11 in read () at
./sysdeps/unix/syscall-template.S:82
                                       in ../sysdeps/unix/syscall-template.S
                                 2 Thread 0xb7234b70 (LWP 9554) 
sem_wait@@GLIBC_2.1 () at
./nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S:81
                               * 1 Thread 0xb76586e0 (LWP 9553)  0xb77cfc11 in
read () at
./sysdeps/unix/syscall-template.S:82
                               Thread 2 (Thread 0xb7234b70 (LWP 9554)):
                               #0  sem_wait@@GLIBC_2.1 () at
./nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S:81
                               #1  0x08212668 in mono_sem_wait (sem=0x8336a58,
alertable=1) at
mono-semaphore.c:113
                               #2  0x081ec27c in finalizer_thread (unused=0x0)
at gc.c:1066
                               #3  0x081e881d in start_wrapper_internal
(data=0x839feb8) at threads.c:774
                               #4  start_wrapper (data=0x839feb8) at
threads.c:822
                               #5  0x082020bf in thread_start_routine
(args=0x838fdac) at wthreads.c:285
                               #6  0x0822728b in GC_start_routine (arg=0x5dfe0)
at pthread_support.c:1468
                               #7  0xb77c8980 in start_thread (arg=0xb7234b70)
at pthread_create.c:297
                               #8  0xb772c16e in clone () from /lib/libc.so.6
                               Thread 1 (Thread 0xb76586e0 (LWP 9553)):
                               #0  0xb77cfc11 in read () at
./sysdeps/unix/syscall-template.S:82
                               #1  0x080e58d3 in read (signal=11,
ctx=0xb74e8d0c) at
/usr/include/bits/unistd.h:45
                               #2  mono_handle_native_sigsegv (signal=11,
ctx=0xb74e8d0c) at
mini-exceptions.c:2196
                               #3  0x081278dc in
mono_arch_handle_altstack_exception
(sigctx=0xb74e8d0c, fault_addr=0x8, stack_ovf=0) at
exceptions-x86.c:1221
                               #4  0x0806025d in mono_sigsegv_signal_handler
(_dummy=11,
info=0xb74e8c8c, context=0xb74e8d0c) at mini.c:5864
                               #5  <signal handler called>
                               #6  create_custom_attr (cinfo=<value optimized
out>,
attr_klass="Nemerle.Internal.VariantAttribute", error=0xbf9f8548) at
reflection.c:8185
                               #7  mono_custom_attrs_construct_by_type
(cinfo=<value optimized
out>, attr_klass="Nemerle.Internal.VariantAttribute",
error=0xbf9f8548) at reflection.c:8423
                               #8  0x081cf89a in
mono_reflection_get_custom_attrs_by_type
(obj=0x181da0, attr_klass="Nemerle.Internal.VariantAttribute",
error=0xbf9f8548) at reflection.c:8880
                               #9  0x081910f9 in custom_attrs_get_by_type
(obj=0x181da0,
attr_type=0x17e9c0) at icall.c:7503
                               #10 0xb6d9f8ae in ?? ()
                               #11 0xb6d9f6c0 in ?? ()
                               #12 0xb6d9ef26 in ?? ()
                               #13 0xb6bf46aa in ?? ()
                               #14 0xb6be48fb in ?? ()
                               #15 0xb6bec846 in ?? ()
                               #16 0xb6bec788 in ?? ()
                               #17 0xb6bec5d8 in ?? ()
                               #18 0xb6bf1324 in ?? ()
                               #19 0xb6bf5410 in ?? ()
                               #20 0xb6bdd690 in ?? ()
                               #21 0xb6bdc896 in ?? ()
                               #22 0xb6bdaca6 in ?? ()
                               #23 0xb6bdaa9e in ?? ()
                               #24 0xb6bdf634 in ?? ()
                               #25 0xb6bf4841 in ?? ()
                               #26 0xb6bed45a in ?? ()
                               #27 0xb6be4868 in ?? ()
                               #28 0xb6bec846 in ?? ()
                               #29 0xb6bec788 in ?? ()
                               #30 0xb6bec5d8 in ?? ()
                               #31 0xb6bec42a in ?? ()
                               #32 0xb6bd9d30 in ?? ()
                               #33 0xb6bd9cfa in ?? ()
                               #34 0xb6bd9cc8 in ?? ()
                               #35 0xb6be478c in ?? ()
                               #36 0xb6be4480 in ?? ()
                               #37 0xb6bec7f8 in ?? ()
                               #38 0xb6bec788 in ?? ()
                               #39 0xb6bec5d8 in ?? ()
                               #40 0xb6be443c in ?? ()
                               #41 0xb6be43ba in ?? ()
                               #42 0xb6da5022 in ?? ()
                               #43 0xb6d9d5eb in ?? ()
                               #44 0xb6d9d520 in ?? ()
                               #45 0xb6d9958e in ?? ()
                               #46 0xb6f4736e in ?? ()
                               #47 0xb7255f38 in ?? ()
                               #48 0xb7255d54 in ?? ()
                               #49 0x08065366 in mono_jit_runtime_invoke
(method="Nemerle.CommandlineCompiler.MainClass:Main ()", obj=0x0,
params=0xbf9f92cc, exc=0x0) at mini.c:5746
                               #50 0x081d9b1f in mono_runtime_invoke
(method="Nemerle.CommandlineCompiler.MainClass:Main ()", obj=0x0,
params=0xbf9f92cc, exc=0x0) at object.c:2737
                               #51 0x081dc937 in mono_runtime_exec_main
(method="Nemerle.CommandlineCompiler.MainClass:Main ()", args=0x3ce40,
exc=0x0) at object.c:3920
                               #52 0x080bf153 in main_thread_handler (argc=3,
argv=0xbf9f9494) at
driver.c:1003
                               #53 mono_main (argc=3, argv=0xbf9f9494) at
driver.c:1848
                               #54 0x08059a4e in mono_main_with_options
(argc=3, argv=0xbf9f9494)
at main.c:66
                               #55 main (argc=3, argv=0xbf9f9494) at main.c:97
                              
=================================================================
                               Got a SIGSEGV while executing native code. This
usually indicates
                               a fatal error in the mono runtime or one of the
native libraries
                               used by your application.
                              
=================================================================
                               /home/qq/nemerle/bin/Release/mono-3.5/boot/ncc:
line 2:  9553
Aborted                 mono $MONO_OPTIONS "$(dirname $0)/ncc.exe"
"$@"

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