Bug 28350 - Assertion at processes.c:2595, condition `mp' not met
Summary: Assertion at processes.c:2595, condition `mp' not met
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: io-layer ()
Version: 3.12.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Alexander Kyte
URL:
Depends on:
Blocks:
 
Reported: 2015-03-23 20:02 UTC by KaptOc6obnuCac0Bluc+bugzilla.xamarin.com
Modified: 2015-04-02 23:25 UTC (History)
5 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 KaptOc6obnuCac0Bluc+bugzilla.xamarin.com 2015-03-23 20:02:03 UTC
Hi,

I am using Mono 3.12.1 on Ubuntu 14.04 (x86_64) from tpokorra repo ( http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-opt ) and ran into an issue with System.Diagnostics.Process.GetCurrentProcess() in F# interactive. 

Every time I try to pretty print the process structure from F# interative the current process it leads to an assertion and abort.

Here is the full example and stacktrace:

F# Interactive for F# 3.1 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License

For help type #help;;

> let p = System.Diagnostics.Process.GetCurrentProcess();;

val p : System.Diagnostics.Process = System.Diagnostics.Process (fsi)

> p;;
* Assertion at processes.c:2595, condition `mp' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Diagnostics.Process.ExitCode_internal (intptr) <0xffffffff>
  at System.Diagnostics.Process.get_ExitCode () <0x00037>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int__this__ (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000df>
  at System.MonoType.InvokeMember (string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[]) <0x007cb>
  at System.Type.InvokeMember (string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Globalization.CultureInfo) <0x0005c>
  at Internal.Utilities.StructuredFormat.Display/reprL@1103-3.Invoke (System.Reflection.PropertyInfo) <0x000eb>
  at Microsoft.FSharp.Primitives.Basics.List.mapToFreshConsTail<a, b> (Microsoft.FSharp.Collections.FSharpList`1<a>,Microsoft.FSharp.Core.FSharpFunc`2<b, a>,Microsoft.FSharp.Collections.FSharpList`1<b>) <0x00055>
  at Microsoft.FSharp.Primitives.Basics.List.map<T, TResult> (Microsoft.FSharp.Core.FSharpFunc`2<T, TResult>,Microsoft.FSharp.Collections.FSharpList`1<T>) <0x00137>
  at Microsoft.FSharp.Collections.ListModule.Map<T, TResult> (Microsoft.FSharp.Core.FSharpFunc`2<T, TResult>,Microsoft.FSharp.Collections.FSharpList`1<T>) <0x0002f>
  at Internal.Utilities.StructuredFormat.Display.reprL@933 (Internal.Utilities.StructuredFormat.Display/ShowMode,System.Reflection.BindingFlags,Internal.Utilities.StructuredFormat.FormatOptions,System.Collections.Generic.Dictionary`2<object, int>,Microsoft.FSharp.Core.FSharpRef`1<int>,Internal.Utilities.StructuredFormat.Display/ShowMode,int,Internal.Utilities.StructuredFormat.Display/Precedence,Internal.Utilities.StructuredFormat.ReflectUtils/ValueInfo,object) <0x0192f>
  at Internal.Utilities.StructuredFormat.Display.objWithReprL@842 (Internal.Utilities.StructuredFormat.Display/ShowMode,System.Reflection.BindingFlags,Internal.Utilities.StructuredFormat.FormatOptions,System.Collections.Generic.Dictionary`2<object, int>,Microsoft.FSharp.Core.FSharpRef`1<int>,Internal.Utilities.StructuredFormat.Display/ShowMode,int,Internal.Utilities.StructuredFormat.Display/Precedence,Internal.Utilities.StructuredFormat.ReflectUtils/ValueInfo,object) <0x00e37>
  at Internal.Utilities.StructuredFormat.Display.anyL<a> (Internal.Utilities.StructuredFormat.Display/ShowMode,System.Reflection.BindingFlags,Internal.Utilities.StructuredFormat.FormatOptions,a) <0x000eb>
  at Internal.Utilities.StructuredFormat.Display.any_to_layout<T> (Internal.Utilities.StructuredFormat.FormatOptions,T) <0x00043>
  at Microsoft.FSharp.Compiler.Interactive.Shell/Utilities/AnyToLayoutSpecialization`1.Microsoft-FSharp-Compiler-Interactive-Shell-Utilities-IAnyToLayoutCall-AnyToLayout (Internal.Utilities.StructuredFormat.FormatOptions,object) <0x0005b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiValuePrinter.PrintValue (Microsoft.FSharp.Compiler.Interactive.Shell/FsiValuePrinterMode,Internal.Utilities.StructuredFormat.FormatOptions,object,System.Type) <0x00096>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiValuePrinter.InvokeExprPrinter (Microsoft.FSharp.Compiler.Tastops/DisplayEnv,Microsoft.FSharp.Compiler.Tast/Val) <0x0006b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompiler.EvalParsedExpression (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Compiler.Ast/SynExpr) <0x0014b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/clo@1590-45.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x0158f>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.InteractiveCatch<a> (Microsoft.FSharp.Core.FSharpFunc`2<a, System.Tuple`2<a, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>,a) <0x00050>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.ExecInteraction (bool,Microsoft.FSharp.Compiler.Build/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction) <0x0006b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.ExecInteractions (bool,Microsoft.FSharp.Compiler.Build/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction>) <0x00747>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.MainThreadProcessParsedInteraction (bool,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction>,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x00193>
  at Microsoft.FSharp.Compiler.Interactive.Shell/res@1782.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x0002f>
  at Microsoft.FSharp.Compiler.Interactive.Shell/runCodeOnMainThread@2021-2.Invoke (Microsoft.FSharp.Core.Unit) <0x0003c>
  at <StartupCode$FSharp-Compiler-Interactive-Settings>.$Fsiaux/Microsoft-FSharp-Compiler-Interactive-IEventLoop-Invoke@47.Invoke (Microsoft.FSharp.Core.Unit) <0x00021>
  at <StartupCode$FSharp-Compiler-Interactive-Settings>.$Fsiaux/run@38-4.Invoke (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, object>) <0x00048>
  at Microsoft.FSharp.Primitives.Basics.List.iter<T> (Microsoft.FSharp.Core.FSharpFunc`2<T, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Collections.FSharpList`1<T>) <0x00049>
  at Microsoft.FSharp.Collections.ListModule.Iterate<T> (Microsoft.FSharp.Core.FSharpFunc`2<T, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Collections.FSharpList`1<T>) <0x0002f>
  at <StartupCode$FSharp-Compiler-Interactive-Settings>.$Fsiaux.run@35 (Microsoft.FSharp.Compiler.Interactive.SimpleEventLoop,Microsoft.FSharp.Core.Unit) <0x000f7>
  at Microsoft.FSharp.Compiler.Interactive.SimpleEventLoop.Microsoft-FSharp-Compiler-Interactive-IEventLoop-Run () <0x0001f>
  at Microsoft.FSharp.Compiler.Interactive.Shell.runLoop@2066 (Microsoft.FSharp.Compiler.Interactive.Shell/FsiConsoleOutput,Microsoft.FSharp.Core.Unit) <0x00273>
  at Microsoft.FSharp.Compiler.Interactive.Shell.DriveFsiEventLoop (Microsoft.FSharp.Compiler.Interactive.Shell/FsiConsoleOutput) <0x0000f>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiEvaluationSession.Run () <0x00dcf>
  at Microsoft.FSharp.Compiler.Interactive.Shell.evaluateSession@2382 (string[],Microsoft.FSharp.Core.Unit) <0x00093>
  at Microsoft.FSharp.Compiler.Interactive.Shell.MainMain (string[]) <0x0013f>
  at Microsoft.FSharp.Compiler.Interactive.Main.FsiMain (string[]) <0x0000f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	mono() [0x4c3db8]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f21483e8340]
	/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f2147e2ecc9]
	/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f2147e320d8]
	mono() [0x6475d9]
	mono() [0x6477df]
	mono() [0x647926]
	mono() [0x626055]
	mono() [0x6275e3]
	mono() [0x59f55e]
	[0x4051e965]

Debug info from gdb:

  File "/opt/mono/bin/mono-sgen-gdb.py", line 34
    c = "\u%X".format (val)
                       ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: truncated \uXXXX escape
[New LWP 20077]
[New LWP 20076]
[New LWP 20074]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f21483e7ee9 in __libc_waitpid (pid=pid@entry=20080, stat_loc=stat_loc@entry=0x7fff085a3a0c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40	../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
  Id   Target Id         Frame 
  4    Thread 0x7f21472d7700 (LWP 20074) "Finalizer" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  3    Thread 0x7f213de47700 (LWP 20076) "mono" __clock_nanosleep (clock_id=1, flags=1, req=0x7f213de46940, rem=0xffffffffffffffff) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:49
  2    Thread 0x7f213dc46700 (LWP 20077) "mono" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
* 1    Thread 0x7f21494367c0 (LWP 20072) "mono" 0x00007f21483e7ee9 in __libc_waitpid (pid=pid@entry=20080, stat_loc=stat_loc@entry=0x7fff085a3a0c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40

Thread 4 (Thread 0x7f21472d7700 (LWP 20074)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x000000000063d767 in mono_sem_wait (sem=sem@entry=0x1567200 <finalizer_sem>, alertable=alertable@entry=1) at mono-semaphore.c:101
#2  0x00000000005c29dd in finalizer_thread (unused=<optimized out>) at gc.c:1077
#3  0x00000000005a7320 in start_wrapper_internal (data=<optimized out>) at threads.c:663
#4  start_wrapper (data=<optimized out>) at threads.c:710
#5  0x000000000064243e in inner_start_thread (arg=0x7fff085a6970) at mono-threads-posix.c:88
#6  0x00007f21483e0182 in start_thread (arg=0x7f21472d7700) at pthread_create.c:312
#7  0x00007f2147ef247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f213de47700 (LWP 20076)):
#0  __clock_nanosleep (clock_id=1, flags=1, req=0x7f213de46940, rem=0xffffffffffffffff) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:49
#1  0x0000000000631048 in SleepEx (ms=ms@entry=200, alertable=alertable@entry=1) at wthreads.c:277
#2  0x00000000005a7b8a in ves_icall_System_Threading_Thread_Sleep_internal (ms=200) at threads.c:1131
#3  0x00000000403d76c2 in ?? ()
#4  0x00007f2138002650 in ?? ()
#5  0x00007f213de46e00 in ?? ()
#6  0x00007f2146c2ef50 in ?? ()
#7  0x00007f2146c2ef50 in ?? ()
#8  0x00000000000000c8 in ?? ()
#9  0x00007f21340025f0 in ?? ()
#10 0x00000000403d765b in ?? ()
#11 0x00007f213de46a70 in ?? ()
#12 0x00007f213de469a0 in ?? ()
#13 0x00000000403d758c in ?? ()
#14 0x00007f2146c2ef20 in ?? ()
#15 0x00000000403d7570 in ?? ()
#16 0x00007f213de46a70 in ?? ()
#17 0x00000000403d6f04 in ?? ()
#18 0x00000000037674b0 in ?? ()
#19 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f213dc46700 (LWP 20077)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000061d05b in _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x40b, timeout=timeout@entry=0x0, alertable=alertable@entry=1, poll=poll@entry=0) at handles.c:1615
#2  0x000000000061d11b in _wapi_handle_wait_signal_handle (handle=handle@entry=0x40b, alertable=alertable@entry=1) at handles.c:1560
#3  0x000000000062fdbb in WaitForSingleObjectEx (handle=0x40b, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:194
#4  0x00000000006306e0 in WaitForMultipleObjectsEx (numobjects=numobjects@entry=1, handles=handles@entry=0x7f212c626500, waitall=waitall@entry=1, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:516
#5  0x00000000005a6c2d in mono_wait_uninterrupted (thread=thread@entry=0x7f214938a110, multiple=multiple@entry=1, numhandles=numhandles@entry=1, handles=handles@entry=0x7f212c626500, waitall=waitall@entry=1, ms=ms@entry=-1, alertable=1) at threads.c:1361
#6  0x00000000005a7d90 in ves_icall_System_Threading_WaitHandle_WaitAll_internal (mono_handles=0x7f2146dc5038, ms=-1, exitContext=<optimized out>) at threads.c:1415
#7  0x00000000403daa8e in ?? ()
#8  0x00007f2146f6a040 in ?? ()
#9  0x00007f2146dbdbb0 in ?? ()
#10 0x00007f2146c2bfc8 in ?? ()
#11 0x00007f2149386d70 in ?? ()
#12 0x00007f2146dc5038 in ?? ()
#13 0x00007f212c0025f0 in ?? ()
#14 0x00007f21442af620 in ?? ()
#15 0x00007f213dc45800 in ?? ()
#16 0x00007f213dc456c0 in ?? ()
#17 0x00000000403daa0c in ?? ()
#18 0x00007f2146dbecd0 in ?? ()
#19 0x0000000040452b88 in ?? ()
#20 0x00007f2146dbecd0 in ?? ()
#21 0x00007f21442495f0 in ?? ()
#22 0x00007f2146dc5038 in ?? ()
#23 0x00000000404529d4 in ?? ()
#24 0x00007f2146dbecd0 in ?? ()
#25 0x00007f212c664b30 in ?? ()
#26 0x00007f2146dc4fd0 in ?? ()
#27 0xffffffffffffffef in ?? ()
#28 0x00007f21442ba368 in ?? ()
#29 0x00007f2144291ff0 in ?? ()
#30 0x00007f2146dc5000 in ?? ()
#31 0x000000004045268b in ?? ()
#32 0x00007f2146dbdb30 in ?? ()
#33 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f21494367c0 (LWP 20072)):
#0  0x00007f21483e7ee9 in __libc_waitpid (pid=pid@entry=20080, stat_loc=stat_loc@entry=0x7fff085a3a0c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1  0x00000000004c3e45 in mono_handle_native_sigsegv (signal=<optimized out>, ctx=<optimized out>) at mini-exceptions.c:2323
#2  <signal handler called>
#3  0x00007f2147e2ecc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#4  0x00007f2147e320d8 in __GI_abort () at abort.c:89
#5  0x00000000006475d9 in monoeg_log_default_handler (log_domain=<optimized out>, log_level=G_LOG_LEVEL_ERROR, message=<optimized out>, unused_data=<optimized out>) at goutput.c:232
#6  0x00000000006477df in monoeg_g_logv (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7fff085a4958) at goutput.c:113
#7  0x0000000000647926 in monoeg_assertion_message (format=<optimized out>) at goutput.c:133
#8  0x0000000000626055 in process_wait (handle=handle@entry=0x401, timeout=timeout@entry=0, alertable=alertable@entry=1) at processes.c:2595
#9  0x00000000006275e3 in GetExitCodeProcess (process=0x401, code=code@entry=0x7fff085a4acc) at processes.c:1250
#10 0x000000000059f55e in ves_icall_System_Diagnostics_Process_ExitCode_internal (process=<optimized out>) at process.c:776
#11 0x000000004051e965 in ?? ()
#12 0x0000000004c4dd90 in ?? ()
#13 0x00007fff085a4e90 in ?? ()
#14 0x000000004051e140 in ?? ()
#15 0x00007f2146db6bb8 in ?? ()
#16 0x00007f2146db6bb8 in ?? ()
#17 0x00007fff085a4fe8 in ?? ()
#18 0x000000004051e904 in ?? ()
#19 0x00007fff085a4bb0 in ?? ()
#20 0x00007fff085a4ae0 in ?? ()
#21 0x000000004051e898 in ?? ()
#22 0x00007f2146db6bb8 in ?? ()
#23 0x000000004051e860 in ?? ()
#24 0x0000000004481b30 in ?? ()
#25 0x000000004051e213 in ?? ()
#26 0x00000000000003ff in ?? ()
#27 0x0000000004c4dd90 in ?? ()
#28 0x0000000000000000 in ?? ()

=================================================================
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.
=================================================================

Aborted (core dumped)


The source of assertion looks like these lines in mono/io-layer/processes.c:2595


        /* We don't need to lock mono_processes here, the entry
         * has a handle_count > 0 which means it will not be freed. */
        mp = process_handle->mono_process;
        g_assert (mp);

Thanks for your help,
K.
Comment 1 Alexander Kyte 2015-03-24 11:52:49 UTC
I cannot reproduce on OSX. It might be linux-specific.
Comment 2 Zoltan Varga 2015-03-24 12:39:04 UTC
What is the output of mono --version ?
Comment 3 KaptOc6obnuCac0Bluc+bugzilla.xamarin.com 2015-03-24 12:48:16 UTC
Hi,

On my machine the output of `mono --version` is:

Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.4svn-mono-/)
	GC:            sgen

It's rebuilt from tpokorra repo, with the following changes:
* binaries not striped
* add  --with-oprofile=/usr

I can also reproduce the same problem on different machine using the original unmodified package from tpokorra repo on Scientific Linux release 6.6 (Carbon) (x86_64):

Mono JIT compiler version 3.12.1 (tarball Tue Mar 10 11:06:38 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.4svn-mono-/)
	GC:            sgen

F# Interactive for F# 3.1 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License

For help type #help;;

> Failed to install ctrl-c handler - Ctrl-C handling will not be available. Error was:
	Exception has been thrown by the target of an invocation.
- ;;
> let p = System.Diagnostics.Process.GetCurrentProcess();;

val p : System.Diagnostics.Process = System.Diagnostics.Process (fsi)

> p;;
* Assertion at processes.c:2595, condition `mp' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Diagnostics.Process.ExitCode_internal (intptr) <0xffffffff>
  at System.Diagnostics.Process.get_ExitCode () <0x00037>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int__this__ (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000df>
  at System.MonoType.InvokeMember (string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[]) <0x007cb>
  at System.Type.InvokeMember (string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Globalization.CultureInfo) <0x0005c>
  at Internal.Utilities.StructuredFormat.Display/reprL@1103-3.Invoke (System.Reflection.PropertyInfo) <0x000eb>
  at Microsoft.FSharp.Primitives.Basics.List.mapToFreshConsTail<a, b> (Microsoft.FSharp.Collections.FSharpList`1<a>,Microsoft.FSharp.Core.FSharpFunc`2<b, a>,Microsoft.FSharp.Collections.FSharpList`1<b>) <0x00055>
  at Microsoft.FSharp.Primitives.Basics.List.map<T, TResult> (Microsoft.FSharp.Core.FSharpFunc`2<T, TResult>,Microsoft.FSharp.Collections.FSharpList`1<T>) <0x00137>
  at Microsoft.FSharp.Collections.ListModule.Map<T, TResult> (Microsoft.FSharp.Core.FSharpFunc`2<T, TResult>,Microsoft.FSharp.Collections.FSharpList`1<T>) <0x0002f>
  at Internal.Utilities.StructuredFormat.Display.reprL@933 (Internal.Utilities.StructuredFormat.Display/ShowMode,System.Reflection.BindingFlags,Internal.Utilities.StructuredFormat.FormatOptions,System.Collections.Generic.Dictionary`2<object, int>,Microsoft.FSharp.Core.FSharpRef`1<int>,Internal.Utilities.StructuredFormat.Display/ShowMode,int,Internal.Utilities.StructuredFormat.Display/Precedence,Internal.Utilities.StructuredFormat.ReflectUtils/ValueInfo,object) <0x0193f>
  at Internal.Utilities.StructuredFormat.Display.objWithReprL@842 (Internal.Utilities.StructuredFormat.Display/ShowMode,System.Reflection.BindingFlags,Internal.Utilities.StructuredFormat.FormatOptions,System.Collections.Generic.Dictionary`2<object, int>,Microsoft.FSharp.Core.FSharpRef`1<int>,Internal.Utilities.StructuredFormat.Display/ShowMode,int,Internal.Utilities.StructuredFormat.Display/Precedence,Internal.Utilities.StructuredFormat.ReflectUtils/ValueInfo,object) <0x00e3f>
  at Internal.Utilities.StructuredFormat.Display.anyL<a> (Internal.Utilities.StructuredFormat.Display/ShowMode,System.Reflection.BindingFlags,Internal.Utilities.StructuredFormat.FormatOptions,a) <0x000eb>
  at Internal.Utilities.StructuredFormat.Display.any_to_layout<T> (Internal.Utilities.StructuredFormat.FormatOptions,T) <0x00043>
  at Microsoft.FSharp.Compiler.Interactive.Shell/Utilities/AnyToLayoutSpecialization`1.Microsoft-FSharp-Compiler-Interactive-Shell-Utilities-IAnyToLayoutCall-AnyToLayout (Internal.Utilities.StructuredFormat.FormatOptions,object) <0x0005b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiValuePrinter.PrintValue (Microsoft.FSharp.Compiler.Interactive.Shell/FsiValuePrinterMode,Internal.Utilities.StructuredFormat.FormatOptions,object,System.Type) <0x00096>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiValuePrinter.InvokeExprPrinter (Microsoft.FSharp.Compiler.Tastops/DisplayEnv,Microsoft.FSharp.Compiler.Tast/Val) <0x0006b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompiler.EvalParsedExpression (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Compiler.Ast/SynExpr) <0x0014b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/clo@1700-45.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x015a3>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.InteractiveCatch<a> (Microsoft.FSharp.Core.FSharpFunc`2<a, System.Tuple`2<a, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>,a) <0x00050>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.ExecInteraction (bool,Microsoft.FSharp.Compiler.Build/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction) <0x00067>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.ExecInteractions (bool,Microsoft.FSharp.Compiler.Build/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction>) <0x0070b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.MainThreadProcessParsedInteraction (bool,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction>,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x00193>
  at Microsoft.FSharp.Compiler.Interactive.Shell/res@1909.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x0002f>
  at Microsoft.FSharp.Compiler.Interactive.Shell/runCodeOnMainThread@2155-2.Invoke (Microsoft.FSharp.Core.Unit) <0x0003c>
  at <StartupCode$FSharp-Compiler-Interactive-Settings>.$Fsiaux/Microsoft-FSharp-Compiler-Interactive-IEventLoop-Invoke@47.Invoke (Microsoft.FSharp.Core.Unit) <0x00021>
  at <StartupCode$FSharp-Compiler-Interactive-Settings>.$Fsiaux/run@38-4.Invoke (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, object>) <0x00048>
  at Microsoft.FSharp.Primitives.Basics.List.iter<T> (Microsoft.FSharp.Core.FSharpFunc`2<T, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Collections.FSharpList`1<T>) <0x00049>
  at Microsoft.FSharp.Collections.ListModule.Iterate<T> (Microsoft.FSharp.Core.FSharpFunc`2<T, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Collections.FSharpList`1<T>) <0x0002f>
  at <StartupCode$FSharp-Compiler-Interactive-Settings>.$Fsiaux.run@35 (Microsoft.FSharp.Compiler.Interactive.SimpleEventLoop,Microsoft.FSharp.Core.Unit) <0x000eb>
  at Microsoft.FSharp.Compiler.Interactive.SimpleEventLoop.Microsoft-FSharp-Compiler-Interactive-IEventLoop-Run () <0x0001f>
  at Microsoft.FSharp.Compiler.Interactive.Shell.runLoop@2203 (Microsoft.FSharp.Compiler.Interactive.Shell/FsiConsoleOutput,Microsoft.FSharp.Core.Unit) <0x00273>
  at Microsoft.FSharp.Compiler.Interactive.Shell.DriveFsiEventLoop (Microsoft.FSharp.Compiler.Interactive.Shell/FsiConsoleOutput) <0x0000f>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiEvaluationSession.Run () <0x00f07>
  at Microsoft.FSharp.Compiler.Interactive.Shell.evaluateSession@2594 (string[],Microsoft.FSharp.Core.Unit) <0x00093>
  at Microsoft.FSharp.Compiler.Interactive.Shell.MainMain (string[]) <0x0019f>
  at Microsoft.FSharp.Compiler.Interactive.Main.FsiMain (string[]) <0x0000f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	mono() [0x4a9e65]
	/lib64/libpthread.so.0(+0xf710) [0x7f870930a710]
	/lib64/libc.so.6(gsignal+0x35) [0x7f8708d83625]
	/lib64/libc.so.6(abort+0x175) [0x7f8708d84e05]
	mono() [0x637869]
	mono() [0x6378f7]
	mono() [0x6379b7]
	mono() [0x615aeb]
	mono() [0x616ada]
	mono() [0x58a78e]
	[0x41b2d975]

Debug info from gdb:

warning: File "/opt/mono/bin/mono-sgen-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "/usr/share/gdb/auto-load:/usr/lib/debug:/usr/bin/mono-gdb.py".
To enable execution of this file add
	add-auto-load-safe-path /opt/mono/bin/mono-sgen-gdb.py
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
[New LWP 83768]
[New LWP 83764]
[Thread debugging using libthread_db enabled]
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff621fe000
0x00007f870930a2ad in waitpid () from /lib64/libpthread.so.0
  3 Thread 0x7f870151b700 (LWP 83764)  0x00007f8709308930 in sem_wait () from /lib64/libpthread.so.0
  2 Thread 0x7f86f9c9b700 (LWP 83768)  0x00007f87093065bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
* 1 Thread 0x7f870a4ed780 (LWP 83762)  0x00007f870930a2ad in waitpid () from /lib64/libpthread.so.0

Thread 3 (Thread 0x7f870151b700 (LWP 83764)):
#0  0x00007f8709308930 in sem_wait () from /lib64/libpthread.so.0
#1  0x000000000062d498 in mono_sem_wait ()
#2  0x00000000005b3f2d in ?? ()
#3  0x00000000005941b7 in ?? ()
#4  0x0000000000632c36 in ?? ()
#5  0x00007f87093029d1 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f8708e398fd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f86f9c9b700 (LWP 83768)):
#0  0x00007f87093065bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000000060d89b in ?? ()
#2  0x000000000061f69b in ?? ()
#3  0x000000000061fd2a in ?? ()
#4  0x0000000000594e1d in ?? ()
#5  0x0000000000594f62 in ?? ()
#6  0x00000000419c75be in ?? ()
#7  0x00007f8702b60988 in ?? ()
#8  0x00007f8702b5f448 in ?? ()
#9  0x00007f870282b2f0 in ?? ()
#10 0x00007f870a43e588 in ?? ()
#11 0x00007f870291a2d0 in ?? ()
#12 0x00007f86ec0025f0 in ?? ()
#13 0x00007f870002a360 in ?? ()
#14 0x00007f86f9c9a7a0 in ?? ()
#15 0x00007f86f9c9a660 in ?? ()
#16 0x00000000419c749c in ?? ()
#17 0x00007f8702ae59f0 in ?? ()
#18 0x0000000041a25880 in ?? ()
#19 0x00007f8702ae59f0 in ?? ()
#20 0x00007f86fbbfbdf0 in ?? ()
#21 0x00007f870291a2d0 in ?? ()
#22 0x0000000041a256d4 in ?? ()
#23 0x00007f8702ae59f0 in ?? ()
#24 0x00007f86ec1a1e48 in ?? ()
#25 0x00007f870291a268 in ?? ()
#26 0xffffffffffffffef in ?? ()
#27 0x00007f86fbda5de0 in ?? ()
#28 0x00007f86fbbf8600 in ?? ()
#29 0x00007f870291a298 in ?? ()
#30 0x0000000041a2538b in ?? ()
#31 0x00007f8702b5f3c8 in ?? ()
#32 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f870a4ed780 (LWP 83762)):
#0  0x00007f870930a2ad in waitpid () from /lib64/libpthread.so.0
#1  0x00000000004a9ef8 in ?? ()
#2  <signal handler called>
#3  0x00007f8708d83625 in raise () from /lib64/libc.so.6
#4  0x00007f8708d84e05 in abort () from /lib64/libc.so.6
#5  0x0000000000637869 in ?? ()
#6  0x00000000006378f7 in ?? ()
#7  0x00000000006379b7 in ?? ()
#8  0x0000000000615aeb in ?? ()
#9  0x0000000000616ada in ?? ()
#10 0x000000000058a78e in ?? ()
#11 0x0000000041b2d975 in ?? ()
#12 0x0000000003e00190 in ?? ()
#13 0x00007fff6212f480 in ?? ()
#14 0x00007f86ec538e70 in ?? ()
#15 0x00007f86f85b4f30 in ?? ()
#16 0x00007f86f85b4f30 in ?? ()
#17 0x00007fff6212f5b8 in ?? ()
#18 0x0000000041b2d904 in ?? ()
#19 0x00007fff6212f1a0 in ?? ()
#20 0x00007fff6212f0d0 in ?? ()
#21 0x0000000041b2d898 in ?? ()
#22 0x00007f86f85b4f30 in ?? ()
#23 0x0000000041b2d860 in ?? ()
#24 0x00007f86ec538e70 in ?? ()
#25 0x0000000041b2d213 in ?? ()
#26 0x0000000003dce060 in ?? ()
#27 0x0000000003c6db50 in ?? ()
#28 0x0000000000000000 in ?? ()

=================================================================
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.
=================================================================

Aborted
Comment 4 KaptOc6obnuCac0Bluc+bugzilla.xamarin.com 2015-03-24 12:51:26 UTC
Hi,

Sorry, I haven't copied the first line of the version from my machine:

The output of `mono --version

Mono JIT compiler version 3.12.1 (tarball Sat Mar 14 14:36:30 CET 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.4svn-mono-/)
	GC:            sgen
Comment 5 Alexander Kyte 2015-03-30 11:06:45 UTC
I'm seeing that crash now as well. I was using a pretty old fsharp rather than the one from git. I'll look into it.
Comment 6 Zoltan Varga 2015-03-30 11:07:50 UTC
@kyte: are you seeing this with master or 4.0 ?
Comment 7 Alexander Kyte 2015-03-30 11:24:57 UTC
You beat me to it. I was seeing this with 3.12 but when I made sure that I was using the mono from master, it didn't crash.
Comment 8 Rodrigo Kumpera 2015-04-02 11:36:54 UTC
So is this fixed on master/4.0?
Comment 9 Zoltan Varga 2015-04-02 11:42:19 UTC
It is most likely fixed in master/4.0.
Comment 10 Zoltan Varga 2015-04-02 23:25:32 UTC
-> FIXED.