Advertisement
BlueWall

Robust shutdown threads hanging

May 22nd, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.46 KB | None | 0 0
  1. After shutdown application hangs...
  2.  
  3. Still listening on assigned ports
  4. tcp 0 0 0.0.0.0:8003 0.0.0.0:* LISTEN
  5. tcp 0 0 0.0.0.0:8903 0.0.0.0:* LISTEN
  6.  
  7.  
  8. Full thread dump:
  9.  
  10. "PollServiceWatcherThread:8003" at <unknown> <0xffffffff>
  11. at (wrapper managed-to-native) System.Threading.Thread.SleepInternal (int) <0x00051>
  12. at System.Threading.Thread.Sleep (int) <0x00016>
  13. at OpenSim.Framework.Servers.HttpServer.PollServiceRequestManager.CheckRetries () <0x00041>
  14. at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x00099>
  15. at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00178>
  16. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  17. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00059>
  18. at System.Threading.ThreadHelper.ThreadStart () <0x0002e>
  19. at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x000c8>
  20.  
  21. "PollServiceWorkerThread 0:8003"
  22. "PollServiceWorkerThread 1:8903" at <unknown> <0xffffffff>
  23. at System.Threading.Monitor.ObjWait (bool,int,object) <0x00095>
  24. at System.Threading.Monitor.Wait (object,int,bool) <0x0002c>
  25. at System.Threading.Monitor.Wait (object,int) <0x00013>
  26. at OpenSim.Framework.BlockingQueue`1<T_REF>.Dequeue (int) <0x000ed>
  27. at OpenSim.Framework.Servers.HttpServer.PollServiceRequestManager.PoolWorkerJob () <0x000c3>
  28. at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x00099>
  29. at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00178>
  30. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  31. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00059>
  32. at System.Threading.ThreadHelper.ThreadStart () <0x0002e>
  33. at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x000c8>
  34.  
  35. "PollServiceWorkerThread 0:8903"
  36. "HttpServer Internal Zombie Timeout Checker" at <unknown> <0xffffffff>
  37. at (wrapper managed-to-native) System.Threading.Thread.SleepInternal (int) <0x00051>
  38. at System.Threading.Thread.Sleep (int) <0x00016>
  39. at HttpServer.ContextTimeoutManager.ThreadRunProcess (object) <0x00028>
  40. at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x000d0>
  41. at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00178>
  42. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  43. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00059>
  44. at System.Threading.ThreadHelper.ThreadStart (object) <0x0004c>
  45. at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0x000d6>
  46.  
  47. "PollServiceWorkerThread 1:8003"
  48. "PollServiceWatcherThread:8903" at <unknown> <0xffffffff>
  49. at (wrapper managed-to-native) System.Threading.Thread.SleepInternal (int) <0x00051>
  50. at System.Threading.Thread.Sleep (int) <0x00016>
  51. at OpenSim.Framework.Servers.HttpServer.PollServiceRequestManager.CheckRetries () <0x00041>
  52. at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x00099>
  53. at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00178>
  54. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  55. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00059>
  56. at System.Threading.ThreadHelper.ThreadStart () <0x0002e>
  57. at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x000c8>
  58.  
  59. "STP:PoolService:0" at <unknown> <0xffffffff>
  60. at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int) <0x00057>
  61. at System.Threading.WaitHandle.WaitMultiple (System.Threading.WaitHandle[],int,bool,bool) <0x0010b>
  62. at System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle[],int,bool) <0x000d3>
  63. at Amib.Threading.Internal.STPEventWaitHandle.WaitAny (System.Threading.WaitHandle[],int,bool) <0x00023>
  64. at Amib.Threading.Internal.WorkItemsQueue.DequeueWorkItem (int,System.Threading.WaitHandle) <0x00213>
  65. at Amib.Threading.SmartThreadPool.Dequeue () <0x0003b>
  66. at Amib.Threading.SmartThreadPool.ProcessQueuedItems () <0x002d7>
  67. at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x00099>
  68. at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00178>
  69. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  70. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00059>
  71. at System.Threading.ThreadHelper.ThreadStart () <0x0002e>
  72. at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x000c8>
  73.  
  74. "Timer-Scheduler" at <unknown> <0xffffffff>
  75. at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int) <0x00057>
  76. at System.Threading.WaitHandle.WaitOneNative (System.Runtime.InteropServices.SafeHandle,uint,bool,bool) <0x00058>
  77. at System.Threading.WaitHandle.InternalWaitOne (System.Runtime.InteropServices.SafeHandle,long,bool,bool) <0x0003f>
  78. at System.Threading.WaitHandle.WaitOne (long,bool) <0x0002b>
  79. at System.Threading.WaitHandle.WaitOne (int,bool) <0x00032>
  80. at System.Threading.WaitHandle.WaitOne (int) <0x0001b>
  81. at System.Threading.Timer/Scheduler.SchedulerThread () <0x00890>
  82. at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x00099>
  83. at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00178>
  84. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  85. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00059>
  86. at System.Threading.ThreadHelper.ThreadStart () <0x0002e>
  87. at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x000c8>
  88.  
  89. "HttpServer Internal Zombie Timeout Checker" at <unknown> <0xffffffff>
  90. at (wrapper managed-to-native) System.Threading.Thread.SleepInternal (int) <0x00051>
  91. at System.Threading.Thread.Sleep (int) <0x00016>
  92. at HttpServer.ContextTimeoutManager.ThreadRunProcess (object) <0x00028>
  93. at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x000d0>
  94. at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00178>
  95. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  96. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00059>
  97. at System.Threading.ThreadHelper.ThreadStart (object) <0x0004c>
  98. at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0x000d6>
  99.  
  100. "STP:PoolService:0" at <unknown> <0xffffffff>
  101. at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int) <0x00057>
  102. at System.Threading.WaitHandle.WaitMultiple (System.Threading.WaitHandle[],int,bool,bool) <0x0010b>
  103. at System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle[],int,bool) <0x000d3>
  104. at Amib.Threading.Internal.STPEventWaitHandle.WaitAny (System.Threading.WaitHandle[],int,bool) <0x00023>
  105. at Amib.Threading.Internal.WorkItemsQueue.DequeueWorkItem (int,System.Threading.WaitHandle) <0x00213>
  106. at Amib.Threading.SmartThreadPool.Dequeue () <0x0003b>
  107. at Amib.Threading.SmartThreadPool.ProcessQueuedItems () <0x002d7>
  108. at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x00099>
  109. at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00178>
  110. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  111. at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00059>
  112. at System.Threading.ThreadHelper.ThreadStart () <0x0002e>
  113. at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x000c8>
  114.  
  115. "Finalizer"
  116. "<unnamed thread>" at <unknown> <0xffffffff>
  117. at (wrapper managed-to-native) System.Environment.Exit (int) <0x00051>
  118. at OpenSim.Server.OpenSimServer.Main (string[]) <0x00906>
  119. at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0x000f5>
  120.  
  121. **** NOTES ****
  122. SmartThreadPool has Shutdown methods for aborting threads. Maybe we need to add calls to these as we exit the application?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement