Bug 32892 - epoll related segfault leads to periodic crashes
Summary: epoll related segfault leads to periodic crashes
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: io-layer (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-08-08 14:16 UTC by Dylan Borg
Modified: 2015-08-23 11:23 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Dylan Borg 2015-08-08 14:16:42 UTC
When using mono from the master branch I get segmentation faults such as:

epoll_register_fd: epoll_ctl (EPOLL_CTL_DEL) failed, error (2) No such file or directory
Stacktrace:


Native stacktrace:

	mono() [0x80ec9e0]
	[0xb7777bc8]
	[0xb7777be0]
	/lib/i386-linux-gnu/libc.so.6(gsignal+0x47) [0xb751e057]
	/lib/i386-linux-gnu/libc.so.6(abort+0x149) [0xb751f699]
	mono() [0x8268a60]
	mono() [0x8268911]
	mono() [0x826896e]
	mono() [0x81c8990]
	mono() [0x81c8545]
	mono() [0x81c1dfe]
	mono() [0x82611a8]
	/lib/i386-linux-gnu/libpthread.so.0(+0x61aa) [0xb76b31aa]
	/lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb75dbfde]

Debug info from gdb:

warning: File "/usr/local/bin/mono-sgen-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file, add
	add-auto-load-safe-path /usr/local/bin/mono-sgen-gdb.py
line to your configuration file "/home/dylan/.gdbinit".
To completely disable this security protection, add
	set auto-load safe-path /
line to your configuration file "/home/dylan/.gdbinit".
For more information about this security protection, see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
[New LWP 14608]
[New LWP 14530]
[New LWP 14529]
[New LWP 14528]
[New LWP 14527]
[New LWP 14526]
[New LWP 10093]
[New LWP 10092]
[New LWP 10091]
[New LWP 10090]
[New LWP 10089]
[New LWP 10088]
[New LWP 10082]
[New LWP 10081]
[New LWP 10080]
[New LWP 10079]
[New LWP 10078]
[New LWP 10077]
[New LWP 10073]
[New LWP 10072]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
0xb7777be0 in __kernel_vsyscall ()
  Id   Target Id         Frame 
  21   Thread 0xb6bffb40 (LWP 10072) "mono" 0xb7777be0 in __kernel_vsyscall ()
  20   Thread 0xb724bb40 (LWP 10073) "Finalizer" 0xb7777be0 in __kernel_vsyscall ()
  19   Thread 0xaf2ffb40 (LWP 10077) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  18   Thread 0xaf1feb40 (LWP 10078) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  17   Thread 0xb1d6bb40 (LWP 10079) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  16   Thread 0xaecffb40 (LWP 10080) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  15   Thread 0xaebfeb40 (LWP 10081) "Timer-Scheduler" 0xb7777be0 in __kernel_vsyscall ()
  14   Thread 0xb1c6ab40 (LWP 10082) "mono" 0xb7777be0 in __kernel_vsyscall ()
  13   Thread 0xab2ffb40 (LWP 10088) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  12   Thread 0xab1feb40 (LWP 10089) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  11   Thread 0xaaeffb40 (LWP 10090) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  10   Thread 0xaabffb40 (LWP 10091) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  9    Thread 0xaa8ffb40 (LWP 10092) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  8    Thread 0xaa5ffb40 (LWP 10093) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  7    Thread 0xa92ffb40 (LWP 14526) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  6    Thread 0xa91feb40 (LWP 14527) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  5    Thread 0xa90fdb40 (LWP 14528) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  4    Thread 0xa8ffcb40 (LWP 14529) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  3    Thread 0xa8efbb40 (LWP 14530) "Threadpool work" 0xb7777be0 in __kernel_vsyscall ()
  2    Thread 0xb2bf7b40 (LWP 14608) "Timer-Scheduler" 0xb7777be0 in __kernel_vsyscall ()
* 1    Thread 0xb74f0700 (LWP 10068) "mono" 0xb7777be0 in __kernel_vsyscall ()

