Bug 4741 - Addin updater hangs MD on quit if DNS not responding
Summary: Addin updater hangs MD on quit if DNS not responding
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Add-ins ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-04-30 10:54 UTC by Mikayla Hutchinson [MSFT]
Modified: 2017-08-22 20:06 UTC (History)
2 users (show)

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

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Mikayla Hutchinson [MSFT] 2012-04-30 10:54:26 UTC
Addin updater hangs MD on quit if DNS not responding. The UpdateService thread should be a background thread.

Full thread dump:

"Threadpool worker" tid=0x0xb0733000 this=0x0x73d6bd0 thread handle 0x87a state : interrupted state owns ()

"<threadpool thread>" tid=0x0xb0857000 this=0x0xb420f18 thread handle 0x881 state : interrupted state owns ()

"GUI Thread" tid=0x0xacacf2c0 this=0x0x6bbf18 thread handle 0x803 state : waiting on 0x800 : Event  owns ()

"IO Threadpool worker" tid=0x0xb0879000 this=0x0xb420e70 thread handle 0x882 state : interrupted state owns ()

"Threadpool worker" tid=0x0xb09fd000 this=0x0xb534888 thread handle 0x883 state : interrupted state owns ()

"Threapool monitor" tid=0x0xb0631000 this=0x0x73d6c78 thread handle 0x879 state : interrupted state owns ()

"<unnamed thread>" tid=0x0xb0835000 this=0x0x73d6930 thread handle 0x87d state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.Thread.Sleep_internal (int) <IL 0x00021, 0xffffffff>
  at System.Threading.Thread.Sleep (int) [0x00017] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/Thread.cs:374
  at System.IO.KeventWatcher.Monitor () [0x000b6] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.IO/KeventWatcher.cs:233
  at System.Threading.Thread.StartInternal () [0x00016] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/Thread.cs:703
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>

"Background dispatcher" tid=0x0xb040b000 this=0x0x6bbb28 thread handle 0x80b state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <IL 0x00030, 0xffffffff>
  at System.Threading.WaitHandle.WaitOne () [0x00015] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/WaitHandle.cs:352
  at MonoDevelop.Ide.DispatchService.backgroundDispatcher () [0x00055] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DispatchService.cs:290
  at System.Threading.Thread.StartInternal () [0x00016] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/Thread.cs:703
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>

"Background parser" tid=0x0xb050d000 this=0x0x79fd348 thread handle 0x876 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <IL 0x00030, 0xffffffff>
  at System.Threading.WaitHandle.WaitOne (int,bool) [0x00032] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/WaitHandle.cs:376
  at MonoDevelop.Ide.TypeSystem.TypeSystemService.WaitForParseJob (int) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:1473
  at MonoDevelop.Ide.TypeSystem.TypeSystemService.ParserUpdateThread () [0x00005] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:1532
  at System.Threading.Thread.StartInternal () [0x00016] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/Thread.cs:703
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>

"Threadpool worker" tid=0x0xb0aff000 this=0x0xb5345e8 thread handle 0x884 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Net.Dns.GetHostByName_internal (string,string&,string[]&,string[]&) <IL 0x00024, 0xffffffff>
  at System.Net.Dns.GetHostByName (string) [0x00011] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.Net/Dns.cs:375
  at System.Net.ServicePoint.get_HostEntry () [0x000a8] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.Net/ServicePoint.cs:258
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest) [0x00084] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.Net/WebConnection.cs:152
  at System.Net.WebConnection.InitConnection (object) [0x0003d] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.Net/WebConnection.cs:655
  at System.Net.WebConnection.<WebConnection>m__17 (object) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.Net/WebConnection.cs:106
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x00052, 0xffffffff>

"Addin updater" tid=0x0xb060f000 this=0x0x79fd150 thread handle 0x878 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <IL 0x00030, 0xffffffff>
  at System.Threading.WaitHandle.WaitOne (int,bool) [0x00032] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/WaitHandle.cs:376
  at System.Net.WebAsyncResult.WaitUntilComplete (int,bool) [0x0000d] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.Net/WebAsyncResult.cs:164
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult) [0x0002e] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.Net/HttpWebRequest.cs:822
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System/System.Net/HttpWebRequest.cs:836
  at Mono.Addins.Setup.AddinStore.DownloadFile (Mono.Addins.IProgressMonitor,string) [0x00064] in /private/tmp/monobuild/build/BUILD/mono-addins-0.6.2/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs:640
  at Mono.Addins.Setup.AddinStore.DownloadObject (Mono.Addins.IProgressMonitor,string,System.Type) [0x00002] in /private/tmp/monobuild/build/BUILD/mono-addins-0.6.2/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs:575
  at Mono.Addins.Setup.RepositoryRegistry.UpdateRepository (Mono.Addins.IProgressMonitor,System.Uri,Mono.Addins.Setup.RepositoryRecord) [0x00028] in /private/tmp/monobuild/build/BUILD/mono-addins-0.6.2/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs:325
  at Mono.Addins.Setup.RepositoryRegistry.UpdateRepository (Mono.Addins.IProgressStatus,string) [0x00094] in /private/tmp/monobuild/build/BUILD/mono-addins-0.6.2/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs:305
  at Mono.Addins.Setup.RepositoryRegistry.UpdateAllRepositories (Mono.Addins.IProgressStatus) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-addins-0.6.2/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs:281
  at MonoDevelop.Ide.Updater.AddinsUpdateHandler.CheckUpdates (MonoDevelop.Core.IProgressMonitor,bool) [0x00025] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Updater/AddinsUpdateHandler.cs:59
  at MonoDevelop.Ide.Updater.UpdateService.CheckUpdates (MonoDevelop.Core.IProgressMonitor,object[],bool) [0x0001c] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Updater/UpdateService.cs:146
  at MonoDevelop.Ide.Updater.UpdateService/<CheckForUpdates>c__AnonStoreyD4.<>m__1C8 () [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Updater/UpdateService.cs:132
  at System.Threading.Thread.StartInternal () [0x00016] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/Thread.cs:703
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>
Comment 1 Will Smith 2017-08-22 20:06:24 UTC
Thanks so much for taking the time to submit this report! I attempted to reproduce this issue based on the bug description with the latest Visual Studio 2017 for Mac Preview version 7.2, and I was unable to hit the problem. If this issue is still occurring for you, please reopen this report and attach a reproduction, ideally starting with a new template project and then adding just the code necessary to demonstrate the issue.