Bug 26529 - crash calling GetProcessById
Summary: crash calling GetProcessById
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: io-layer ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-29 01:02 UTC by Alan McGovern
Modified: 2015-02-03 03:18 UTC (History)
3 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 GitHub or Developer Community 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 FIXED

Description Alan McGovern 2015-01-29 01:02:55 UTC
The iOS designer test suite hit this a few times on wrench. Could it be related to bug #26382 ?

2015-01-28 10:05:31.825 mono[22704:a203] error: * Assertion at ../../mono/io-layer/handles-private.h:198, condition `_WAPI_SHARED_HANDLE(_wapi_handle_type (handle))' not met
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Diagnostics.Process.GetProcess_internal (int) <IL 0x00021, 0xffffffff>
  at System.Diagnostics.Process.GetProcessById (int) [0x00000] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System/System.Diagnostics/Process.cs:813
  at MonoTouch.Design.Client.Mac.MacServerProcessConnection.get_IsRunning () [0x0001e] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/MacServerProcessConnection.cs:97
  at MonoTouch.Design.Client.Mac.MacServerProcessConnection.EnsureServerRunning (bool) [0x0004a] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/MacServerProcessConnection.cs:142
  at MonoTouch.Design.Client.ServerProcessConnection.SendRequest (System.Action`1<System.IO.Stream>,System.Action`1<System.IO.Stream>,bool) [0x00007] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:273
  at MonoTouch.Design.Client.ServerProcessConnection.SendRequest (MonoTouch.Design.CommandRequest,bool) [0x0002f] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:240
  at MonoTouch.Design.Client.ServerProcessConnection.SendRequest<TResponse> (MonoTouch.Design.CommandRequest,bool) [0x00004] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:262
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession,string,string[]) [0x0006b] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:183
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession,System.Xml.Linq.XElement,System.Xml.Linq.XElement[],string[]) [0x000b0] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:161
  at MonoTouch.Design.Client.IPhoneDesignerSession/<ReloadItems>c__AnonStorey3.<>m__0 (MonoTouch.Design.Client.ServerProcessConnection) [0x00032] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:449
  at MonoTouch.Design.Client.IPhoneDesignerSession/<EnsureSession>c__AnonStorey18`1.<>m__0 () [0x0013b] in /Users/builder/data/lanes/monodevelop-lion-watchkit/1c0fe869/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1763
  at System.Threading.Tasks.TaskActionInvoker/FuncInvoke`1.Invoke (System.Threading.Tasks.Task,object,System.Threading.Tasks.Task) <0x0004b>
  at System.Threading.Tasks.Task.InnerInvoke () [0x00031] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Threading.Tasks/Task.cs:548
  at System.Threading.Tasks.Task.ThreadStart () [0x000d0] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Threading.Tasks/Task.cs:438
  at System.Threading.Tasks.Task.Execute () [0x00000] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Threading.Tasks/Task.cs:514
  at System.Threading.Tasks.TpScheduler.TaskExecuterCallback (object) [0x00007] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Threading.Tasks/TpScheduler.cs:59
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x00052, 0xffffffff>

Native stacktrace:

	0   mono                                0x001bb376 mono_handle_native_sigsegv + 342
	1   mono                                0x0020fcfa sigabrt_signal_handler + 122
	2   libsystem_platform.dylib            0x90ee6deb _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   libsystem_c.dylib                   0x945c429c abort + 155
	5   libxammac.dylib                     0x054e8bfb log_callback + 91
	6   mono                                0x00356264 log_adapter + 164
	7   mono                                0x0036c64b monoeg_assertion_message + 107
	8   mono                                0x0034b764 process_open_compare + 420
	9   mono                                0x00340633 _wapi_search_handle + 723
	10  mono                                0x0034b573 OpenProcess + 83
	11  mono                                0x0029d911 ves_icall_System_Diagnostics_Process_GetProcess_internal + 33
	12  ???                                 0x0075c2e4 0x0 + 7717604
	13  ???                                 0x0eb3b3ec 0x0 + 246658028
	14  ???                                 0x0e77ef64 0x0 + 242741092
	15  ???                                 0x0e77ebcc 0x0 + 242740172
	16  ???                                 0x0e77dfee 0x0 + 242737134
	17  ???                                 0x0e77ddfc 0x0 + 242736636
	18  ???                                 0x0e77dc18 0x0 + 242736152
	19  ???                                 0x0eeb3b30 0x0 + 250297136
	20  ???                                 0x0eeb6124 0x0 + 250306852
	21  ???                                 0x0eeb5f04 0x0 + 250306308
	22  ???                                 0x0e77a5ef 0x0 + 242722287
	23  mscorlib.dll.dylib                  0x01b5be1c System_Threading_Tasks_TaskActionInvoker_FuncInvoke_1_Invoke_System_Threading_Tasks_Task_object_System_Threading_Tasks_Task + 76
	24  mscorlib.dll.dylib                  0x01b5731e System_Threading_Tasks_Task_InnerInvoke + 94
	25  mscorlib.dll.dylib                  0x01b56b18 System_Threading_Tasks_Task_ThreadStart + 824
	26  mscorlib.dll.dylib                  0x01b5709e System_Threading_Tasks_Task_Execute + 30
	27  mscorlib.dll.dylib                  0x01b71f83 System_Threading_Tasks_TpScheduler_TaskExecuterCallback_object + 67
	28  ???                                 0x0074ed9d 0x0 + 7663005
	29  mono                                0x0010ed9f mono_jit_runtime_invoke + 751
	30  mono                                0x002d08cf mono_runtime_invoke + 127
	31  mono                                0x002d5d7c mono_runtime_delegate_invoke + 92
	32  mono                                0x002abf61 async_invoke_thread + 2241
	33  mono                                0x002aac72 start_wrapper + 514
	34  mono                                0x00367060 inner_start_thread + 240
	35  libsystem_pthread.dylib             0x956855fb _pthread_body + 144
	36  libsystem_pthread.dylib             0x95685485 _pthread_struct_init + 0
	37  libsystem_pthread.dylib             0x9568acf2 thread_start + 34
Comment 1 Zoltan Varga 2015-01-29 12:59:42 UTC
This is probably a different problem. Could that machine be updated to mono 3.12 ?
Comment 2 Alan McGovern 2015-02-01 20:34:34 UTC
Yeah, we can do that. Feel free to close this if you think 3.12 might fix the issue. I'll re-open later if the issue is still there.