[Mono-bugs] [Bug 566689] Ahead of time-compiled multithreaded app fails under Mono 2.6.1

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 4 08:03:19 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=566689

http://bugzilla.novell.com/show_bug.cgi?id=566689#c2


--- Comment #2 from Arthur Penn <apenn at hchb.com> 2010-02-04 13:03:17 UTC ---
Thank you for your response. Was doing some additional testing with the thread
pool-based application under 2.6.1 and am getting the following exception
related to the threading intermittently. Would the fix you applied have
addressed this as well? 

**
ERROR:threads.c:1099:ves_icall_System_Threading_Thread_Thread_free_internal:
assertion failed: (!this->abort_exc && !this->abort_state_handle)
Stacktrace:

  at (wrapper managed-to-native) System.Threading.Thread.Thread_free_internal
(intptr) <0x0004b>
  at (wrapper managed-to-native) System.Threading.Thread.Thread_free_internal
(intptr) <0x0004b>
  at System.Threading.Thread.Finalize () <0x0001b>
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__
(object,intptr,intptr,intptr) <0x00053>

Native stacktrace:

        /usr/bin/cli [0x48a39e]
        /lib/libpthread.so.0 [0x7f650c517080]
        /lib/libc.so.6(gsignal+0x35) [0x7f650bf43fb5]
        /lib/libc.so.6(abort+0x183) [0x7f650bf45bc3]
       
/usr/local/zenoss/common/lib/libglib-2.0.so.0(g_assertion_message_expr+0)
[0x7f650cb9fdde]
       
/usr/local/zenoss/common/lib/libglib-2.0.so.0(g_assertion_message_cmpnum+0)
[0x7f650cb9fe39]
        /usr/bin/cli [0x52f78c]
        [0x4142604b]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0x7f650ce3c730 (LWP 1610)]
[New Thread 0x7f6508788950 (LWP 1627)]
[New Thread 0x7f650898d950 (LWP 1625)]
[New Thread 0x7f6508b92950 (LWP 1624)]
[New Thread 0x7f6508d97950 (LWP 1623)]
[New Thread 0x7f6508f9c950 (LWP 1622)]
[New Thread 0x7f65091a1950 (LWP 1621)]
[New Thread 0x7f65093a6950 (LWP 1619)]
[New Thread 0x7f65095ab950 (LWP 1618)]
[New Thread 0x7f6509a83950 (LWP 1617)]
[New Thread 0x7f6509c84950 (LWP 1616)]
[New Thread 0x7f650a768950 (LWP 1615)]
[New Thread 0x7f650cd94950 (LWP 1614)]
[New Thread 0x7f650be25950 (LWP 1613)]
0x00007f650c51356d in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
  14 Thread 0x7f650be25950 (LWP 1613)  0x00007f650c5132e9 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  13 Thread 0x7f650cd94950 (LWP 1614)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  12 Thread 0x7f650a768950 (LWP 1615)  0x00007f650c515edb in read ()
   from /lib/libpthread.so.0
  11 Thread 0x7f6509c84950 (LWP 1616)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  10 Thread 0x7f6509a83950 (LWP 1617)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  9 Thread 0x7f65095ab950 (LWP 1618)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  8 Thread 0x7f65093a6950 (LWP 1619)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  7 Thread 0x7f65091a1950 (LWP 1621)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  6 Thread 0x7f6508f9c950 (LWP 1622)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  5 Thread 0x7f6508d97950 (LWP 1623)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  4 Thread 0x7f6508b92950 (LWP 1624)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  3 Thread 0x7f650898d950 (LWP 1625)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  2 Thread 0x7f6508788950 (LWP 1627)  0x00007f650c5167e1 in nanosleep ()
   from /lib/libpthread.so.0
  1 Thread 0x7f650ce3c730 (LWP 1610)  0x00007f650c51356d in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0

Thread 14 (Thread 0x7f650be25950 (LWP 1613)):
#0  0x00007f650c5132e9 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x00000000005a7649 in GC_wait_marker () at pthread_support.c:1785
#2  0x00000000005accab in GC_help_marker (my_mark_no=8) at mark.c:1116
#3  0x00000000005a62e4 in GC_mark_thread (id=0x0) at pthread_support.c:548
#4  0x00007f650c50f3ba in start_thread () from /lib/libpthread.so.0
#5  0x00007f650bff6fcd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f650cd94950 (LWP 1614)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x000000000058c142 in collection_thread (unused=<value optimized out>)
    at collection.c:34
