[Mono-bugs] [Bug 82821][Nor] New - Alloc profiler causes crash in mono-1.2.5

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 12 11:00:03 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by walker_643 at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=82821

--- shadow/82821	2007-09-12 11:00:03.000000000 -0400
+++ shadow/82821.tmp.24225	2007-09-12 11:00:03.000000000 -0400
@@ -0,0 +1,254 @@
+Bug#: 82821
+Product: Mono: Runtime
+Version: 1.2
+OS: 
+OS Details: slackware 12, kernel 2.6.22.6
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: walker_643 at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Alloc profiler causes crash in mono-1.2.5
+
+MyProject.exe runs very well under normal circumstances (mono
+MyProject.exe). It also runs very well with the statistical profiler (mono
+--profile=default:stat MyProject.exe). It crashes, however, with the alloc
+profiler (mono --profile=default:alloc MyProject.exe). The first of two
+dumps is the actual output from the command and the second dump is from gdb.
+
+-------------- BEGIN DUMP 1 ----------------
+>> mono --profile=default:alloc MyProject.exe > profile_alloc.log
+Stacktrace:
+
+  at (wrapper managed-to-native)
+System.Object.__icall_wrapper_mono_object_new_specific (intptr) <0x00004>
+  at (wrapper managed-to-native)
+System.Object.__icall_wrapper_mono_object_new_specific (intptr) <0xffffffff>
+  at KeyboardClassLibrary.Keyboardcontrol.InitializeComponent () <0x001c2>
+  at KeyboardClassLibrary.Keyboardcontrol..ctor () <0x00035>
+  at (wrapper remoting-invoke-with-check)
+KeyboardClassLibrary.Keyboardcontrol..ctor () <0xffffffff>
+  at Fds.MyProject.FormMain.InitializeComponent () <0x00dfa>
+  at Fds.MyProject.FormMain..ctor () <0x0038e>
+  at (wrapper remoting-invoke-with-check) Fds.MyProject.FormMain..ctor ()
+<0xffffffff>
+  at Fds.MyProject.Program.Main () <0x0003c>
+  at (wrapper runtime-invoke) Fds.MyProject.Program.runtime_invoke_void
+(object,intptr,intptr,intptr) <0xffffffff>
+
+Native stacktrace:
+
+        mono [0x8161800]
+        mono [0x812da4d]
+        [0xffffe440]
+        mono [0x809b9ea]
+        mono(mono_object_new_alloc_specific+0x4f) [0x80dff0f]
+        mono(mono_object_new_specific+0x69) [0x80dffb9]
+        [0xb7812fd5]
+        [0xb638b88b]
+        [0xb638b4c6]
+        [0xb638b458]
+        [0xb638581b]
+        [0xb63b2c57]
+        [0xb63b2510]
+        [0xb78128cd]
+        [0xb7810fdc]
+        mono(mono_runtime_exec_main+0xb4) [0x80df954]
+        mono(mono_runtime_run_main+0x1bb) [0x80dfc6b]
+        mono(mono_main+0xf05) [0x8059375]
+        mono [0x8057fad]
+        /lib/libc.so.6(__libc_start_main+0xd8) [0xb7d8fdf8]
+        mono [0x8057f01]
+
+Debug info from gdb:
+
+Using host libthread_db library "/lib/libthread_db.so.1".
+[Thread debugging using libthread_db enabled]
+[New Thread -1210606880 (LWP 5920)]
+[New Thread -1221969008 (LWP 5922)]
+[New Thread -1216214128 (LWP 5921)]
+0xb7e0a924 in fork () from /lib/libc.so.6
+  3 Thread -1216214128 (LWP 5921)  0xb7eef40c in ?? ()
+   from /lib/libpthread.so.0
+  2 Thread -1221969008 (LWP 5922)  0xb7eec3b1 in pthread_cond_wait@@GLIBC_2.3.2
+    () from /lib/libpthread.so.0
+  1 Thread -1210606880 (LWP 5920)  0xb7e0a924 in fork () from /lib/libc.so.6
+
+Thread 3 (Thread -1216214128 (LWP 5921)):
+#0  0xb7eef40c in ?? () from /lib/libpthread.so.0
+#1  0x081068fb in collection_thread (unused=0x0)
+    at ../../../mono/io-layer/collection.c:34
+#2  0xb7ee81b3 in start_thread () from /lib/libpthread.so.0
+#3  0xb7e4a03e in clone () from /lib/libc.so.6
+
+Thread 2 (Thread -1221969008 (LWP 5922)):
+#0  0xb7eec3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
+#1  0x081111dd in timedwait_signal_poll_cond (cond=0xb777d1dc,
+    mutex=0xb777d1c4, timeout=0x0, alertable=0)
+    at ../../../mono/io-layer/handles.c:1413
+#2  0x08113852 in _wapi_handle_timedwait_signal_handle (handle=0x404,
+    timeout=0x0, alertable=0) at ../../../mono/io-layer/handles.c:1493
+#3  0x081138c2 in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
+    at ../../../mono/io-layer/handles.c:1453
+#4  0x0811465c in WaitForSingleObjectEx (handle=0x404, timeout=4294967295,
+    alertable=0) at ../../../mono/io-layer/wait.c:200
+#5  0x08168283 in finalizer_thread (unused=0x0)
+    at ../../../mono/metadata/gc.c:835
+#6  0x080bc07a in start_wrapper (data=0x823d178)
+    at ../../../mono/metadata/threads.c:319
+#7  0x0810b8e7 in thread_start_routine (args=0xb762a260)
+    at ../../../mono/io-layer/threads.c:253
+#8  0x081243f8 in GC_start_routine (arg=0x22f40)
+    at ../../libgc/pthread_support.c:1362
+#9  0xb7ee81b3 in start_thread () from /lib/libpthread.so.0
+#10 0xb7e4a03e in clone () from /lib/libc.so.6
+
+Thread 1 (Thread -1210606880 (LWP 5920)):
+#0  0xb7e0a924 in fork () from /lib/libc.so.6
+#1  0xb7ef11c4 in fork () from /lib/libpthread.so.0
+#2  0xb7f55549 in ?? () from /usr/lib/libglib-2.0.so.0
+#3  0x00000010 in ?? ()
+#4  0xb7eb9128 in main_arena () from /lib/libc.so.6
+#5  0x08589868 in ?? ()
+#6  0x00000038 in ?? ()
+#7  0x00000005 in ?? ()
+#8  0xb7eb7ff4 in ?? () from /lib/libc.so.6
+#9  0x00000010 in ?? ()
+#10 0x0858adb0 in ?? ()
+#11 0x00000010 in ?? ()
+#12 0xbf928300 in ?? ()
+#13 0xb7de3b7e in malloc () from /lib/libc.so.6
+#14 0xb7f5611f in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
+#15 0xb7f56595 in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0
+#16 0x08161885 in mono_handle_native_sigsegv (signal=11, ctx=0xbf928e7c)
+    at ../../../mono/mini/mini-exceptions.c:1081
+#17 0x0812da4d in sigsegv_signal_handler (_dummy=11, info=0xbf928dfc,
+    context=0xbf928e7c) at ../../../mono/mini/mini.c:11125
+#18 <signal handler called>
+#19 0x0809c7f2 in simple_allocation (prof=0x8209ca8, obj=0x89660,
+    klass=0x853c64c) at ../../../mono/metadata/profiler.c:1168
+#20 0x0809b9ea in mono_profiler_allocation (obj=0x89660, klass=0x853c64c)
+    at ../../../mono/metadata/profiler.c:296
+#21 0x080dff0f in mono_object_new_alloc_specific (vtable=0x8538008)
+    at ../../../mono/metadata/object.c:3083
+#22 0x080dffb9 in mono_object_new_specific (vtable=0x8538008)
+    at ../../../mono/metadata/object.c:3064
+#23 0xb7812fd5 in ?? ()
+#24 0x08538008 in ?? ()
+#25 0x0820c7d0 in ?? ()
+#26 0x085b3d2c in ?? ()
+#27 0xbf929230 in ?? ()
+#28 0xbf929230 in ?? ()
+#29 0x000bbe00 in ?? ()
+#30 0x0008b200 in ?? ()
+#31 0x000bbe00 in ?? ()
+#32 0xbf929234 in ?? ()
+#33 0xb7812fa4 in ?? ()
+#34 0xbf9292a8 in ?? ()
+#35 0xb638b88b in ?? ()
+#36 0x08538008 in ?? ()
+#37 0x0008b200 in ?? ()
+#38 0x0008b200 in ?? ()
+#39 0xbf9292b8 in ?? ()
+#40 0xb638d9b8 in ?? ()
+#41 0xbf929264 in ?? ()
+#42 0x0008b200 in ?? ()
+#43 0x0008b200 in ?? ()
+#44 0x00000000 in ?? ()
+#0  0xb7e0a924 in fork () from /lib/libc.so.6
+
+
+=================================================================
+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.
+=================================================================
+
+Aborted
+-------------- END DUMP 1 ----------------
+
+-------------- BEGIN DUMP 2 ----------------
+>> gdb mono
+GNU gdb 6.6
+Copyright (C) 2006 Free Software Foundation, Inc.
+GDB is free software, covered by the GNU General Public License, and you are
+welcome to change it and/or distribute copies of it under certain conditions.
+Type "show copying" to see the conditions.
+There is absolutely no warranty for GDB.  Type "show warranty" for details.
+This GDB was configured as "i486-slackware-linux"...
+Using host libthread_db library "/lib/libthread_db.so.1".
+(gdb) run --profile=default:alloc MyProject.exe
+Starting program: /usr/local/bin/mono --profile=default:alloc MyProject.exe
+[Thread debugging using libthread_db enabled]
+[New Thread -1211446560 (LWP 6178)]
+[New Thread -1217053808 (LWP 6181)]
+[New Thread -1222808688 (LWP 6182)]
+
+Program received signal SIGPWR, Power fail/restart.
+[Switching to Thread -1222808688 (LWP 6182)]
+0xb7e1f3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
+(gdb) bt full
+#0  0xb7e1f3b1 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
+No symbol table info available.
+#1  0x081111dd in timedwait_signal_poll_cond (cond=0xb76b01dc,
+mutex=0xb76b01c4, timeout=0x0, alertable=0)
+    at ../../../mono/io-layer/handles.c:1413
+        fake_timeout = {tv_sec = 1102, tv_nsec = 0}
+        ret = <value optimized out>
+#2  0x08113852 in _wapi_handle_timedwait_signal_handle (handle=0x404,
+timeout=0x0, alertable=0)
+    at ../../../mono/io-layer/handles.c:1493
+        fake_timeout = {tv_sec = 0, tv_nsec = -1222811144}
+#3  0x081138c2 in _wapi_handle_wait_signal_handle (handle=0x404,
+alertable=0) at ../../../mono/io-layer/handles.c:1453
+No locals.
+#4  0x0811465c in WaitForSingleObjectEx (handle=0x404, timeout=4294967295,
+alertable=0) at ../../../mono/io-layer/wait.c:200
+        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {136271772,
+1028, 1031, -1222811016, 1209491968,
+        -149208175}, __mask_was_saved = 0}}, __pad = {0xb71d6350, 0x0,
+0xb7deaff4, 0xb7dec120}}
+        not_first_call = <value optimized out>
+        ret = <value optimized out>
+        waited = 1028
+        abstime = {tv_sec = -1222811016, tv_nsec = 135327481}
+        thr_ret = <value optimized out>
+        apc_pending = <value optimized out>
+        current_thread = (gpointer) 0x408
+        __PRETTY_FUNCTION__ = "WaitForSingleObjectEx"
+#5  0x08168283 in finalizer_thread (unused=0x0) at
+../../../mono/metadata/gc.c:835
+        __PRETTY_FUNCTION__ = "finalizer_thread"
+#6  0x080bc07a in start_wrapper (data=0x823d178) at
+../../../mono/metadata/threads.c:319
+        start_func = (guint32 (*)(void *)) 0x8168240 <finalizer_thread>
+        start_arg = (void *) 0x0
+        tid = 3072158608
+        thread = (MonoThread *) 0x21d20
+        start_delegate = (MonoObject *) 0x0
+        __PRETTY_FUNCTION__ = "start_wrapper"
+#7  0x0810b8e7 in thread_start_routine (args=0xb755d608) at
+../../../mono/io-layer/threads.c:253
+        thr_ret = <value optimized out>
+        __PRETTY_FUNCTION__ = "thread_start_routine"
+#8  0x081243f8 in GC_start_routine (arg=0x22f40) at
+../../libgc/pthread_support.c:1362
+        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {143168, 0,
+0, -1222810728, 1209492272, -149404707},
+      __mask_was_saved = 0}}, __pad = {0xb71d6460, 0x0, 0x0, 0x0}}
+        not_first_call = <value optimized out>
+        dummy = 0
+        result = <value optimized out>
+        start = (ThreadStartFn) 0x810b840 <thread_start_routine>
+        start_arg = (void *) 0xb755d608
+#9  0xb7e1b1b3 in start_thread () from /lib/libpthread.so.0
+No symbol table info available.
+#10 0xb7d7d03e in clone () from /lib/libc.so.6
+No symbol table info available.
+-------------- END DUMP 2 ----------------


More information about the mono-bugs mailing list