(gdb) handle SIGXCPU SIG33 SIG35 SIGPWR nostop noprint Signal Stop Print Pass to program Description SIGXCPU No No Yes CPU time limit exceeded SIGPWR No No Yes Power fail/restart SIG33 No No Yes Real-time event 33 SIG35 No No Yes Real-time event 35 (gdb) Signal Stop Print Pass to program Description SIGXCPU No No Yes CPU time limit exceeded SIGPWR No No Yes Power fail/restart SIG33 No No Yes Real-time event 33 SIG35 No No Yes Real-time event 35 (gdb) define mono_stack Type commands for definition of "mono_stack". End with a line saying just "end". > set $mono_thread = mono_thread_current () > if ($mono_thread == 0x00) > printf "No mono thread associated with this thread\n" > else > set $ucp = malloc (sizeof (ucontext_t)) > call (void) getcontext ($ucp) > call (void) mono_print_thread_dump ($ucp) > call (void) free ($ucp) > end >end (gdb) set unwindonsignal on (gdb) p close(1) $1 = 0 (gdb) p creat("/tmp/foo3", 0600) $2 = 1 (gdb) thread apply 1 mono_stack Thread 1 (Thread 0x2ab9a9325640 (LWP 3979)): (gdb) thread apply 2 mono_stack Thread 2 (Thread 0x2ab9af101700 (LWP 4134)): (gdb) thread apply 3 mono_stack Thread 3 (Thread 0x2ab9c517d700 (LWP 4006)): Program received signal SIGABRT, Aborted. 0x00002ab9aa08ec37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. The program being debugged was signaled while in a function called from GDB. GDB has restored the context to what it was before the call. To change this behavior use "set unwindonsignal off". Evaluation of the expression containing the function (mono_thread_current) will be abandoned. (gdb) thread apply 4 mono_stack Thread 4 (Thread 0x2ab9c4200700 (LWP 4000)): (gdb) thread apply 5 mono_stack Thread 5 (Thread 0x2ab9af302700 (LWP 3998)): (gdb) thread apply 6 mono_stack Thread 6 (Thread 0x2ab9aef00700 (LWP 3996)): (gdb) thread apply 7 mono_stack Thread 7 (Thread 0x2ab9ae563700 (LWP 3981)): (gdb) thread apply 8 mono_stack Thread 8 (Thread 0x2ab9ac2b3700 (LWP 3980)): Program received signal SIGABRT, Aborted. 0x00002ab9aa08ec37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 in ../nptl/sysdeps/unix/sysv/linux/raise.c The program being debugged was signaled while in a function called from GDB. GDB has restored the context to what it was before the call. To change this behavior use "set unwindonsignal off". Evaluation of the expression containing the function (mono_thread_current) will be abandoned. (gdb) thread apply 0 mono_stack warning: Unknown thread 0. (gdb) thread apply all bt Thread 8 (Thread 0x2ab9ac2b3700 (LWP 3980)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00000000006bfef3 in mono_os_cond_wait (mutex=0xa2bba0 , cond=0xa2bb60 ) at ../../mono/utils/mono-os-mutex.h:173 #2 get_work (job=, do_idle=, work_context=, worker_index=0) at sgen-thread-pool.c:165 #3 thread_func (data=) at sgen-thread-pool.c:196 #4 0x00002ab9a9c2c184 in start_thread (arg=0x2ab9ac2b3700) at pthread_create.c:312 #5 0x00002ab9aa15603d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 7 (Thread 0x2ab9ae563700 (LWP 3981)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x000000000065bf3c in mono_os_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0xa1cc40 ) at ../../mono/utils/mono-os-semaphore.h:209 #2 mono_coop_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0xa1cc40 ) at ../../mono/utils/mono-coop-semaphore.h:43 #3 finalizer_thread (unused=unused@entry=0x0) at gc.c:893 #4 0x0000000000615a33 in start_wrapper_internal (stack_ptr=, start_info=0x0) at threads.c:1071 #5 start_wrapper (data=0x1ff5f00) at threads.c:1131 #6 0x00002ab9a9c2c184 in start_thread (arg=0x2ab9ae563700) at pthread_create.c:312 #7 0x00002ab9aa15603d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 6 (Thread 0x2ab9aef00700 (LWP 3996)): #0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135 #1 0x00002ab9a9c2e649 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0 #2 0x00002ab9a9c2e470 in __GI___pthread_mutex_lock (mutex=0xa1d638 ) at ../nptl/pthread_mutex_lock.c:79 #3 0x000000000066ae91 in mono_os_mutex_lock (mutex=0xa1d638 ) at ../../mono/utils/mono-os-mutex.h:99 #4 mono_coop_mutex_lock (mutex=0xa1d638 ) at ../../mono/utils/mono-coop-mutex.h:56 #5 worker_try_create () at threadpool-worker-default.c:520 #6 0x000000000066b045 in worker_request () at threadpool-worker-default.c:598 #7 0x000000000066b9e8 in mono_threadpool_worker_request () at threadpool-worker-default.c:354 #8 0x0000000000618275 in ves_icall_System_Threading_ThreadPool_RequestWorkerThread () at threadpool.c:802 #9 0x00000000413bb219 in ?? () #10 0x00002ab9ac4db9e0 in ?? () #11 0x0000000000000000 in ?? () Thread 5 (Thread 0x2ab9af302700 (LWP 3998)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x0000000000613a2c in mono_os_sem_wait (flags=MONO_SEM_FLAGS_NONE, sem=0x2ab9bc0bfb68) at ../../mono/utils/mono-os-semaphore.h:209 #2 mono_coop_sem_wait (flags=MONO_SEM_FLAGS_NONE, sem=0x2ab9bc0bfb68) at ../../mono/utils/mono-coop-semaphore.h:43 #3 create_thread (thread=thread@entry=0x2ab9a94404a0, internal=internal@entry=0x2ab9a9445090, start_delegate=start_delegate@entry=0x0, start_func=start_func@entry=0x66a270 , start_func_arg=start_func_arg@entry=0x0, ---Type to continue, or q to quit--- flags=flags@entry=MONO_THREAD_CREATE_FLAGS_THREADPOOL, error=error@entry=0x2ab9af301710) at threads.c:1231 #4 0x0000000000613f0f in mono_thread_create_internal (domain=, func=func@entry=0x66a270 , arg=arg@entry=0x0, flags=flags@entry=MONO_THREAD_CREATE_FLAGS_THREADPOOL, error=error@entry=0x2ab9af301710) at threads.c:1295 #5 0x000000000066aceb in worker_try_create () at threadpool-worker-default.c:554 #6 0x000000000066b045 in worker_request () at threadpool-worker-default.c:598 #7 0x000000000066b9e8 in mono_threadpool_worker_request () at threadpool-worker-default.c:354 #8 0x0000000000618275 in ves_icall_System_Threading_ThreadPool_RequestWorkerThread () at threadpool.c:802 #9 0x00000000413bb219 in ?? () #10 0x00002ab9af301cb8 in ?? () #11 0x00002ab9bc002610 in ?? () #12 0x0000000000000003 in ?? () #13 0x0000000000000003 in ?? () #14 0x00002ab9ac4d4148 in ?? () #15 0x00002ab9bc002580 in ?? () #16 0x00002ab9af301a20 in ?? () #17 0x00002ab9af3018d0 in ?? () #18 0x0000000001fbf250 in ?? () #19 0x00002ab9ade40edd in System_Threading_ThreadPoolWorkQueue_EnsureThreadRequested (this=...) from /usr/lib/mono/aot-cache/amd64/mscorlib.dll.so #20 0x00002ab9ade414e0 in System_Threading_ThreadPoolWorkQueue_Dispatch () from /usr/lib/mono/aot-cache/amd64/mscorlib.dll.so #21 0x00002ab9ade43039 in System_Threading__ThreadPoolWaitCallback_PerformWaitCallback () from /usr/lib/mono/aot-cache/amd64/mscorlib.dll.so #22 0x000000000001ea00 in ?? () #23 0x00000000413bb63b in ?? () #24 0x0000000000000001 in ?? () #25 0x00002ab9af301cb8 in ?? () #26 0x00002ab9a9327678 in ?? () #27 0x0000000000000000 in ?? () Thread 4 (Thread 0x2ab9c4200700 (LWP 4000)): #0 0x00002ab9aa148c9d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00000000006ce777 in poll (__timeout=, __nfds=, __fds=) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46 #2 mono_poll (ufds=, nfds=, timeout=) at mono-poll.c:30 #3 0x0000000000618b52 in poll_event_wait (callback=0x619230 , user_data=0x2ab9c8002610) at threadpool-io-poll.c:146 #4 0x0000000000619ed1 in selector_thread (data=data@entry=0x0) at threadpool-io.c:451 #5 0x0000000000615a33 in start_wrapper_internal (stack_ptr=, start_info=0x0) at threads.c:1071 #6 start_wrapper (data=0x2ab9bc0610a0) at threads.c:1131 #7 0x00002ab9a9c2c184 in start_thread (arg=0x2ab9c4200700) at pthread_create.c:312 #8 0x00002ab9aa15603d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 3 (Thread 0x2ab9c517d700 (LWP 4006)): ---Type to continue, or q to quit--- #0 0x00000000006de5e0 in monoeg_g_calloc (n=n@entry=1, x=1656) at gmem.c:117 #1 0x00000000006de5fd in monoeg_malloc0 (x=) at gmem.c:121 #2 0x00000000006d54b4 in mono_thread_info_attach () at mono-threads.c:649 #3 0x0000000000615942 in start_wrapper (data=0x2ab9bc0bfb30) at threads.c:1127 #4 0x00002ab9a9c2c184 in start_thread (arg=0x2ab9c517d700) at pthread_create.c:312 #5 0x00002ab9aa15603d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 2 (Thread 0x2ab9af101700 (LWP 4134)): #0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135 #1 0x00002ab9a9c2e649 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0 #2 0x00002ab9a9c2e470 in __GI___pthread_mutex_lock (mutex=0xa1d638 ) at ../nptl/pthread_mutex_lock.c:79 #3 0x000000000066ae91 in mono_os_mutex_lock (mutex=0xa1d638 ) at ../../mono/utils/mono-os-mutex.h:99 #4 mono_coop_mutex_lock (mutex=0xa1d638 ) at ../../mono/utils/mono-coop-mutex.h:56 #5 worker_try_create () at threadpool-worker-default.c:520 #6 0x000000000066b387 in monitor_thread (unused=unused@entry=0x0) at threadpool-worker-default.c:749 #7 0x0000000000615a33 in start_wrapper_internal (stack_ptr=, start_info=0x0) at threads.c:1071 #8 start_wrapper (data=0x2ab9b4004130) at threads.c:1131 #9 0x00002ab9a9c2c184 in start_thread (arg=0x2ab9af101700) at pthread_create.c:312 #10 0x00002ab9aa15603d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 1 (Thread 0x2ab9a9325640 (LWP 3979)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00000000006cc5f5 in mono_os_cond_wait (mutex=0x1f996b8, cond=0x1f996e0) at mono-os-mutex.h:173 #2 mono_os_cond_timedwait (cond=cond@entry=0x1f996e0, mutex=mutex@entry=0x1f996b8, timeout_ms=timeout_ms@entry=4294967295) at mono-os-mutex.c:32 #3 0x000000000062c875 in mono_coop_cond_timedwait (timeout_ms=4294967295, mutex=0x1f996b8, cond=0x1f996e0) at ../../mono/utils/mono-coop-mutex.h:102 #4 mono_w32handle_timedwait_signal_naked (alerted=0x7ffd2bda6108, poll=0, timeout=4294967295, mutex=0x1f996b8, cond=0x1f996e0) at w32handle.c:646 #5 mono_w32handle_timedwait_signal_handle (handle_data=0x1f996a8, timeout=timeout@entry=4294967295, alerted=alerted@entry=0x7ffd2bda6108, poll=0) at w32handle.c:761 #6 0x000000000062ce55 in mono_w32handle_wait_one (handle=handle@entry=0x1f996a8, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at w32handle.c:869 #7 0x000000000065fc2f in ves_icall_System_Threading_Monitor_Monitor_wait (obj=0x2ab9ac508df0, ms=4294967295) at monitor.c:1394 #8 0x00000000413bb577 in ?? () #9 0x00007ffd2bda6320 in ?? () #10 0x0000000000000000 in ?? () [...] root@tools-exec-1441:~# tail -f /tmp/foo3 "" tid=0x0x2ab9a9325640 this=0x0x2ab9a9444130 , thread handle : 0x1fa3210, state : waiting at <0xffffffff> at (wrapper managed-to-native) System.Threading.Monitor.Monitor_wait (object,int) [0x00000] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.Monitor.ObjWait (bool,int,object) [0x0002f] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.Monitor.Wait (object,int,bool) [0x0000e] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.Monitor.Wait (object,int) [0x00000] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ManualResetEventSlim.Wait (int,System.Threading.CancellationToken) [0x00141] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.Tasks.Task.SpinThenBlockingWait (int,System.Threading.CancellationToken) [0x0002d] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.Tasks.Task.InternalWait (int,System.Threading.CancellationToken) [0x00030] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.Tasks.Task`1.GetResultCore (bool) [0x00008] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.Tasks.Task`1.get_Result () [0x0000f] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Net.WebConnectionStream.Read (byte[],int,int) [0x00067] in :0 at System.IO.StreamReader.ReadBuffer () [0x000b3] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.IO.StreamReader.ReadToEnd () [0x00052] in <71d8ad678db34313b7f718a414dfcb25>:0 at Browser.GetStringResponse (System.Net.HttpWebRequest) [0x0001e] in <13064408b38543998806c4f907e2d3cf>:0 at Browser.Post (string,System.Collections.Generic.IDictionary`2) [0x00057] in <13064408b38543998806c4f907e2d3cf>:0 at MediaWiki.DoExec (System.Collections.Generic.IDictionary`2) [0x00023] in <13064408b38543998806c4f907e2d3cf>:0 at MediaWiki.Exec (System.Collections.Generic.IDictionary`2) [0x00013] in <13064408b38543998806c4f907e2d3cf>:0 at MediaWiki.DoLogin (string,string,string) [0x0003e] in <13064408b38543998806c4f907e2d3cf>:0 at MediaWiki.Login (string,string) [0x00008] in <13064408b38543998806c4f907e2d3cf>:0 at ChieBot.DYK.DYKCheckerModule.Execute (MediaWiki,string[],ChieBot.Credentials) [0x0000e] in <13064408b38543998806c4f907e2d3cf>:0 at ChieBot.Modules.Modules/<>c__DisplayClass5_0.b__0 (MediaWiki,string[],ChieBot.Credentials) [0x00012] in <13064408b38543998806c4f907e2d3cf>:0 at ChieBot.Program.Main (string[]) [0x00101] in <13064408b38543998806c4f907e2d3cf>:0 at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr) [0x0004e] in <13064408b38543998806c4f907e2d3cf>:0 "" tid=0x0x2ab9af101700 this=0x0x2ab9a94451d8 , thread handle : 0x2ab9b8000f90, state : not waiting * Assertion at threads.c:1809, condition `internal' not met "Thread Pool I/O Selector" tid=0x0x2ab9c4200700 this=0x0x2ab9a94448e0 , thread handle : 0x2ab9c8000f40, state : waiting "Thread Pool Worker" tid=0x0x2ab9af302700 this=0x0x2ab9a9444650 , thread handle : 0x2ab9bc000f40, state : not waiting at <0xffffffff> at (wrapper managed-to-native) System.Threading.ThreadPool.RequestWorkerThread () [0x00000] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ThreadPoolWorkQueue.EnsureThreadRequested () [0x0001f] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x0003a] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <71d8ad678db34313b7f718a414dfcb25>:0 at (wrapper runtime-invoke) .runtime_invoke_bool (object,intptr,intptr,intptr) [0x0001e] in <71d8ad678db34313b7f718a414dfcb25>:0 "Timer-Scheduler" tid=0x0x2ab9aef00700 this=0x0x2ab9a94443c0 , thread handle : 0x2ab9b4000f40, state : not waiting at <0xffffffff> at (wrapper managed-to-native) System.Threading.ThreadPool.RequestWorkerThread () [0x00000] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ThreadPoolWorkQueue.EnsureThreadRequested () [0x0001f] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ThreadPoolWorkQueue.Enqueue (System.Threading.IThreadPoolWorkItem,bool) [0x00071] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ThreadPool.QueueUserWorkItemHelper (System.Threading.WaitCallback,object,System.Threading.StackCrawlMark&,bool) [0x00016] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ThreadPool.UnsafeQueueUserWorkItem (System.Threading.WaitCallback,object) [0x00002] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.Timer/Scheduler.SchedulerThread () [0x0008a] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00014] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x0002b] in <71d8ad678db34313b7f718a414dfcb25>:0 at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <71d8ad678db34313b7f718a414dfcb25>:0 at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004d] in <71d8ad678db34313b7f718a414dfcb25>:0 "Finalizer" tid=0x0x2ab9ae563700 this=0x0x2ab9a9444278 , thread handle : 0x2ab9b0000f40, state : not waiting * Assertion at threads.c:1809, condition `internal' not met