#2  0x00007f650c50f3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f650bff6fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f650a768950 (LWP 1615)):
#0  0x00007f650c515edb in read () from /lib/libpthread.so.0
#1  0x000000000048a521 in mono_handle_native_sigsegv (
    signal=<value optimized out>, ctx=<value optimized out>)
    at /usr/include/bits/unistd.h:45
#2  <signal handler called>
#3  0x00007f650bf43fb5 in raise () from /lib/libc.so.6
#4  0x00007f650bf45bc3 in abort () from /lib/libc.so.6
#5  0x00007f650cb9fdde in g_assertion_message ()
   from /usr/local/zenoss/common/lib/libglib-2.0.so.0
#6  0x00007f650cb9fe39 in g_assertion_message_expr ()
   from /usr/local/zenoss/common/lib/libglib-2.0.so.0
#7  0x000000000052f78c in
ves_icall_System_Threading_Thread_Thread_free_internal (this=0x7f650cdd1170,
thread=<value optimized out>) at threads.c:1099
#8  0x000000004142604b in ?? ()
#9  0x000000000245dbe0 in ?? ()
#10 0x00007f650cdc7f50 in ?? ()
#11 0x00007f650a767ec0 in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f6509c84950 (LWP 1616)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650cdd1a10) at threads.c:3829
#3  0x00000000005331df in mono_thread_interruption_checkpoint_request (
    bypass_abort_protection=0) at threads.c:3941
#4  0x00000000005b807c in socket_io_epoll_main (p=<value optimized out>)
    at threadpool.c:622
#5  0x0000000000532ba8 in start_wrapper (data=<value optimized out>)
    at threads.c:662
#6  0x0000000000591d0b in thread_start_routine (args=0x2425168)
    at wthreads.c:286
#7  0x00000000005a72dc in GC_start_routine (arg=0x7f650cdc8c40)
    at pthread_support.c:1390
#8  0x00007f650c50f3ba in start_thread () from /lib/libpthread.so.0
#9  0x00007f650bff6fcd in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f6509a83950 (LWP 1617)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650cdd18a0) at threads.c:3829
#3  0x00000000005331df in mono_thread_interruption_checkpoint_request (
    bypass_abort_protection=0) at threads.c:3941
#4  0x00000000005b83f5 in async_invoke_io_thread (data=<value optimized out>)
    at threadpool.c:354
#5  0x0000000000532ba8 in start_wrapper (data=<value optimized out>)
    at threads.c:662
#6  0x0000000000591d0b in thread_start_routine (args=0x2425230)
    at wthreads.c:286
#7  0x00000000005a72dc in GC_start_routine (arg=0x7f650cdc8c40)
    at pthread_support.c:1390
#8  0x00007f650c50f3ba in start_thread () from /lib/libpthread.so.0
#9  0x00007f650bff6fcd in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f65095ab950 (LWP 1618)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650cdd1730) at threads.c:3829
#3  0x00000000005331df in mono_thread_interruption_checkpoint_request (
    bypass_abort_protection=1) at threads.c:3941
#4  0x00000000418eb6ab in ?? ()
#5  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f65093a6950 (LWP 1619)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650cdd15c0) at threads.c:3829
#3  0x0000000000533178 in mono_thread_get_and_clear_pending_exception ()
    at threads.c:3978
#4  0x00000000418ebba8 in ?? ()
#5  0x00007f650a0d4f30 in ?? ()
#6  0xc299254d38000000 in ?? ()
#7  0x0000000000000025 in ?? ()
#8  0x00000000000000c0 in ?? ()
#9  0x000000000245dac1 in ?? ()
#10 0x00007f650a2cbea8 in ?? ()
#11 0x00007f65097f6050 in ?? ()
#12 0x0000000040138941 in ?? ()
#13 0x00007f650a0d4f30 in ?? ()
#14 0x00007f65093a5a70 in ?? ()
#15 0x00007f65093a59d0 in ?? ()
#16 0x00007f650a2cbea8 in ?? ()
#17 0x00007f65097f6050 in ?? ()
#18 0x00007f650a0d4f30 in ?? ()
#19 0x000000000000ea60 in ?? ()
#20 0x0000000040137ea8 in ?? ()
#21 0x0000000041902350 in ?? ()
#22 0x0000000000000001 in ?? ()
#23 0x0000000041902350 in ?? ()
#24 0x00007f65093a5b10 in ?? ()
#25 0x0000000041902350 in ?? ()
#26 0x00007f650a2cbea8 in ?? ()
#27 0x00007f650a0c7f00 in ?? ()
#28 0x000000000000ea60 in ?? ()
#29 0x00007f65093a5b10 in ?? ()
#30 0x000000004013489c in ?? ()
#31 0xffffffd61729f800 in ?? ()
#32 0x00007f650a0d2fc8 in ?? ()
#33 0x00007f650a119e20 in ?? ()
#34 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f65091a1950 (LWP 1621)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650cdd1450) at threads.c:3829
#3  0x0000000000533178 in mono_thread_get_and_clear_pending_exception ()
    at threads.c:3978
