<p dir="ltr">Hi Bill,</p>
<p dir="ltr">The unhandled exception you observe is due to a race condition which triggers with the managed test runner. If you use make -C mono/tests runtest (instead of runtest-managed) you will not get this crash. I am working on fixing it.</p>
<p dir="ltr">Ludovic</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, 9 Oct 2015, 22:38 Bill Seurer <<a href="mailto:seurer@linux.vnet.ibm.com">seurer@linux.vnet.ibm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There are a couple of recent commits which cause problems for some<br>
thread-related things in mono/tests.  At least they do on power.  I did<br>
a refresh (fetch/rebase) from mono/master just before I tried things a<br>
few minutes ago so no later commits fixed the problems.<br>
<br>
The commits causing grief appear to be these:<br>
<br>
commit 7aae649458bceb4375b74f078c4f24ddd4a486f5<br>
Merge: e6ad2dc e5e97ea<br>
Author: Rodrigo Kumpera <<a href="mailto:kumpera@gmail.com" target="_blank">kumpera@gmail.com</a>><br>
Date: Tue Oct 6 10:40:47 2015 -0400<br>
<br>
Merge pull request #2060 from ludovic-henry/socket-rework-async<br>
<br>
[socket] Complete refactor of Begin/End and Async<br>
<br>
commit e6ad2dc73b415e091c80a9912c66e86af1e7a761<br>
Merge: 0056f1f 388b958<br>
Author: Rodrigo Kumpera <<a href="mailto:kumpera@gmail.com" target="_blank">kumpera@gmail.com</a>><br>
Date: Tue Oct 6 10:19:19 2015 -0400<br>
<br>
Merge pull request #2110 from ludovic-henry/threadpool-exit-worker<br>
<br>
[threadpool-ms] Exit worker thread after 5 to 60 seconds<br>
<br>
<br>
Things worked fine with the commit previous to the above two which is<br>
this one:<br>
<br>
commit 11096e3733b808a8bbfce262c256ec89887cac89<br>
Author: Ludovic Henry <<a href="mailto:ludovic@xamarin.com" target="_blank">ludovic@xamarin.com</a>><br>
Date: Tue Sep 15 11:21:55 2015 +0100<br>
<br>
<br>
One symptom is tests that hang.  threadpool.cs is one example of that.<br>
<br>
The other symptom is this failure:<br>
<br>
seurer@genoa:~/mono-git/mono-checkin/mono/tests$ make runtest-managed-serial<br>
Testing bug-2907.exe... passed.<br>
Testing array-init.exe... passed.<br>
Testing arraylist.exe...<br>
Unhandled Exception:<br>
System.NullReferenceException: Object reference not set to an instance<br>
of an object<br>
   at TestRunner+<Main>c__AnonStorey0.<>m__1 (System.Object sender,<br>
System.Diagnostics.DataReceivedEventArgs e) [0x00066] in<br>
/home/seurer/mono-git/mono-checkin/mono/tests/test-runner.cs:286<br>
   at System.Diagnostics.Process.OnOutputDataReceived (System.String<br>
str) [0x0000d] in<br>
/home/seurer/mono-git/mono-checkin/mcs/class/System/System.Diagnostics/Process.cs:1294<br>
<br>
   at (wrapper remoting-invoke-with-check)<br>
System.Diagnostics.Process:OnOutputDataReceived (string)<br>
   at System.Diagnostics.Process+ProcessAsyncReader.AddInput ()<br>
[0x00058] in<br>
/home/seurer/mono-git/mono-checkin/mcs/class/System/System.Diagnostics/Process.cs:1354<br>
<br>
   at System.Diagnostics.Process+ProcessAsyncReader.<BeginRead>m__0<br>
(System.IOAsyncResult _) [0x00000] in<br>
/home/seurer/mono-git/mono-checkin/mcs/class/System/System.Diagnostics/Process.cs:1335<br>
<br>
   at<br>
System.IOSelectorJob.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem ()<br>
[0x00000] in<br>
/home/seurer/mono-git/mono-checkin/mcs/class/System/System/IOSelector.cs:143<br>
<br>
   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in<br>
/home/seurer/mono-git/mono-checkin/external/referencesource/mscorlib/system/threading/threadpool.cs:859<br>
<br>
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback ()<br>
[0x00000] in<br>
/home/seurer/mono-git/mono-checkin/external/referencesource/mscorlib/system/threading/threadpool.cs:1196<br>
<br>
<br>
Unhandled Exception:<br>
System.NullReferenceException: Object reference not set to an instance<br>
of an object<br>
   at TestRunner+<Main>c__AnonStorey0.<>m__2 (System.Object sender,<br>
System.Diagnostics.DataReceivedEventArgs e) [0x00066] in<br>
/home/seurer/mono-git/mono-checkin/mono/tests/test-runner.cs:307<br>
   at System.Diagnostics.Process.OnErrorDataReceived (System.String str)<br>
[0x0000d] in<br>
/home/seurer/mono-git/mono-checkin/mcs/class/System/System.Diagnostics/Process.cs:1301<br>
<br>
   at (wrapper remoting-invoke-with-check)<br>
System.Diagnostics.Process:OnErrorDataReceived (string)<br>
   at System.Diagnostics.Process+ProcessAsyncReader.AddInput ()<br>
[0x00069] in<br>
/home/seurer/mono-git/mono-checkin/mcs/class/System/System.Diagnostics/Process.cs:1356<br>
<br>
   at System.Diagnostics.Process+ProcessAsyncReader.<BeginRead>m__0<br>
(System.IOAsyncResult _) [0x00000] in<br>
/home/seurer/mono-git/mono-checkin/mcs/class/System/System.Diagnostics/Process.cs:1335<br>
<br>
   at<br>
System.IOSelectorJob.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem ()<br>
[0x00000] in<br>
/home/seurer/mono-git/mono-checkin/mcs/class/System/System/IOSelector.cs:143<br>
<br>
   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in<br>
/home/seurer/mono-git/mono-checkin/external/referencesource/mscorlib/system/threading/threadpool.cs:859<br>
<br>
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback ()<br>
[0x00000] in<br>
/home/seurer/mono-git/mono-checkin/external/referencesource/mscorlib/system/threading/threadpool.cs:1196<br>
<br>
make: *** [runtest-managed-serial] Error 255<br>
<br>
--<br>
<br>
-Bill Seurer<br>
<br>
_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com" target="_blank">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" rel="noreferrer" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
</blockquote></div>