Bug 37138 - Crash (malloc_error_break) in Process.Start when program file does not have execute bit set
Summary: Crash (malloc_error_break) in Process.Start when program file does not have e...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Aleksey Kliger
URL:
Depends on:
Blocks:
 
Reported: 2015-12-18 08:19 UTC by xamarin
Modified: 2016-03-10 15:04 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 for Bug 37138 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description xamarin 2015-12-18 08:19:11 UTC
Through an accident, a command line utility called by my program on Mac lost its 'x' bit. This is the function doing the call of the app:

        public static string CallAndReturnStdOut(string programPath, string commandLineArguments, string workingDirectory)
        {
            var processStartInfo = new ProcessStartInfo();
            processStartInfo.FileName = programPath;
            processStartInfo.Arguments = commandLineArguments;
            processStartInfo.WorkingDirectory = workingDirectory;
            processStartInfo.CreateNoWindow = true;
            processStartInfo.UseShellExecute = false;
            processStartInfo.RedirectStandardOutput = true;
            processStartInfo.RedirectStandardError = true;
            var process = Process.Start(processStartInfo);
            var output = process.StandardOutput.ReadToEnd();
            var errorOutput = process.StandardError.ReadToEnd();
            System.Diagnostics.Debug.WriteLine(errorOutput);
            process.WaitForExit();
            return output;
        }

The program at 'programPath' is the one that lost the bit. Calling Process.Start produces this, in the Xamarin Studio debugger's application output:

