[Mono-bugs] [Bug 77309][Maj] Changed - mono_jit_init called from non-main thread segfaults

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Nov 21 08:42:46 EST 2006


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 pawel.sakowski at mindbreeze.com.

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

--- shadow/77309	2006-02-08 13:38:03.000000000 -0500
+++ shadow/77309.tmp.12516	2006-11-21 08:42:46.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 77309
 Product: Mono: Runtime
 Version: 1.1
 OS: other
 OS Details: Red Hat Enterprise Linux 4 (x86)
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Major
 Component: GC
 AssignedTo: lupus at ximian.com                            
 ReportedBy: horst.reiterer at mind-breeze.com               
 QAContact: mono-bugs at ximian.com
@@ -105,6 +105,62 @@
 other than optimal, to say the least.
 
 ------- Additional Comments From lupus at ximian.com  2006-02-08 13:38 -------
 Fixed in svn, by extending the existing code we used to deal with
 valgrind.
 Thanks for the report.
+
+------- Additional Comments From pawel.sakowski at mindbreeze.com  2006-11-21 08:42 -------
+After having worked for several versions, this fails again:
+
+** ERROR **: file threadpool.c: line 990 (mono_thread_pool_init):
+assertion failed: (async_call_klass)
+aborting...
+
+=================================================================
+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.
+=================================================================
+
+Stacktrace:
+
+
+Native stacktrace:
+
+        /opt/mono/lib/libmono.so.0 [0x409f79]
+        /opt/mono/lib/libmono.so.0 [0x3e6a6f]
+        /lib/tls/libpthread.so.0 [0xbac7c0]
+        /lib/tls/libc.so.6(abort+0xe9) [0x85a149]
+        /usr/lib/libglib-2.0.so.0(g_log+0) [0xbe0ebe]
+        /usr/lib/libglib-2.0.so.0(g_log+0x32) [0xbe0ef0]
+        /opt/mono/lib/libmono.so.0 [0x47e143]
+        /opt/mono/lib/libmono.so.0(mono_runtime_init+0x36) [0x4857e6]
+        /opt/mono/lib/libmono.so.0 [0x3e78fe]
+        /opt/mono/lib/libmono.so.0(mono_jit_init+0xe) [0x3fb5be]
+
+The test code I've used:
+
+#include <pthread.h>
+#include <stdlib.h>
+
+static void *
+routine(void *arg)
+{
+        mono_jit_init();
+}
+
+int
+main()
+{
+        pthread_t thread;
+        if (pthread_create(&thread, NULL, routine, NULL) != 0) {
+              perror("pthread_create");
+              return 1;
+        }
+        if (pthread_join(thread, NULL) != 0) {
+              perror("pthread_join");
+              return 1;
+        }
+        return 0;
+}
+


More information about the mono-bugs mailing list