#4  0x00000000418ebba8 in ?? ()
#5  0x00007f65097ef3c0 in ?? ()
#6  0xc299254d38000000 in ?? ()
#7  0x0000000000000025 in ?? ()
#8  0x00000000000000c0 in ?? ()
#9  0x0000000002449f41 in ?? ()
#10 0x00007f650a2cbe70 in ?? ()
#11 0x00007f65097f6050 in ?? ()
#12 0x0000000040138941 in ?? ()
#13 0x00007f65097ef3c0 in ?? ()
#14 0x00007f65091a0a70 in ?? ()
#15 0x00007f65091a09d0 in ?? ()
#16 0x00007f650a2cbe70 in ?? ()
#17 0x00007f65097f6050 in ?? ()
#18 0x00007f65097ef3c0 in ?? ()
#19 0x000000000000ea60 in ?? ()
#20 0x0000000040137ea8 in ?? ()
#21 0x0000000041902350 in ?? ()
#22 0x0000000000000001 in ?? ()
#23 0x0000000041902350 in ?? ()
#24 0x00007f65091a0b10 in ?? ()
#25 0x0000000041902350 in ?? ()
#26 0x00007f650a2cbe70 in ?? ()
#27 0x00007f650a0c7f00 in ?? ()
#28 0x000000000000ea60 in ?? ()
#29 0x00007f65091a0b10 in ?? ()
#30 0x000000004013489c in ?? ()
#31 0xffffffd61729f800 in ?? ()
#32 0x00007f650a0d2fc8 in ?? ()
#33 0x00007f650a119e20 in ?? ()
#34 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f6508f9c950 (LWP 1622)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650cdd12e0) at threads.c:3829
#3  0x00000000005331df in mono_thread_interruption_checkpoint_request (
    bypass_abort_protection=1) at threads.c:3941
#4  0x00000000418eb6ab in ?? ()
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f6508d97950 (LWP 1623)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650cdd1170) at threads.c:3829
#3  0x0000000000533178 in mono_thread_get_and_clear_pending_exception ()
    at threads.c:3978
#4  0x00000000418ebba8 in ?? ()
#5  0x00007f65097ef690 in ?? ()
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f6508b92950 (LWP 1624)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650cdd1000) at threads.c:3829
#3  0x0000000000533178 in mono_thread_get_and_clear_pending_exception ()
    at threads.c:3978
#4  0x00000000418ebba8 in ?? ()
#5  0x00007f65097ef6c0 in ?? ()
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f650898d950 (LWP 1625)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650a0d1e60) at threads.c:3829
#3  0x0000000000533178 in mono_thread_get_and_clear_pending_exception ()
    at threads.c:3978
#4  0x00000000418ebba8 in ?? ()
#5  0x00007f65097ef390 in ?? ()
#6  0xc299254d38000000 in ?? ()
#7  0x0000000000000025 in ?? ()
#8  0x00000000000000c0 in ?? ()
#9  0x000000000247c891 in ?? ()
#10 0x00007f650a2cbe00 in ?? ()
#11 0x00007f65097f6050 in ?? ()
#12 0x0000000040138941 in ?? ()
#13 0x00007f65097ef390 in ?? ()
#14 0x00007f650898ca70 in ?? ()
#15 0x00007f650898c9d0 in ?? ()
#16 0x00007f650a2cbe00 in ?? ()
#17 0x00007f65097f6050 in ?? ()
#18 0x00007f65097ef390 in ?? ()
#19 0x000000000000ea60 in ?? ()
#20 0x0000000040137ea8 in ?? ()
#21 0x0000000041902350 in ?? ()
#22 0x0000000000000001 in ?? ()
#23 0x0000000041902350 in ?? ()
#24 0x00007f650898cb10 in ?? ()
#25 0x0000000041902350 in ?? ()
#26 0x00007f650a2cbe00 in ?? ()
#27 0x00007f650a0c7f00 in ?? ()
#28 0x000000000000ea60 in ?? ()
#29 0x00007f650898cb10 in ?? ()
#30 0x000000004013489c in ?? ()
#31 0xffffffd61729f800 in ?? ()
#32 0x00007f650a0d2fc8 in ?? ()
#33 0x00007f650a119e20 in ?? ()
#34 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6508788950 (LWP 1627)):
#0  0x00007f650c5167e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000590ceb in SleepEx (ms=0, alertable=0) at wthreads.c:1027
#2  0x0000000000532f12 in mono_thread_execute_interruption (
    thread=0x7f650a0d1cf0) at threads.c:3829