LtoFlash(12090,0xb0633000) malloc: *** error for object 0x1620180: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Diagnostics.Process.CreateProcess_internal (System.Diagnostics.ProcessStartInfo,intptr,intptr,intptr,System.Diagnostics.Process/ProcInfo&) <0xffffffff>
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo,System.Diagnostics.Process) <0x0091b>
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo,System.Diagnostics.Process) <0x000c7>
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo) <0x0004f>
  at INTV.Shared.Utility.RunExternalProgram.CallAndReturnStdOut (string,string,string) <0x000d3>
  at INTV.Shared.Model.RomsListConfiguration.GetRomTitleAndCopyright (INTV.Core.Model.IRom,string&) <0x00157>
  at INTV.Core.Model.IRomHelpers.GetProgramNameAndCopyright (INTV.Core.Model.IRom,string&) <0x00022>
  at INTV.Core.Model.IRomHelpers.GetProgramInformation (INTV.Core.Model.IRom) <0x0006b>
  at INTV.Shared.Model.Program.ProgramCollection.GatherRomsFromFileList (System.Collections.Generic.IEnumerable`1<INTV.Core.Model.IRom>,System.Collections.Generic.IEnumerable`1<INTV.Core.Model.Program.ProgramDescription>,System.Collections.Generic.IList`1<string>,System.Func`1<bool>,System.Action`1<string>,System.Action`1<int>,System.Func`2<INTV.Core.Model.Program.IProgramInformation, bool>) <0x001b7>
  at INTV.Shared.ViewModel.RomsListViewModel.GatherRoms (INTV.Shared.Utility.AsyncTaskData) <0x0021b>
  at INTV.Shared.Utility.AsyncTaskWithProgress.AsyncTaskDoWork (object,System.ComponentModel.DoWorkEventArgs) <0x00035>
  at System.ComponentModel.BackgroundWorker.OnDoWork (System.ComponentModel.DoWorkEventArgs) <0x00056>
  at System.ComponentModel.BackgroundWorker.WorkerThreadStart (object) <0x0006f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	0   libmono-2.0.dylib                   0x004bf686 mono_handle_native_sigsegv + 342
	1   libmono-2.0.dylib                   0x0050fc01 sigabrt_signal_handler + 129
	2   libsystem_c.dylib                   0x9813894b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   libsystem_c.dylib                   0x98184631 abort + 168
	5   libsystem_c.dylib                   0x98166e03 free + 428
	6   libmono-2.0.dylib                   0x0060a87a wapi_CreateProcess + 2954
	7   libmono-2.0.dylib                   0x0059c6e3 ves_icall_System_Diagnostics_Process_CreateProcess_internal + 1187
	8   ???                                 0x0db5dc50 0x0 + 230022224
	9   ???                                 0x0db5caec 0x0 + 230017772
	10  ???                                 0x0db5c040 0x0 + 230015040
	11  ???                                 0x0db5bd28 0x0 + 230014248
	12  ???                                 0x0db5bafc 0x0 + 230013692
	13  ???                                 0x0db5aa10 0x0 + 230009360
	14  ???                                 0x0db5a8b3 0x0 + 230009011
	15  ???                                 0x0db5a59c 0x0 + 230008220
	16  ???                                 0x0db525a8 0x0 + 229975464
	17  ???                                 0x0db52334 0x0 + 229974836
	18  ???                                 0x0d2b82a6 0x0 + 220955302
	19  ???                                 0x0d2b812f 0x0 + 220954927
	20  ???                                 0x0d2b7f50 0x0 + 220954448
	21  ???                                 0x0d25595c 0x0 + 220551516
	22  libmono-2.0.dylib                   0x0040ec8f mono_jit_runtime_invoke + 751
	23  libmono-2.0.dylib                   0x005d0baf mono_runtime_invoke + 127
	24  libmono-2.0.dylib                   0x005d7a2d mono_runtime_invoke_array + 941
	25  libmono-2.0.dylib                   0x005da388 mono_message_invoke + 424
	26  libmono-2.0.dylib                   0x005adfe9 async_invoke_thread + 1833
	27  libmono-2.0.dylib                   0x005acdd5 start_wrapper + 517
	28  libmono-2.0.dylib                   0x00627560 inner_start_thread + 240
	29  libmono-2.0.dylib                   0x0064c0dd GC_start_routine + 93
	30  libsystem_c.dylib                   0x9814c5b7 _pthread_start + 344
	31  libsystem_c.dylib                   0x98136dce thread_start + 34

Debug info from gdb:

Attaching to process 12090.
Reading symbols for shared libraries . done
Reading symbols for shared libraries ....................................................................................................................................................................................................................................... done
0x980c67ce in mach_msg_trap ()
  21                                 0x980c6822 in semaphore_timedwait_trap ()
  20                                 0x980c90ee in __workq_kernreturn ()
  19                                 0x980c90ee in __workq_kernreturn ()
  18                                 0x980c90ee in __workq_kernreturn ()
  17                                 0x980c90ee in __workq_kernreturn ()
  16                                 0x980c90ee in __workq_kernreturn ()
  15                                 0x980c90ee in __workq_kernreturn ()
  14                                 0x980c90ee in __workq_kernreturn ()
  13                                 0x980c6822 in semaphore_timedwait_trap ()
  12                                 0x980c8be6 in select$DARWIN_EXTSN ()
  11                                 0x980c909a in __wait4 ()
  10                                 0x980c8c72 in __semwait_signal ()
   9                                 0x980c88e2 in __psynch_cvwait ()
   8                                 0x980c67ce in mach_msg_trap ()
   7                                 0x980c90ee in __workq_kernreturn ()
   6                                 0x980c90ee in __workq_kernreturn ()
   5                                 0x980c90ee in __workq_kernreturn ()
   4                                 0x980c90ee in __workq_kernreturn ()
   3 "com.apple.libdispatch-manager" 0x980c99ae in kevent ()
   2                                 0x980c680a in semaphore_wait_trap ()
*  1 "com.apple.main-thread"         0x980c67ce in mach_msg_trap ()

Thread 21 (process 12090):
#0  0x980c6822 in semaphore_timedwait_trap ()
#1  0x00621a53 in mono_sem_timedwait (timeout_ms=<value temporarily unavailable, due to optimizations>) at mono-semaphore.c:64
#2  0x005adde8 in async_invoke_thread (data=0x0) at threadpool.c:1673
#3  0x005acdd5 in start_wrapper_internal [inlined] () at :664
#4  0x005acdd5 in start_wrapper (data=<value temporarily unavailable, due to optimizations>) at threads.c:711
#5  0x00627560 in inner_start_thread (arg=<value temporarily unavailable, due to optimizations>) at mono-threads-posix.c:92
#6  0x0064c0dd in GC_start_routine (arg=0xcb6df00) at pthread_support.c:1502
#7  0x9814c5b7 in _pthread_start ()
#8  0x98136dce in thread_start ()

Thread 20 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 19 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 18 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 17 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 16 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 15 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 14 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 13 (process 12090):
#0  0x980c6822 in semaphore_timedwait_trap ()
#1  0x00621a53 in mono_sem_timedwait (timeout_ms=<value temporarily unavailable, due to optimizations>) at mono-semaphore.c:64
#2  0x005adde8 in async_invoke_thread (data=0x0) at threadpool.c:1673
#3  0x005acdd5 in start_wrapper_internal [inlined] () at :664
#4  0x005acdd5 in start_wrapper (data=<value temporarily unavailable, due to optimizations>) at threads.c:711
#5  0x00627560 in inner_start_thread (arg=<value temporarily unavailable, due to optimizations>) at mono-threads-posix.c:92
#6  0x0064c0dd in GC_start_routine (arg=0xcb6de40) at pthread_support.c:1502
#7  0x9814c5b7 in _pthread_start ()
#8  0x98136dce in thread_start ()

Thread 12 (process 12090):
#0  0x980c8be6 in select$DARWIN_EXTSN ()
#1  0x006214b9 in mono_poll (ufds=0x1acf400, nfds=1, timeout=<value temporarily unavailable, due to optimizations>) at mono-poll.c:81
#2  0x005affd9 in tp_poll_wait (p=<value temporarily unavailable, due to optimizations>) at tpool-poll.c:195
#3  0x005acdd5 in start_wrapper_internal [inlined] () at :664
#4  0x005acdd5 in start_wrapper (data=<value temporarily unavailable, due to optimizations>) at threads.c:711
#5  0x00627560 in inner_start_thread (arg=<value temporarily unavailable, due to optimizations>) at mono-threads-posix.c:92
#6  0x0064c0dd in GC_start_routine (arg=0xcb6de40) at pthread_support.c:1502
#7  0x9814c5b7 in _pthread_start ()
#8  0x98136dce in thread_start ()

Thread 11 (process 12090):
#0  0x980c909a in __wait4 ()
#1  0x981d698a in waitpid$UNIX2003 ()
#2  0x004bf74d in mono_handle_native_sigsegv (signal=6, ctx=0xb06322dc, info=0xb063229c) at mini-exceptions.c:2347
#3  0x0050fc01 in sigabrt_signal_handler (_dummy=<value temporarily unavailable, due to optimizations>, _info=<value temporarily unavailable, due to optimizations>, context=<value temporarily unavailable, due to optimizations>) at mini-posix.c:208
#4  <signal handler called>
#5  0x980c8a6a in __pthread_kill ()
#6  0x9814db2f in pthread_kill ()
#7  0x98184631 in abort ()
#8  0x98166e03 in free ()
#9  0x0060a87a in wapi_CreateProcess (cmdline=<value temporarily unavailable, due to optimizations>, process_attrs=<value temporarily unavailable, due to optimizations>, thread_attrs=<value temporarily unavailable, due to optimizations>, inherit_handles=<value temporarily unavailable, due to optimizations>, create_flags=<value temporarily unavailable, due to optimizations>, new_environ=<value temporarily unavailable, due to optimizations>, startup=<value temporarily unavailable, due to optimizations>, process_info=<value temporarily unavailable, due to optimizations>) at processes.c:1079
#10 0x0059c6e3 in ves_icall_System_Diagnostics_Process_CreateProcess_internal (proc_start_info=<value temporarily unavailable, due to optimizations>, stdin_handle=0x0, stdout_handle=0x11, stderr_handle=0x13, process_info=0xb0632918) at process.c:669
#11 0x0db5dc50 in ?? ()
#12 0x0db5caec in ?? ()
#13 0x0db5c040 in ?? ()
#14 0x0db5bd28 in ?? ()
#15 0x0db5bafc in ?? ()
#16 0x0db5aa10 in ?? ()
#17 0x0db5a8b3 in ?? ()
#18 0x0db5a59c in ?? ()
#19 0x0db525a8 in ?? ()
#20 0x0db52334 in ?? ()
#21 0x0d2b82a6 in ?? ()
#22 0x0d2b812f in ?? ()
#23 0x0d2b7f50 in ?? ()
#24 0x0d25595c in ?? ()
#25 0x0040ec8f in mono_jit_runtime_invoke () at mini.c:6669
#26 0x005d0baf in mono_runtime_invoke (method=0x1ae29f8, obj=0xd0065e8) at object.c:2862
#27 0x005d7a2d in mono_runtime_invoke_array (method=0x1ae29f8, obj=<value temporarily unavailable, due to optimizations>, params=<value temporarily unavailable, due to optimizations>, exc=0xb0632eb0) at object.c:4331
#28 0x005da388 in mono_message_invoke (target=<value temporarily unavailable, due to optimizations>, exc=0xb06322fc) at object.c:6163
#29 0x005adfe9 in async_invoke_thread (data=0xcd85800) at threadpool.c:620
#30 0x005acdd5 in start_wrapper_internal [inlined] () at :664
#31 0x005acdd5 in start_wrapper (data=<value temporarily unavailable, due to optimizations>) at threads.c:711
#32 0x00627560 in inner_start_thread (arg=<value temporarily unavailable, due to optimizations>) at mono-threads-posix.c:92
#33 0x0064c0dd in GC_start_routine (arg=0xcb6de40) at pthread_support.c:1502
#34 0x9814c5b7 in _pthread_start ()
#35 0x98136dce in thread_start ()

Thread 10 (process 12090):
#0  0x980c8c72 in __semwait_signal ()
#1  0x981d6a49 in nanosleep$UNIX2003 ()
#2  0x00614607 in wapi_SleepEx (ms=<value temporarily unavailable, due to optimizations>, alertable=1) at wthreads.c:289
#3  0x005af878 in monitor_thread (unused=0x0) at threadpool.c:896
#4  0x005acdd5 in start_wrapper_internal [inlined] () at :664
#5  0x005acdd5 in start_wrapper (data=<value temporarily unavailable, due to optimizations>) at threads.c:711
#6  0x00627560 in inner_start_thread (arg=<value temporarily unavailable, due to optimizations>) at mono-threads-posix.c:92
#7  0x0064c0dd in GC_start_routine (arg=0xcb6de40) at pthread_support.c:1502
#8  0x9814c5b7 in _pthread_start ()
#9  0x98136dce in thread_start ()

Thread 9 (process 12090):
#0  0x980c88e2 in __psynch_cvwait ()
#1  0x98151280 in _pthread_cond_wait ()
#2  0x981d70d4 in pthread_cond_timedwait$UNIX2003 ()
#3  0x00601c07 in timedwait_signal_poll_cond [inlined] () at :1507
#4  0x00601c07 in _wapi_handle_timedwait_signal_handle (handle=<value temporarily unavailable, due to optimizations>, timeout=0xb050eb90, poll=<value temporarily unavailable, due to optimizations>) at handles.c:1597
#5  0x00612a0a in wapi_WaitForSingleObjectEx (handle=<value temporarily unavailable, due to optimizations>, timeout=<value temporarily unavailable, due to optimizations>, alertable=<value temporarily unavailable, due to optimizations>) at wait.c:196
#6  0x005a8912 in mono_wait_uninterrupted [inlined] () at :1376
#7  0x005a8912 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (this=0xcda1198, ms=Cannot access memory at address 0xffffffffffffffff
) at threads.c:1509
#8  0x0d261a30 in ?? ()
#9  0x0d261940 in ?? ()
#10 0x0d261780 in ?? ()
#11 0x0d260106 in ?? ()
#12 0x0d25e92d in ?? ()
#13 0x076a9844 in ?? ()
#14 0x0040ec8f in mono_jit_runtime_invoke () at mini.c:6669
#15 0x005d0baf in mono_runtime_invoke (method=0x1ab6590, obj=0xcf113f0) at object.c:2862
#16 0x005d63dc in mono_runtime_delegate_invoke (delegate=0xcf113f0, params=0x980c88e2, exc=0xb050ea6c) at object.c:3573
#17 0x005ace55 in start_wrapper_internal [inlined] () at :670
#18 0x005ace55 in start_wrapper (data=<value temporarily unavailable, due to optimizations>) at threads.c:711
#19 0x00627560 in inner_start_thread (arg=<value temporarily unavailable, due to optimizations>) at mono-threads-posix.c:92
#20 0x0064c0dd in GC_start_routine (arg=0xcb6de40) at pthread_support.c:1502
#21 0x9814c5b7 in _pthread_start ()
#22 0x98136dce in thread_start ()

Thread 8 (process 12090):
#0  0x980c67ce in mach_msg_trap ()
#1  0x980c5cac in mach_msg ()
#2  0x992e2f79 in __CFRunLoopServiceMachPort ()
#3  0x992e895f in __CFRunLoopRun ()
#4  0x992e801a in CFRunLoopRunSpecific ()
#5  0x992e7e8b in CFRunLoopRunInMode ()
#6  0x987efb76 in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] ()
#7  0x987819f0 in -[NSRunLoop(NSRunLoop) run] ()
#8  0x07a978a8 in ?? ()
#9  0x0d222f08 in ?? ()
#10 0x0d221bba in ?? ()
#11 0x07a76ffa in ?? ()
#12 0x987ea38b in __NSThread__main__ ()
#13 0x9814c5b7 in _pthread_start ()
#14 0x98136dce in thread_start ()

Thread 7 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 6 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 5 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 4 (process 12090):
#0  0x980c90ee in __workq_kernreturn ()
#1  0x9814f0ac in _pthread_workq_return ()
#2  0x9814ee79 in _pthread_wqthread ()
#3  0x98136daa in start_wqthread ()

Thread 3 (process 12090):
#0  0x980c99ae in kevent ()
#1  0x92fe9c71 in _dispatch_mgr_invoke ()
#2  0x92fe97a9 in _dispatch_mgr_thread ()

Thread 2 (process 12090):
#0  0x980c680a in semaphore_wait_trap ()
#1  0x00621aaa in mono_sem_wait (sem=0x71b3b4, alertable=1) at mono-semaphore.c:103
#2  0x005cedab in finalizer_thread (unused=0x0) at gc.c:1074
#3  0x005acdd5 in start_wrapper_internal [inlined] () at :664
#4  0x005acdd5 in start_wrapper (data=<value temporarily unavailable, due to optimizations>) at threads.c:711
#5  0x00627560 in inner_start_thread (arg=<value temporarily unavailable, due to optimizations>) at mono-threads-posix.c:92
#6  0x0064c0dd in GC_start_routine (arg=0x134cf60) at pthread_support.c:1502
#7  0x9814c5b7 in _pthread_start ()
#8  0x98136dce in thread_start ()

Thread 1 (process 12090):
#0  0x980c67ce in mach_msg_trap ()
#1  0x980c5cac in mach_msg ()
#2  0x992e2f79 in __CFRunLoopServiceMachPort ()
#3  0x992e895f in __CFRunLoopRun ()
#4  0x992e801a in CFRunLoopRunSpecific ()
#5  0x992e7e8b in CFRunLoopRunInMode ()
#6  0x9651ef5a in RunCurrentEventLoopInMode ()
#7  0x9651ecc9 in ReceiveNextEventCommon ()
#8  0x9651eb44 in BlockUntilNextEventMatchingListInMode ()
#9  0x959f693a in _DPSNextEvent ()
#10 0x959f616c in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#11 0x959ec5cc in -[NSApplication run] ()
#12 0x9598f5f6 in NSApplicationMain ()
#13 0x07a96190 in ?? ()
#14 0x07a96090 in ?? ()
#15 0x03cd5ac4 in ?? ()
#16 0x03cd4e50 in ?? ()
#17 0x03cd4f18 in ?? ()
#18 0x0040ec8f in mono_jit_runtime_invoke () at mini.c:6669
#19 0x005d0baf in mono_runtime_invoke (method=0x9af0c8, obj=0x0) at object.c:2862
#20 0x005d6c21 in mono_runtime_exec_main (method=0x9af0c8, args=<value temporarily unavailable, due to optimizations>, exc=0x0) at object.c:4119
#21 0x005d69e4 in mono_runtime_run_main (method=0x9af0c8, argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at object.c:3745
#22 0x0048962d in mono_jit_exec (domain=0x94e00, assembly=0x1431c80, argc=-1744017458, argv=0xbfffdb8c) at driver.c:1008
#23 0x0048b900 in mono_main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at driver.c:1067
#24 0x0000246a in main ()

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 1 Chris Hamons 2015-12-21 16:14:17 UTC
Fun bug. Thanks for the report!

I'm going to move it to the correct section in mono for review.
Comment 2 Aleksey Kliger 2015-12-21 22:38:54 UTC
Nice crash.  I can't reproduce it with recent Mono master or with 4.2.1

Could you send along the result of mono --version ?

Also some hint of:
 1. whether programPath is an absolute or relative path, and whether it's another clr executable or a native binary/shell script;
 2. whether commandLineArguments is non-null;
 3. same for  workingDirectory.

Thanks
Comment 3 xamarin 2016-03-10 05:22:31 UTC
Just noticed this request for info. Here's the result from mono --version:
Mono JIT compiler version 4.0.0 ((detached/d136b79 Mon Apr 13 14:40:59 EDT 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.6.0svn-mono-(detached/a173357)
	GC:            sgen

The path was an absolute path to a native C++ command line program that was included in an application bundle.

Command line arguments were not empty, and working directory was set to … gosh, I can't recall.
Comment 4 Aleksey Kliger 2016-03-10 15:04:12 UTC
Thanks!