[Mono-bugs] [Bug 334740] file threads.c: line 3345 (mono_thread_set_state): assertion failed: (ret == 0)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 22 14:22:28 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=334740#c12


Marek Safar <msafar at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |msafar at novell.com
             Status|NEEDINFO                                        |NEW
      Info Provider|sontek at gmail.com                                |




--- Comment #12 from Marek Safar <msafar at novell.com>  2007-10-22 12:22:28 MST ---
Reopening on Paolo's request.

I am experiencing same problem when I do `make run-test-local' in /mcs/tests

test-180.cs...  OK
test-181.cs...  OK
test-182.cs...  OK
test-183.cs...  OK
test-184.cs...  OK
test-185.cs...  OK
test-186.cs...  OK
test-187.cs...  OK
test-188.cs...  OK
test-189.cs...  OK
test-19.cs...
** ERROR **: file threads.c: line 814
(ves_icall_System_Threading_Thread_Thread_internal): assertion failed: (ret ==
0)
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Threading.Thread.Thread_internal
(System.MulticastDelegate) <0x00004>
  at (wrapper managed-to-native) System.Threading.Thread.Thread_internal
(System.MulticastDelegate) <0xffffffff>
  at System.Threading.Thread.Start () [0x00034] in
/home/marek/svn/mcs/class/corlib/System.Threading/Thread.cs:696
  at X.Main () <0x000b6>
  at (wrapper runtime-invoke) X.runtime_invoke_int
(object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke
(object,object[]) <0x00004>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke
(object,object[]) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
[0x00055] in
/home/marek/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:149
  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00000] in
/home/marek/svn/mcs/class/corlib/System.Reflection/MethodBase.cs:93
  at TestRunner.PositiveChecker.ExecuteFile
(System.Reflection.MethodInfo,string,string) [0x0003e] in
/home/marek/svn/mcs/tools/compiler-tester/compiler-tester.cs:469
  at TestRunner.PositiveChecker.Check (TestRunner.TestCase) [0x0010e] in
/home/marek/svn/mcs/tools/compiler-tester/compiler-tester.cs:427
  at TestRunner.Checker.Do (string) [0x00114] in
/home/marek/svn/mcs/tools/compiler-tester/compiler-tester.cs:228
  at TestRunner.Tester.Main (string[]) [0x0016b] in
/home/marek/svn/mcs/tools/compiler-tester/compiler-tester.cs:869
  at (wrapper runtime-invoke) TestRunner.Tester.runtime_invoke_int_string[]
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /home/marek/svn/mono/mono/mini/mono [0x817841e]
        [0xffffe440]
        /lib/tls/i686/cmov/libc.so.6(abort+0x101) [0x4016a201]
        /usr/lib/libglib-2.0.so.0(g_logv+0x4ca) [0x40076f4a]
        /usr/lib/libglib-2.0.so.0(g_log+0x29) [0x40076f89]
        /usr/lib/libglib-2.0.so.0(g_assert_warning+0x76) [0x40077006]
        /home/marek/svn/mono/mono/mini/mono [0x80e5cbe]
        [0x41f4bc82]
        [0x41f4bb8a]
        [0x41f4b82f]
        [0x41f4b5f7]
        /home/marek/svn/mono/mono/mini/mono(mono_runtime_invoke_array+0x1bd)
[0x80b2c4d]
        /home/marek/svn/mono/mono/mini/mono [0x8106ff9]
        [0x4088a075]
        [0x4088979b]
        [0x413999db]
        [0x4162e4db]
        [0x41399637]
        [0x41397464]
        [0x4087e5c4]
        [0x4087e1c4]
        /home/marek/svn/mono/mono/mini/mono(mono_runtime_exec_main+0x10e)
[0x80b4bde]
        /home/marek/svn/mono/mono/mini/mono(mono_runtime_run_main+0x1ba)
[0x80b4eca]
        /home/marek/svn/mono/mono/mini/mono(mono_main+0xfaf) [0x805b3bf]
        /home/marek/svn/mono/mono/mini/mono [0x8059f02]
        /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0x40154050]
        /home/marek/svn/mono/mono/mini/mono [0x8059e71]

Debug info from gdb:

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1076398816 (LWP 30857)]
[New Thread 1106332560 (LWP 30938)]
[New Thread 1105263504 (LWP 30937)]
[New Thread 1104194448 (LWP 30936)]
[New Thread 1103141776 (LWP 30935)]
[New Thread 1089563536 (LWP 30924)]
[New Thread 1088379792 (LWP 30923)]
0xffffe410 in __kernel_vsyscall ()
  7 Thread 1088379792 (LWP 30923)  0xffffe410 in __kernel_vsyscall ()
  6 Thread 1089563536 (LWP 30924)  0xffffe410 in __kernel_vsyscall ()
  5 Thread 1103141776 (LWP 30935)  0xffffe410 in __kernel_vsyscall ()
  4 Thread 1104194448 (LWP 30936)  0xffffe410 in __kernel_vsyscall ()
  3 Thread 1105263504 (LWP 30937)  0xffffe410 in __kernel_vsyscall ()
  2 Thread 1106332560 (LWP 30938)  0xffffe410 in __kernel_vsyscall ()
  1 Thread 1076398816 (LWP 30857)  0xffffe410 in __kernel_vsyscall ()

Thread 7 (Thread 1088379792 (LWP 30923)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4010d9f6 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x08110761 in collection_thread (unused=0x0) at collection.c:34
#3  0x4010646b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0x4021173e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 6 (Thread 1089563536 (LWP 30924)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4010a676 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0811deaf in timedwait_signal_poll_cond (cond=0x408e21dc, 
    mutex=0x408e21c4, timeout=0x0, alertable=0) at handles.c:1443
#3  0x0812094f in _wapi_handle_timedwait_signal_handle (handle=0x404, 
    timeout=0x0, alertable=0) at handles.c:1523
#4  0x081209cc in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
    at handles.c:1483
#5  0x0812375f in WaitForSingleObjectEx (handle=0x404, timeout=4294967295, 
    alertable=0) at wait.c:200
#6  0x0810f3ea in finalizer_thread (unused=0x0) at gc.c:847
#7  0x080e42b4 in start_wrapper (data=0x825f858) at threads.c:550
#8  0x0811c0b2 in thread_start_routine (args=0x409343c0) at threads.c:264
#9  0x08135c55 in GC_start_routine (arg=0x22f40) at pthread_support.c:1369
#10 0x4010646b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0x4021173e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread 1103141776 (LWP 30935)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4010a8fc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0811de6a in timedwait_signal_poll_cond (cond=0x408e202c, 
    mutex=0x408e2014, timeout=0x41c09278, alertable=1) at handles.c:1453
#3  0x0812094f in _wapi_handle_timedwait_signal_handle (handle=0x400, 
    timeout=0x41c09278, alertable=1) at handles.c:1523
#4  0x0812361a in WaitForSingleObjectEx (handle=0x400, timeout=10000, 
    alertable=1) at wait.c:202
#5  0x080d8aaf in async_invoke_thread (data=0x0) at threadpool.c:1228
#6  0x080e42b4 in start_wrapper (data=0xab8ef18) at threads.c:550
#7  0x0811c0b2 in thread_start_routine (args=0x409344f8) at threads.c:264
#8  0x08135c55 in GC_start_routine (arg=0x246f40) at pthread_support.c:1369
#9  0x4010646b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x4021173e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 1104194448 (LWP 30936)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4010a8fc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0811de6a in timedwait_signal_poll_cond (cond=0x408e202c, 
    mutex=0x408e2014, timeout=0x41d0a278, alertable=1) at handles.c:1453
#3  0x0812094f in _wapi_handle_timedwait_signal_handle (handle=0x400, 
    timeout=0x41d0a278, alertable=1) at handles.c:1523
#4  0x0812361a in WaitForSingleObjectEx (handle=0x400, timeout=10000, 
    alertable=1) at wait.c:202
#5  0x080d8aaf in async_invoke_thread (data=0x0) at threadpool.c:1228
#6  0x080e42b4 in start_wrapper (data=0xaba40a8) at threads.c:550
#7  0x0811c0b2 in thread_start_routine (args=0x40934630) at threads.c:264
#8  0x08135c55 in GC_start_routine (arg=0x246f40) at pthread_support.c:1369
#9  0x4010646b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x4021173e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 1105263504 (LWP 30937)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4010a8fc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0811de6a in timedwait_signal_poll_cond (cond=0x408e202c, 
    mutex=0x408e2014, timeout=0x41e0f278, alertable=1) at handles.c:1453
#3  0x0812094f in _wapi_handle_timedwait_signal_handle (handle=0x400, 
    timeout=0x41e0f278, alertable=1) at handles.c:1523
#4  0x0812361a in WaitForSingleObjectEx (handle=0x400, timeout=10000, 
    alertable=1) at wait.c:202
#5  0x080d8aaf in async_invoke_thread (data=0x0) at threadpool.c:1228
#6  0x080e42b4 in start_wrapper (data=0xaba3948) at threads.c:550
#7  0x0811c0b2 in thread_start_routine (args=0x40934768) at threads.c:264
#8  0x08135c55 in GC_start_routine (arg=0x246f40) at pthread_support.c:1369
#9  0x4010646b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x4021173e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 1106332560 (LWP 30938)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4010a8fc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0811de6a in timedwait_signal_poll_cond (cond=0x408e202c, 
    mutex=0x408e2014, timeout=0x41f14278, alertable=1) at handles.c:1453
#3  0x0812094f in _wapi_handle_timedwait_signal_handle (handle=0x400, 
    timeout=0x41f14278, alertable=1) at handles.c:1523
#4  0x0812361a in WaitForSingleObjectEx (handle=0x400, timeout=10000, 
    alertable=1) at wait.c:202
#5  0x080d8aaf in async_invoke_thread (data=0x0) at threadpool.c:1228
#6  0x080e42b4 in start_wrapper (data=0xaba14d8) at threads.c:550
#7  0x0811c0b2 in thread_start_routine (args=0x409348a0) at threads.c:264
#8  0x08135c55 in GC_start_routine (arg=0x246f40) at pthread_support.c:1369
#9  0x4010646b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x4021173e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 1076398816 (LWP 30857)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4020a301 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0x4009f780 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#3  0x4009fb4c in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0
#4  0x081784b9 in mono_handle_native_sigsegv (signal=6, ctx=0xbf9f246c)
    at mini-exceptions.c:1061
#5  <signal handler called>
#6  0xffffe410 in __kernel_vsyscall ()
#7  0x40168875 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0x4016a201 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0x40076f4a in g_logv () from /usr/lib/libglib-2.0.so.0
#10 0x40076f89 in g_log () from /usr/lib/libglib-2.0.so.0
#11 0x40077006 in g_assert_warning () from /usr/lib/libglib-2.0.so.0
#12 0x080e5cbe in ves_icall_System_Threading_Thread_Thread_internal (
    this=0x81a6900, start=0x862870) at threads.c:814
#13 0x41f4bc82 in ?? ()
#14 0x00085840 in ?? ()
#15 0x00862870 in ?? ()
#16 0xbf9f2f3c in ?? ()
#17 0x00021e10 in ?? ()
#18 0xbf9f2f3c in ?? ()
#19 0x00000000 in ?? ()
#0  0xffffe410 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 (core dumped)
make: *** [run-test-local] Error 134


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list