[Mono-bugs] [Bug 42797][Wis] New - Profiling code is not thread safe
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 12 May 2003 11:28:44 -0400 (EDT)
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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=42797
--- shadow/42797 Mon May 12 11:28:44 2003
+++ shadow/42797.tmp.13098 Mon May 12 11:28:44 2003
@@ -0,0 +1,45 @@
+Bug#: 42797
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Profiling code is not thread safe
+
+After starting to use threads in nunit-gtk, if i run
+
+ mono --profile nunit-gtk.exe
+
+it crashes saying:
+
+** ERROR **: file profiler.c: line 729 (simple_allocation): should not be
+reached
+aborting...
+
+The first few lines of the stack trace:
+
+#0 0x4027ba41 in kill () from /lib/libc.so.6
+#1 0x401fd24b in pthread_kill () from /lib/libpthread.so.0
+#2 0x401fd521 in raise () from /lib/libpthread.so.0
+#3 0x4027c976 in abort () from /lib/libc.so.6
+#4 0x40154490 in g_logv () from /usr/lib/libglib-2.0.so.0
+#5 0x401544b3 in g_log () from /usr/lib/libglib-2.0.so.0
+#6 0x400a7c16 in simple_allocation (prof=0x804a020, obj=0x86fc240,
+ klass=0x809a128) at profiler.c:729
+#7 0x400a6d42 in mono_profiler_allocation (obj=0x86fc240, klass=0x809a128)
+ at profiler.c:177
+#8 0x40083fe0 in mono_object_new_alloc_specific (vtable=0x874a714)
+ at object.c:1201
+#9 0x40083f48 in mono_object_new_specific (vtable=0x874a714) at object.c:1177
+#10 0x40083da3 in mono_object_new (domain=0x805ef80, klass=0x809a128)
+ at object.c:1131