https://bugzilla.novell.com/show_bug.cgi?id=400643
Summary: [Regression] Mono crashes with *** glibc detected *** mono: free(): invalid pointer: 0x086060b4 *** Product: Mono: Runtime Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: JIT AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: mono-bugs@lists.ximian.com Found By: --- I don't have simple test case, but when use my latest (local) changes to gmcs and trying to compile /mcs/tests/gtest-anon-15.cs I get consistently this. I also noticed someone report same issue on IRC when tried to compile galaxium with mono svn *** glibc detected *** mono: free(): invalid pointer: 0x086060b4 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb7d83a85] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d874f0] /usr/lib/libglib-2.0.so.0(g_free+0x31)[0xb7ef18b1] mono[0x80f96d7] mono[0x8101013] [0xb6ff1c3d] [0xb6ff101d] [0xb6ff0e20] [0xb6ff0cb0] [0xb700991b] [0xb700987c] [0xb7009553] [0xb70094f1] [0xb700944d] [0xb7008ace] [0xb7008921] [0xb700878f] [0xb70086bc] [0xb6fdb363] [0xb6fdabdb] [0xb6fdaa70] [0xb6fda4bb] [0xb6fda425] [0xb6fd8290] [0xb6fe4f5d] [0xb6fe4db3] [0xb6fd7c5c] [0xb6fe150d] [0xb6fe14b6] [0xb6fe1279] [0xb6fe4367] [0xb6fe40c5] [0xb6fe3ea3] [0xb6f9794b] [0xb6ff5f8a] [0xb6f97314] [0xb6ff693e] [0xb6ff5937] [0xb705d136] [0xb792320f] [0xb791e1b4] mono(mono_runtime_exec_main+0x160)[0x80be880] mono(mono_runtime_run_main+0x173)[0x80beb23] mono(mono_main+0x6c8)[0x805b538] mono[0x805a8d2] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7d2e450] mono[0x805a841] ======= Memory map: ======== 00010000-00179000 rwxp 00010000 00:00 0 08048000-0826d000 r-xp 00000000 08:01 33438 /usr/local/bin/mono 0826d000-0826f000 rwxp 00225000 08:01 33438 /usr/local/bin/mono 0826f000-088a1000 rwxp 0826f000 00:00 0 [heap] b6e00000-b6e21000 rwxp b6e00000 00:00 0 b6e21000-b6f00000 ---p b6e21000 00:00 0 b6f73000-b6f7d000 r-xp 00000000 08:01 472468 /lib/libgcc_s.so.1 b6f7d000-b6f7e000 rwxp 0000a000 08:01 472468 /lib/libgcc_s.so.1 b6f94000-b6fc7000 rwxp b6f94000 00:00 0 b6fca000-b700a000 rwxp b6fca000 00:00 0 b700a000-b704c000 r-xp 00000000 08:01 260932 /usr/local/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll b704c000-b706c000 rwxp b704c000 00:00 0 b706c000-b71f1000 r-xp 00000000 08:01 228777 /usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll b71f1000-b7324000 r-xp 00000000 08:01 229811 /usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll b7324000-b7424000 r-xp 00000000 08:03 1458179 /home/marek/svn/mcs/mcs/gmcs.exe b7424000-b7428000 rwxp b7424000 00:00 0 b7428000-b7431000 ---p b7428000 00:00 0 b7431000-b752a000 rwxp b7431000 00:00 0 b752a000-b7549000 ---p b752a000 00:00 0 b7549000-b78ce000 rwxs 00000000 08:03 1575799 /home/marek/.wapi/shared_fileshare-m-6400-Linux-i686-36-12-0 b78ce000-b78e2000 rwxs 00000000 08:03 1574716 /home/marek/.wapi/shared_data-m-6400-Linux-i686-312-12-0 b78e2000-b78eb000 r-xp 00000000 08:01 504967 /lib/tls/i686/cmov/libnss_files-2.7.so b78eb000-b78ed000 rwxp 00008000 08:01 504967 /lib/tls/i686/cmov/libnss_files-2.7.so b78ed000-b78f5000 r-xp 00000000 08:01 504969 /lib/tls/i686/cmov/libnss_nis-2.7.so b78f5000-b78f7000 rwxp 00007000 08:01 504969 /lib/tls/i686/cmov/libnss_nis-2.7.so b78f7000-b790b000 r-xp 00000000 08:01 504964 /lib/tls/i686/cmov/libnsl-2.7.so b790b000-b790d000 rwxp 00013000 08:01 504964 /lib/tls/i686/cmov/libnsl-2.7.so b790d000-b790f000 rwxp b790d000 00:00 0 b790f000-b7916000 r-xp 00000000 08:01 504965 /lib/tls/i686/cmov/libnss_compat-2.7.so b7916000-b7918000 rwxp 00006000 08:01 504965 /lib/tls/i686/cmov/libnss_compat-2.7.so b791e000-b792e000 rwxp b791e000 00:00 0 b792e000-b792f000 r-xp 00000000 08:01 229733 /usr/share/locale-langpack/en_GB/LC_MESSAGES/glib20.mo b792f000-b7930000 r-xp 00000000 08:01 230719 /usr/share/locale-langpack/en_GB/LC_MESSAGES/libc.mo b7930000-b7ba2000 r-xp 00000000 08:01 244449 /usr/local/lib/mono/2.0/mscorlib.dll b7ba2000-b7bb6000 rwxp b7ba2000 00:00 0 b7bb6000-b7bf5000 r-xp 00000000 08:01 1107587 /usr/lib/locale/en_GB.utf8/LC_CTYPE b7bf5000-b7cd6000 r-xp 00000000 08:01 1107630 /usr/lib/locale/en_GB.utf8/LC_COLLATE b7cd6000-b7cd7000 rwxp b7cd6000 00:00 0 b7cd7000-b7cfd000 r-xp 00000000 08:01 1045291 /usr/lib/libpcre.so.3.12.1 b7cfd000-b7cfe000 rwxp 00026000 08:01 1045291 /usr/lib/libpcre.so.3.12.1 b7cfe000-b7cff000 rwxp b7cfe000 00:00 0 b7cff000-b7d16000 r-xp 00000000 08:01 472451 /lib/libselinux.so.1 b7d16000-b7d18000 rwxp 00016000 08:01 472451 /lib/libselinux.so.1 b7d18000-b7e61000 r-xp 00000000 08:01 504958 /lib/tls/i686/cmov/libc-2.7.so b7e61000-b7e62000 r-xp 00149000 08:01 504958 /lib/tls/i686/cmov/libc-2.7.so b7e62000-b7e64000 rwxp 0014a000 08:01 504958 /lib/tls/i686/cmov/libc-2.7.so b7e64000-b7e67000 rwxp b7e64000 00:00 0 b7e67000-b7e8a000 r-xp 00000000 08:01 504962 /lib/tls/i686/cmov/libm-2.7.so b7e8a000-b7e8c000 rwxp 00023000 08:01 504962 /lib/tls/i686/cmov/libm-2.7.so b7e8c000-b7ea0000 r-xp 00000000 08:01 504972 /lib/tls/i686/cmov/libpthread-2.7.so b7ea0000-b7ea2000 rwxp 00013000 08:01 504972 /lib/tls/i686/cmov/libpthread-2.7.so b7ea2000-b7ea4000 rwxp b7ea2000 00:00 0 b7ea4000-b7ea6000 r-xp 00000000 08:01 504961 /lib/tls/i686/cmov/libdl-2.7.so b7ea6000-b7ea8000 rwxp 00001000 08:01 504961 /lib/tls/i686/cmov/libdl-2.7.so b7ea8000-b7eaf000 r-xp 00000000 08:01 504974 /lib/tls/i686/cmov/librt-2.7.so b7eaf000-b7eb1000 rwxp 00006000 08:01 504974 /lib/tls/i686/cmov/librt-2.7.so b7eb1000-b7eb2000 rwxp b7eb1000 00:00 0 b7eb2000-b7f62000 r-xp 00000000 08:01 1044001 /usr/lib/libglib-2.0.so.0.1600.3 b7f62000-b7f63000 rwxp 000b0000 08:01 1044001 /usr/lib/libglib-2.0.so.0.1600.3 b7f63000-b7f67000 r-xp 00000000 08:01 1044249 /usr/lib/libgthread-2.0.so.0.1600.3 b7f67000-b7f68000 rwxp 00003000 08:01 1044249 /usr/lib/libgthread-2.0.so.0.1600.3 b7f69000-b7f6a000 ---p b7f69000 00:00 0 b7f6a000-b7f6d000 rwxp b7f6a000 00:00 0 b7f6d000-b7f6e000 r-xp 00000000 08:01 1108547 /usr/lib/locale/en_GB.utf8/LC_NUMERIC b7f6e000-b7f6f000 r-xp 00000000 08:01 1107870 /usr/lib/locale/en_GB.utf8/LC_TIME b7f6f000-b7f70000 r-xp 00000000 08:01 1107871 /usr/lib/locale/en_GB.utf8/LC_MONETARY b7f70000-b7f71000 r-xp 00000000 08:01 1123879 /usr/lib/locale/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES b7f71000-b7f72000 r-xp 00000000 08:01 1108625 /usr/lib/locale/en_GB.utf8/LC_PAPER b7f72000-b7f73000 r-xp 00000000 08:01 1108644 /usr/lib/locale/en_GB.utf8/LC_NAME b7f73000-b7f74000 r-xp 00000000 08:01 1107872 /usr/lib/locale/en_GB.utf8/LC_ADDRESS b7f74000-b7f75000 r-xp 00000000 08:01 1107873 /usr/lib/locale/en_GB.utf8/LC_TELEPHONE b7f75000-b7f76000 r-xp 00000000 08:01 1108621 /usr/lib/locale/en_GB.utf8/LC_MEASUREMENT b7f76000-b7f7d000 r-xs 00000000 08:01 197735 /usr/lib/gconv/gconv-modules.cache b7f7d000-b7f7e000 r-xp 00000000 08:01 1107874 /usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION b7f7e000-b7f80000 rwxp b7f7e000 00:00 0 b7f80000-b7f81000 r-xp b7f80000 00:00 0 [vdso] b7f81000-b7f9b000 r-xp 00000000 08:01 472389 /lib/ld-2.7.so b7f9b000-b7f9d000 rwxp 00019000 08:01 472389 /lib/ld-2.7.so bf0f9000-bf101000 ---p bf0f9000 00:00 0 bf8e3000-bf8f8000 rwxp bffeb000 00:00 0 [stack] Stacktrace: at (wrapper managed-to-native) System.Reflection.MonoGenericClass.initialize (System.Reflection.MethodInfo[],System.Reflection.ConstructorInfo[],System.Reflection.FieldInfo[],System.Reflection.PropertyInfo[],System.Reflection.EventInfo[]) <0x00004> at (wrapper managed-to-native) System.Reflection.MonoGenericClass.initialize (System.Reflection.MethodInfo[],System.Reflection.ConstructorInfo[],System.Reflection.FieldInfo[],System.Reflection.PropertyInfo[],System.Reflection.EventInfo[]) <0xffffffff> at System.Reflection.MonoGenericClass.initialize () <0x000bc> at System.Reflection.MonoGenericClass.GetConstructors_impl (System.Reflection.BindingFlags,System.Type) <0x00047> at System.Reflection.MonoGenericClass.GetConstructors (System.Reflection.BindingFlags) <0x00067> at System.Type.FindMembers (System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflection.MemberFilter,object) <0x00062> at Mono.CSharp.TypeHandle.GetMembers (System.Reflection.MemberTypes,System.Reflection.BindingFlags) <0x0007b> at Mono.CSharp.MemberCache.AddMembers (System.Reflection.MemberTypes,System.Reflection.BindingFlags,Mono.CSharp.IMemberContainer) <0x0002a> at Mono.CSharp.MemberCache.AddMembers (System.Reflection.MemberTypes,Mono.CSharp.IMemberContainer) <0x00018> at Mono.CSharp.MemberCache.AddMembers (Mono.CSharp.IMemberContainer) <0x0002c> at Mono.CSharp.MemberCache..ctor (Mono.CSharp.IMemberContainer) <0x0016d> at Mono.CSharp.TypeHandle..ctor (System.Type) <0x00150> at Mono.CSharp.TypeHandle.GetTypeHandle (System.Type) <0x0004e> at Mono.CSharp.TypeHandle.GetMemberCache (System.Type) <0x0000b> at Mono.CSharp.TypeManager.MemberLookup_FindMembers (System.Type,System.Reflection.MemberTypes,System.Reflection.BindingFlags,string,bool&) <0x00232> at Mono.CSharp.TypeManager.RealMemberLookup (System.Type,System.Type,System.Type,System.Reflection.MemberTypes,System.Reflection.BindingFlags,string,System.Collections.IList) <0x00152> at Mono.CSharp.TypeManager.MemberLookup (System.Type,System.Type,System.Type,System.Reflection.MemberTypes,System.Reflection.BindingFlags,string,System.Collections.IList) <0x0001f> at Mono.CSharp.Expression.MemberLookup (System.Type,System.Type,System.Type,string,System.Reflection.MemberTypes,System.Reflection.BindingFlags,Mono.CSharp.Location) <0x00042> at Mono.CSharp.Expression.MemberLookupFinal (Mono.CSharp.EmitContext,System.Type,System.Type,string,System.Reflection.MemberTypes,System.Reflection.BindingFlags,Mono.CSharp.Location) <0x0002c> at Mono.CSharp.New.DoResolve (Mono.CSharp.EmitContext) <0x00407> at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags) <0x00134> at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext) <0x00012> at Mono.CSharp.AnonymousMethodStorey.EmitHoistedVariables (Mono.CSharp.EmitContext) <0x0022b> at Mono.CSharp.ExplicitBlock.Emit (Mono.CSharp.EmitContext) <0x0001c> at Mono.CSharp.ToplevelBlock.Emit (Mono.CSharp.EmitContext) <0x0000d> at Mono.CSharp.EmitContext.EmitResolvedTopBlock (Mono.CSharp.ToplevelBlock,bool) <0x00018> at Mono.CSharp.EmitContext.EmitTopBlock (Mono.CSharp.IMethodData,Mono.CSharp.ToplevelBlock) <0x00096> at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace) <0x0014c> at Mono.CSharp.Method.Emit () <0x000a2> at AnonymousMethodMethod.Emit () <0x0003a> at Mono.CSharp.TypeContainer.EmitType () <0x00281> at Mono.CSharp.AnonymousMethodStorey.EmitType () <0x00013> at Mono.CSharp.TypeContainer.EmitType () <0x00c35> at Mono.CSharp.RootContext.EmitCode () <0x0007e> at Mono.CSharp.Driver.Compile () <0x005bd> at Mono.CSharp.Driver.Main (string[]) <0x0006e> at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: mono [0x81ab9ea] [0xb7f80440] /lib/tls/i686/cmov/libc.so.6(abort+0x101) [0xb7d44a01] /lib/tls/i686/cmov/libc.so.6 [0xb7d7bb7c] /lib/tls/i686/cmov/libc.so.6 [0xb7d83a85] /lib/tls/i686/cmov/libc.so.6(cfree+0x90) [0xb7d874f0] /usr/lib/libglib-2.0.so.0(g_free+0x31) [0xb7ef18b1] mono [0x80f96d7] mono [0x8101013] [0xb6ff1c3d] [0xb6ff101d] [0xb6ff0e20] [0xb6ff0cb0] [0xb700991b] [0xb700987c] [0xb7009553] [0xb70094f1] [0xb700944d] [0xb7008ace] [0xb7008921] [0xb700878f] [0xb70086bc] [0xb6fdb363] [0xb6fdabdb] [0xb6fdaa70] [0xb6fda4bb] [0xb6fda425] [0xb6fd8290] [0xb6fe4f5d] [0xb6fe4db3] [0xb6fd7c5c] [0xb6fe150d] [0xb6fe14b6] [0xb6fe1279] [0xb6fe4367] [0xb6fe40c5] [0xb6fe3ea3] [0xb6f9794b] [0xb6ff5f8a] [0xb6f97314] [0xb6ff693e] [0xb6ff5937] [0xb705d136] [0xb792320f] [0xb791e1b4] mono(mono_runtime_exec_main+0x160) [0x80be880] mono(mono_runtime_run_main+0x173) [0x80beb23] mono(mono_main+0x6c8) [0x805b538] mono [0x805a8d2] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7d2e450] mono [0x805a841] Debug info from gdb: Cannot access memory at address 0x71a1 [Thread debugging using libthread_db enabled] [New Thread 0xb7cd6960 (LWP 29089)] [New Thread 0xb7528b90 (LWP 29091)] [New Thread 0xb7f6cb90 (LWP 29090)] 0xb7f80410 in __kernel_vsyscall () 3 Thread 0xb7f6cb90 (LWP 29090) 0xb7f80410 in __kernel_vsyscall () 2 Thread 0xb7528b90 (LWP 29091) 0xb7f80410 in __kernel_vsyscall () 1 Thread 0xb7cd6960 (LWP 29089) 0xb7f80410 in __kernel_vsyscall () Thread 3 (Thread 0xb7f6cb90 (LWP 29090)): #0 0xb7f80410 in __kernel_vsyscall () #1 0xb7e99196 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x08130441 in collection_thread (unused=0x0) at collection.c:34 #3 0xb7e914fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #4 0xb7deee5e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 2 (Thread 0xb7528b90 (LWP 29091)): #0 0xb7f80410 in __kernel_vsyscall () #1 0xb7e95aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x08143a0f in timedwait_signal_poll_cond (cond=0x82b3cd4, mutex=0x82b3cbc, timeout=0x80, alertable=0) at handles.c:1492 #3 0x0814675e in _wapi_handle_timedwait_signal_handle (handle=0x404, timeout=0x0, alertable=0) at handles.c:1572 #4 0x081467dc in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0) at handles.c:1532 #5 0x081492cd in WaitForSingleObjectEx (handle=0x404, timeout=4294967295, alertable=0) at wait.c:200 #6 0x0812f05a in finalizer_thread (unused=0x0) at gc.c:894 #7 0x080f0f60 in start_wrapper (data=0x82be0a0) at threads.c:619 #8 0x08142102 in thread_start_routine (args=0x82b3f14) at threads.c:279 #9 0x0815e205 in GC_start_routine (arg=0x35f20) at pthread_support.c:1369 #10 0xb7e914fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #11 0xb7deee5e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (Thread 0xb7cd6960 (LWP 29089)): #0 0xb7f80410 in __kernel_vsyscall () #1 0xb7e9899b in read () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x081abb61 in mono_handle_native_sigsegv (signal=6, ctx=0xbf8f3cec) at mini-exceptions.c:1182 #3 <signal handler called> #4 0xb7f80410 in __kernel_vsyscall () #5 0xb7d43085 in raise () from /lib/tls/i686/cmov/libc.so.6 #6 0xb7d44a01 in abort () from /lib/tls/i686/cmov/libc.so.6 #7 0xb7d7bb7c in ?? () from /lib/tls/i686/cmov/libc.so.6 #8 0xb7d83a85 in ?? () from /lib/tls/i686/cmov/libc.so.6 #9 0xb7d874f0 in free () from /lib/tls/i686/cmov/libc.so.6 #10 0xb7ef18b1 in g_free () from /usr/lib/libglib-2.0.so.0 #11 0x080f96d7 in mono_save_custom_attrs (image=0xb7e62ff4, obj=0x0, cattrs=<value optimized out>) at reflection.c:1180 #12 0x08101013 in mono_reflection_generic_class_initialize (type=0x137140, methods=0x15f6a8, ctors=0x15f690, fields=0x15f678, properties=0x1562c0, events=0x1562b0) at reflection.c:9121 #13 0xb6ff1c3d in ?? () #14 0xb6ff101d in ?? () #15 0xb6ff0e20 in ?? () #16 0xb6ff0cb0 in ?? () #17 0xb700991b in ?? () #18 0xb700987c in ?? () #19 0xb7009553 in ?? () #20 0xb70094f1 in ?? () #21 0xb700944d in ?? () #22 0xb7008ace in ?? () #23 0xb7008921 in ?? () #24 0xb700878f in ?? () #25 0xb70086bc in ?? () #26 0xb6fdb363 in ?? () #27 0xb6fdabdb in ?? () #28 0xb6fdaa70 in ?? () #29 0xb6fda4bb in ?? () #30 0xb6fda425 in ?? () #31 0xb6fd8290 in ?? () #32 0xb6fe4f5d in ?? () #33 0xb6fe4db3 in ?? () #34 0xb6fd7c5c in ?? () #35 0xb6fe150d in ?? () #36 0xb6fe14b6 in ?? () #37 0xb6fe1279 in ?? () #38 0xb6fe4367 in ?? () #39 0xb6fe40c5 in ?? () #40 0xb6fe3ea3 in ?? () #41 0xb6f9794b in ?? () #42 0xb6ff5f8a in ?? () #43 0xb6f97314 in ?? () #44 0xb6ff693e in ?? () #45 0xb6ff5937 in ?? () #46 0xb705d136 in ?? () #47 0xb792320f in ?? () #48 0xb791e1b4 in ?? () #49 0x080be880 in mono_runtime_exec_main (method=0x137140, args=0x38f48, exc=0x0) at object.c:2986 #50 0x080beb23 in mono_runtime_run_main (method=0x82d344c, argc=2, argv=0xbf8f56f8, exc=0x0) at object.c:2780 #51 0x0805b538 in mono_main (argc=3, argv=0xbf8f56f4) at driver.c:941 #52 0x0805a8d2 in main (argc=) at main.c:30 #0 0xb7f80410 in __kernel_vsyscall () ================================================================= 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. ================================================================= Aborted -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs