[Mono-dev] Race condition on run time shutdown

Neale Ferguson neale at sinenomine.net
Fri Jan 13 23:12:29 UTC 2017

 I believe there is a window of opportunity during the mono runtime
shutdown process for a still living thread to request thread pool services
after thread pool clean up has been performed. I opened
https://bugzilla.xamarin.com/show_bug.cgi?id=51219 to document the
problem. The gdb traces appear to show an app using HttpListener trying to
request a work thread after the thread pool has been cleaned up and, as a
result, using a mutex that has been destroyed.
 To avoid this is an icall required that would enable RequestWorkThread to
check if shutdown is in process or that the thread pool has been cleaned
so as not to attempt the operation?


More information about the Mono-devel-list mailing list