Thread 21 (Thread 0xb6bffb40 (LWP 10072)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x08234cac in thread_func (thread_data=0x0) at sgen-thread-pool.c:118
#3  0xb76b31aa in start_thread (arg=0xb6bffb40) at pthread_create.c:333
#4  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 20 (Thread 0xb724bb40 (LWP 10073)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76ba67c in futex_abstimed_wait (cancel=true, private=<optimised out>, abstime=0x0, expected=1, futex=0xb76c7000) at sem_waitcommon.c:42
#2  do_futex_wait (sem=0xb76c7000, sem@entry=0x83da594 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:211
#3  0xb76ba747 in __new_sem_wait_slow (sem=sem@entry=0x83da594 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:392
#4  0xb76ba7a2 in __new_sem_wait (sem=0x83da594 <finalizer_sem>) at sem_wait.c:28
#5  0x0825aa57 in mono_sem_wait (sem=0x83da594 <finalizer_sem>, alertable=1) at mono-semaphore.c:107
#6  0x081dfac3 in finalizer_thread (unused=0x0) at gc.c:1096
#7  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#8  start_wrapper (data=0x95fb290) at threads.c:770
#9  0x082611a8 in inner_start_thread (arg=0xbfbc1a88) at mono-threads-posix.c:97
#10 0xb76b31aa in start_thread (arg=0xb724bb40) at pthread_create.c:333
#11 0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 19 (Thread 0xaf2ffb40 (LWP 10077)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bb302 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:144
#2  0xb76b5679 in __GI___pthread_mutex_lock (mutex=0xb6727e8) at ../nptl/pthread_mutex_lock.c:115
#3  0x081c9001 in mono_threadpool_ms_io_remove_socket (fd=25) at threadpool-ms-io.c:614
#4  0x081b2bf8 in ves_icall_System_Net_Sockets_Socket_Close_internal (sock=25, error=0xaf2fec00) at socket-io.c:721
#5  0xb1e76728 in ?? ()
#6  0xb1e765d0 in ?? ()
#7  0xb51badb4 in System_Runtime_InteropServices_SafeHandle_DangerousReleaseInternal_bool (this=..., dispose=false) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:215
#8  0x00000145 in ?? ()
#9  0x0b65d2b0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 18 (Thread 0xaf1feb40 (LWP 10078)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bb302 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:144
#2  0xb76b5679 in __GI___pthread_mutex_lock (mutex=0xb6727e8) at ../nptl/pthread_mutex_lock.c:115
#3  0x081c80d9 in update_add (fd=9, sockares=0xb1d9a520) at threadpool-ms-io.c:164
#4  0x081c8c79 in mono_threadpool_ms_io_add (ares=0xb6c89918, sockares=0xb1d9a520) at threadpool-ms-io.c:591
#5  0xb1e27938 in ?? ()
#6  0xb0cbca8c in ?? ()
#7  0xb0cbc538 in ?? ()
#8  0xb0cbc363 in ?? ()
#9  0xb1e2bbf4 in ?? ()
#10 0xb1e2bb6e in ?? ()
#11 0xb1e2a0dc in ?? ()
#12 0xb1e2a051 in ?? ()
#13 0xb1e2b8a0 in ?? ()
#14 0xb1e29978 in ?? ()
#15 0xb1e29890 in ?? ()
#16 0xb72d7e5a in ?? ()
#17 0x0806a518 in mono_jit_runtime_invoke (method=0xb1fc1aa0, obj=0xb1d9a4a0, params=0xb6c898d8, exc=0x4) at mini-runtime.c:2327
#18 0x081e68c1 in mono_runtime_invoke (method=0x9931b10, obj=0xb6c898a0, params=0xb6c898d8, exc=0x0) at object.c:2783
#19 0x081e7499 in mono_runtime_delegate_invoke (delegate=0xb6c898a0, params=0xb6c898d8, exc=0x0) at object.c:3494
#20 0x081eb81f in ves_icall_System_Runtime_Remoting_Messaging_AsyncResult_Invoke (ares=0xb6c898d0) at object.c:5796
#21 0xb1e286e8 in ?? ()
#22 0xb53cd2ae in System_Runtime_Remoting_Messaging_AsyncResult_System_Threading_IThreadPoolWorkItem_ExecuteWorkItem (this=...) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.Remoting.Messaging/AsyncResult.cs:210
#23 0xb58660e8 in mono_aot_file_info () from /usr/local/lib/mono/4.5/mscorlib.dll.so
#24 0x0b698f60 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 17 (Thread 0xb1d6bb40 (LWP 10079)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x081c4c7a in worker_park () at threadpool-ms.c:501
#3  worker_thread (data=0x0) at threadpool-ms.c:594
#4  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#5  start_wrapper (data=0xaef00c80) at threads.c:770
#6  0x082611a8 in inner_start_thread (arg=0xaf1fdee8) at mono-threads-posix.c:97
#7  0xb76b31aa in start_thread (arg=0xb1d6bb40) at pthread_create.c:333
#8  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 16 (Thread 0xaecffb40 (LWP 10080)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x081c4c7a in worker_park () at threadpool-ms.c:501
#3  worker_thread (data=0x0) at threadpool-ms.c:594
#4  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#5  start_wrapper (data=0xaed00c08) at threads.c:770
#6  0x082611a8 in inner_start_thread (arg=0xb1d6aee8) at mono-threads-posix.c:97
#7  0xb76b31aa in start_thread (arg=0xaecffb40) at pthread_create.c:333
#8  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 15 (Thread 0xaebfeb40 (LWP 10081)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b8626 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:245
#2  0x0823a1a6 in _wapi_handle_timedwait_signal_handle (handle=0x4b8, timeout=0xaebfde34, alertable=1, poll=0, alerted=0xaebfde30) at handles.c:1640
#3  0x0824d928 in wapi_WaitForSingleObjectEx (handle=0x4b8, timeout=453, alertable=1) at wait.c:185
#4  0x081c1c86 in mono_wait_uninterrupted (thread=thread@entry=0xb1796060, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=0xaebfdec4, waitall=0, ms=453, alertable=1) at threads.c:1447
#5  0x081c354d in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this_obj=0xb6c81840, handle=0x4b8, ms=453, exitContext=0) at threads.c:1581
#6  0xb1e24730 in ?? ()
#7  0xb546967e in System_Threading_WaitHandle_WaitOne_int_bool (this=..., millisecondsTimeout=0, exitContext=232) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Threading/WaitHandle.cs:375
#8  0x000004b8 in ?? ()
#9  0x0b66e0e8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 14 (Thread 0xb1c6ab40 (LWP 10082)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bc62b in waitpid () at ../sysdeps/unix/syscall-template.S:81
#2  0x080ecaa3 in mono_handle_native_sigsegv (signal=6, ctx=0xb1c69b8c, info=0xb1c69b0c) at mini-exceptions.c:2246
#3  <signal handler called>
#4  0xb7777be0 in __kernel_vsyscall ()
#5  0xb751e057 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#6  0xb751f699 in __GI_abort () at abort.c:89
#7  0x08268a60 in monoeg_log_default_handler (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, message=0xae100ba8 "epoll_register_fd: epoll_ctl (EPOLL_CTL_DEL) failed, error (2) No such file or directory", unused_data=0x0) at goutput.c:233
#8  0x08268911 in monoeg_g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, format=0x82f7de0 "epoll_register_fd: epoll_ctl (EPOLL_CTL_DEL) failed, error (%d) %s", args=0xb1c6a1cc "\002") at goutput.c:113
#9  0x0826896e in monoeg_g_log (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, format=0x82f7de0 "epoll_register_fd: epoll_ctl (EPOLL_CTL_DEL) failed, error (%d) %s") at goutput.c:123
#10 0x081c8990 in epoll_register_fd (fd=15, events=0, is_new=0) at threadpool-ms-io-epoll.c:62
#11 0x081c8545 in selector_thread (data=0x0) at threadpool-ms-io.c:386
#12 0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#13 start_wrapper (data=0xb69aac0) at threads.c:770
#14 0x082611a8 in inner_start_thread (arg=0xbfbc0cd8) at mono-threads-posix.c:97
#15 0xb76b31aa in start_thread (arg=0xb1c6ab40) at pthread_create.c:333
#16 0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 13 (Thread 0xab2ffb40 (LWP 10088)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x081c4c7a in worker_park () at threadpool-ms.c:501
#3  worker_thread (data=0x0) at threadpool-ms.c:594
#4  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#5  start_wrapper (data=0xaee00c08) at threads.c:770
#6  0x082611a8 in inner_start_thread (arg=0xaecfeee8) at mono-threads-posix.c:97
#7  0xb76b31aa in start_thread (arg=0xab2ffb40) at pthread_create.c:333
#8  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 12 (Thread 0xab1feb40 (LWP 10089)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x081c4c7a in worker_park () at threadpool-ms.c:501
#3  worker_thread (data=0x0) at threadpool-ms.c:594
#4  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#5  start_wrapper (data=0xaee00c08) at threads.c:770
#6  0x082611a8 in inner_start_thread (arg=0xaecfeee8) at mono-threads-posix.c:97
#7  0xb76b31aa in start_thread (arg=0xab1feb40) at pthread_create.c:333
#8  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 11 (Thread 0xaaeffb40 (LWP 10090)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bb302 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:144
#2  0xb76b5679 in __GI___pthread_mutex_lock (mutex=0xb6727e8) at ../nptl/pthread_mutex_lock.c:115
#3  0x081c9001 in mono_threadpool_ms_io_remove_socket (fd=12) at threadpool-ms-io.c:614
#4  0x081b2bf8 in ves_icall_System_Net_Sockets_Socket_Close_internal (sock=12, error=0xaaefec00) at socket-io.c:721
#5  0xb1e76728 in ?? ()
#6  0xb1e765d0 in ?? ()
#7  0xb51badb4 in System_Runtime_InteropServices_SafeHandle_DangerousReleaseInternal_bool (this=..., dispose=25) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:215
#8  0xb58660e8 in mono_aot_file_info () from /usr/local/lib/mono/4.5/mscorlib.dll.so
#9  0x0b65d2b0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 10 (Thread 0xaabffb40 (LWP 10091)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x081c4c7a in worker_park () at threadpool-ms.c:501
#3  worker_thread (data=0x0) at threadpool-ms.c:594
#4  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#5  start_wrapper (data=0xab400c08) at threads.c:770
#6  0x082611a8 in inner_start_thread (arg=0xab2feee8) at mono-threads-posix.c:97
#7  0xb76b31aa in start_thread (arg=0xaabffb40) at pthread_create.c:333
#8  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 9 (Thread 0xaa8ffb40 (LWP 10092)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bb302 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:144
#2  0xb76b5679 in __GI___pthread_mutex_lock (mutex=0xb6727e8) at ../nptl/pthread_mutex_lock.c:115
#3  0x081c9001 in mono_threadpool_ms_io_remove_socket (fd=15) at threadpool-ms-io.c:614
#4  0x081b2bf8 in ves_icall_System_Net_Sockets_Socket_Close_internal (sock=15, error=0xaa8fec00) at socket-io.c:721
#5  0xb1e76728 in ?? ()
#6  0xb1e765d0 in ?? ()
#7  0xb51badb4 in System_Runtime_InteropServices_SafeHandle_DangerousReleaseInternal_bool (this=..., dispose=91) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:215
#8  0xab38fa90 in ?? ()
#9  0xb51bac96 in System_Runtime_InteropServices_SafeHandle_DisposeInternal (this=...) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:160
#10 0x00000001 in ?? ()
#11 0x0b65d2b0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 8 (Thread 0xaa5ffb40 (LWP 10093)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bb302 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:144
#2  0xb76b70dd in __pthread_mutex_cond_lock (mutex=0xb6727e8) at ../nptl/pthread_mutex_lock.c:115
#3  0xb76b8305 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:273
#4  0x081c818b in update_add (fd=fd@entry=23, sockares=sockares@entry=0x0) at threadpool-ms-io.c:194
#5  0x081c90cb in mono_threadpool_ms_io_remove_socket (fd=23) at threadpool-ms-io.c:643
#6  0x081b2bf8 in ves_icall_System_Net_Sockets_Socket_Close_internal (sock=23, error=0xaa5fec00) at socket-io.c:721
#7  0xb1e76728 in ?? ()
#8  0xb1e765d0 in ?? ()
#9  0xb51badb4 in System_Runtime_InteropServices_SafeHandle_DangerousReleaseInternal_bool (this=..., dispose=false) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:215
#10 0x00000143 in ?? ()
#11 0x0b65d2b0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 7 (Thread 0xa92ffb40 (LWP 14526)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bb302 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:144
#2  0xb76b70dd in __pthread_mutex_cond_lock (mutex=0xb6727e8) at ../nptl/pthread_mutex_lock.c:115
#3  0xb76b8305 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:273
#4  0x081c818b in update_add (fd=15, sockares=0xb1d9a9a0) at threadpool-ms-io.c:194
#5  0x081c8c79 in mono_threadpool_ms_io_add (ares=0xb6c8d750, sockares=0xb1d9a9a0) at threadpool-ms-io.c:591
#6  0xb1e27938 in ?? ()
#7  0xb0cbca8c in ?? ()
#8  0xb0cbc538 in ?? ()
#9  0xb0cbc363 in ?? ()
#10 0xb1e2bbf4 in ?? ()
#11 0xb1e2bb6e in ?? ()
#12 0xb1e2a0dc in ?? ()
#13 0xb1e2a051 in ?? ()
#14 0xb1e2b8a0 in ?? ()
#15 0xb1e29978 in ?? ()
#16 0xb1e29890 in ?? ()
#17 0xb72d7e5a in ?? ()
#18 0x0806a518 in mono_jit_runtime_invoke (method=0xb1fc1aa0, obj=0xb1d9a920, params=0xb6c8d710, exc=0x4) at mini-runtime.c:2327
#19 0x081e68c1 in mono_runtime_invoke (method=0x9931b10, obj=0xb6c8d6d8, params=0xb6c8d710, exc=0x0) at object.c:2783
#20 0x081e7499 in mono_runtime_delegate_invoke (delegate=0xb6c8d6d8, params=0xb6c8d710, exc=0x0) at object.c:3494
#21 0x081eb81f in ves_icall_System_Runtime_Remoting_Messaging_AsyncResult_Invoke (ares=0xb6c8d708) at object.c:5796
#22 0xb1e286e8 in ?? ()
#23 0xb53cd2ae in System_Runtime_Remoting_Messaging_AsyncResult_System_Threading_IThreadPoolWorkItem_ExecuteWorkItem (this=...) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.Remoting.Messaging/AsyncResult.cs:210
#24 0xb58660e8 in mono_aot_file_info () from /usr/local/lib/mono/4.5/mscorlib.dll.so
#25 0x0b698f60 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 6 (Thread 0xa91feb40 (LWP 14527)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x081c4c7a in worker_park () at threadpool-ms.c:501
#3  worker_thread (data=0x0) at threadpool-ms.c:594
#4  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#5  start_wrapper (data=0xaa926a40) at threads.c:770
#6  0x082611a8 in inner_start_thread (arg=0xaabfee28) at mono-threads-posix.c:97
#7  0xb76b31aa in start_thread (arg=0xa91feb40) at pthread_create.c:333
#8  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 5 (Thread 0xa90fdb40 (LWP 14528)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x081c4c7a in worker_park () at threadpool-ms.c:501
#3  worker_thread (data=0x0) at threadpool-ms.c:594
#4  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#5  start_wrapper (data=0xadfe5330) at threads.c:770
#6  0x082611a8 in inner_start_thread (arg=0xaf2feee8) at mono-threads-posix.c:97
#7  0xb76b31aa in start_thread (arg=0xa90fdb40) at pthread_create.c:333
#8  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 4 (Thread 0xa8ffcb40 (LWP 14529)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bb302 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:144
#2  0xb76b5679 in __GI___pthread_mutex_lock (mutex=0xb6727e8) at ../nptl/pthread_mutex_lock.c:115
#3  0x081c9001 in mono_threadpool_ms_io_remove_socket (fd=13) at threadpool-ms-io.c:614
#4  0x081b2bf8 in ves_icall_System_Net_Sockets_Socket_Close_internal (sock=13, error=0xa8ffbc00) at socket-io.c:721
#5  0xb1e76728 in ?? ()
#6  0xb1e765d0 in ?? ()
#7  0xb51badb4 in System_Runtime_InteropServices_SafeHandle_DangerousReleaseInternal_bool (this=..., dispose=false) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:215
#8  0x00000144 in ?? ()
#9  0x0b65d2b0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 3 (Thread 0xa8efbb40 (LWP 14530)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76bb302 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:144
#2  0xb76b5679 in __GI___pthread_mutex_lock (mutex=0xb6727e8) at ../nptl/pthread_mutex_lock.c:115
#3  0x081c9001 in mono_threadpool_ms_io_remove_socket (fd=19) at threadpool-ms-io.c:614
#4  0x081b2bf8 in ves_icall_System_Net_Sockets_Socket_Close_internal (sock=19, error=0xa8efab70) at socket-io.c:721
#5  0xb1e76728 in ?? ()
#6  0xb1e765d0 in ?? ()
#7  0xb51badb4 in System_Runtime_InteropServices_SafeHandle_DangerousReleaseInternal_bool (this=..., dispose=255) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:215
#8  0x00000001 in ?? ()
#9  0x0b65d2b0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 2 (Thread 0xb2bf7b40 (LWP 14608)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb75e9871 in __clock_nanosleep (clock_id=138231808, flags=1, req=0xb2bf7264, rem=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:45
#2  0x0824ee10 in wapi_SleepEx (ms=100, alertable=1) at wthreads.c:272
#3  0x081c5981 in monitor_thread () at threadpool-ms.c:833
#4  0x081c1dfe in start_wrapper_internal (data=<optimised out>) at threads.c:723
#5  start_wrapper (data=0xae901120) at threads.c:770
#6  0x082611a8 in inner_start_thread (arg=0xaebfdca8) at mono-threads-posix.c:97
#7  0xb76b31aa in start_thread (arg=0xb2bf7b40) at pthread_create.c:333
#8  0xb75dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 1 (Thread 0xb74f0700 (LWP 10068)):
#0  0xb7777be0 in __kernel_vsyscall ()
#1  0xb76b825c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0x0823a35a in _wapi_handle_timedwait_signal_handle (handle=0x4bd, timeout=0x0, alertable=1, poll=0, alerted=0xbfbc10a0) at handles.c:1642
#3  0x0824d928 in wapi_WaitForSingleObjectEx (handle=0x4bd, timeout=4294967295, alertable=1) at wait.c:185
#4  0x081c1c86 in mono_wait_uninterrupted (thread=thread@entry=0xb72c4120, multiple=multiple@entry=0, numhandles=numhandles@entry=1, handles=0xbfbc1134, waitall=0, ms=-1, alertable=1) at threads.c:1447
#5  0x081c354d in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this_obj=0xb6d15b20, handle=0x4bd, ms=-1, exitContext=0) at threads.c:1581
#6  0xb1e24730 in ?? ()
#7  0xb54695b8 in System_Threading_WaitHandle_WaitOne (this=...) at /var/www/git/mono-git/mono/mcs/class/corlib/System.Threading/WaitHandle.cs:353
#8  0x000004bd in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

=================================================================
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.
=================================================================
Comment 1 Dylan Borg 2015-08-23 11:23:29 UTC
This bug is till occurring with the latest code. The 4.2.0 pre branch is the latest branch that works :(

Note You need to log in before you can comment on or make changes to this bug.