#3  0x00000000005331df in mono_thread_interruption_checkpoint_request (
    bypass_abort_protection=1) at threads.c:3941
#4  0x00000000418ea173 in ?? ()
#5  0x00007f65042bf468 in ?? ()
#6  0x00000000005331aa in mono_thread_interruption_checkpoint_request (
    bypass_abort_protection=142113488) at threads.c:3938
#7  0x00000000418ea173 in ?? ()
#8  0x00007f6508787b20 in ?? ()
#9  0x00000000418ea173 in ?? ()
#10 0x00007f6508787b30 in ?? ()
#11 0x00000000418ea173 in ?? ()
#12 0x0000000041425240 in ?? ()
#13 0x00007f650a77b5a0 in ?? ()
#14 0x00007f6508787d30 in ?? ()
#15 0x00007f6508787b40 in ?? ()
#16 0x00007f650a0d1d38 in ?? ()
#17 0x00007f650a77b5a0 in ?? ()
#18 0x0000000040133740 in ?? ()
#19 0x00007f6508787fa0 in ?? ()
#20 0x00007f65042807a8 in ?? ()
#21 0x00007f650cdc7db8 in ?? ()
#22 0x00007f6508788950 in ?? ()
#23 0x0000000000000001 in ?? ()
#24 0x00007f65042bf468 in ?? ()
#25 0x0000000000576104 in mono_runtime_invoke (method=0x7f6508787b10,
    obj=0x7f65042807a8, params=0x7f6508787fa0, exc=<value optimized out>)
    at object.c:2604
#26 0x00000000418ebb36 in ?? ()
#27 0x00007f650a77b5a0 in ?? ()
#28 0x0000000040138941 in ?? ()
#29 0x00007f65087879d0 in ?? ()
#30 0x00007f650a0d4fc0 in ?? ()
#31 0x00007f6508787a70 in ?? ()
#32 0x00007f650a2cbb28 in ?? ()
#33 0x0000000002464421 in ?? ()
#34 0x00007f6508788918 in ?? ()
#35 0x0000000002464421 in ?? ()
#36 0x00007f6508788918 in ?? ()
#37 0x0000000002476d70 in ?? ()
#38 0x0000000041425864 in ?? ()
#39 0x0000000041902350 in ?? ()
#40 0x00007f6508787b10 in ?? ()
#41 0x00007f6508787ae0 in ?? ()
#42 0x00007f6508787fa0 in ?? ()
#43 0x00007f65042807a8 in ?? ()
#44 0x00007f650cdc7db8 in ?? ()
#45 0x00007f650a0c7f00 in ?? ()
#46 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f650ce3c730 (LWP 1610)):
#0  0x00007f650c51356d in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x000000000058f733 in _wapi_handle_timedwait_signal_handle (handle=0x444,
    timeout=0x7fff14f4d5b0, alertable=1, poll=37912160) at handles.c:1609
#2  0x000000000057e1f7 in WaitForSingleObjectEx (handle=0x444, timeout=2000,
    alertable=1) at wait.c:207
#3  0x000000000054f9c2 in mono_domain_finalize (domain=0x7f650cdc7db0,
    timeout=2000) at gc.c:378
#4  0x000000000041885b in mini_cleanup (domain=0x7f650cdc7db0) at mini.c:5521
#5  0x0000000000571dad in ves_icall_System_Environment_Exit (result=0)
    at icall.c:6402
#6  0x0000000041425ad5 in ?? ()
#7  0x00000000023efcd0 in ?? ()
#8  0x00007f650a55bfa0 in ?? ()
#9  0x00007f650a119ca0 in ?? ()
#10 0x00007f650a2b7c40 in ?? ()
#11 0x00000000418faeb0 in ?? ()
#12 0x00007fff14f4d800 in ?? ()
#13 0x00007fff14f4d640 in ?? ()
#14 0x00007f650a55bfa0 in ?? ()
#15 0x00007f650a119ca0 in ?? ()
#16 0x00007f650a2b7c40 in ?? ()
#17 0x0000000000000005 in ?? ()
#18 0x0000000041425940 in ?? ()
#19 0x0000000000000000 in ?? ()
#0  0x00007f650c51356d in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0

=================================================================
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.
=================================================================

-- 
Configure bugmail: http://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