Bug 52417 - mono crashes
Summary: mono crashes
Status: RESOLVED INVALID
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: 4.6.0 (C8)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2017-02-09 11:12 UTC by Roman
Modified: 2017-02-14 21:40 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 INVALID

Description Roman 2017-02-09 11:12:31 UTC
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) object.wrapper_native_0x7f6b795f2c00 (OpenTK.Graphics.OpenGL.BeginMode,int,OpenTK.Graphics.OpenGL.DrawElementsType,intptr) <IL 0x0000c, 0x000f3>
  at OpenTK.Graphics.OpenGL.GL.DrawElements (OpenTK.Graphics.OpenGL.BeginMode,int,OpenTK.Graphics.OpenGL.DrawElementsType,intptr) <IL 0x00009, 0x00089>
  at Microsoft.Xna.Framework.Graphics.SpriteBatcher.FlushVertexArray (int,int) <IL 0x00035, 0x001b3>
  at Microsoft.Xna.Framework.Graphics.SpriteBatcher.DrawBatch (Microsoft.Xna.Framework.Graphics.SpriteSortMode,Microsoft.Xna.Framework.Graphics.SamplerState) <IL 0x00156, 0x00b5f>
  at Microsoft.Xna.Framework.Graphics.SpriteBatch.End () <IL 0x00396, 0x01937>
  at Terminal.Payment.UI.ScreenManager.Draw (Microsoft.Xna.Framework.GameTime) [0x00061] in /media/destructor/Documents/Projects/Terminal_Crossplatform/GUI/Standard/TerminalUI/Screens/ScreenManager.cs:325
  at Terminal.Payment.UI.MyGame.Draw (Microsoft.Xna.Framework.GameTime) [0x00002] in /media/destructor/Documents/Projects/Terminal_Crossplatform/GUI/Standard/TerminalUI/MyGame.cs:339
  at Microsoft.Xna.Framework.Game.DoDraw (Microsoft.Xna.Framework.GameTime) <IL 0x00029, 0x001d0>
  at Microsoft.Xna.Framework.GameWindow.OnRenderFrame (object,OpenTK.FrameEventArgs) <IL 0x00149, 0x008f3>
  at OpenTK.GameWindow.OnRenderFrame (OpenTK.FrameEventArgs) <IL 0x00010, 0x000a1>
  at OpenTK.GameWindow.OnRenderFrameInternal (OpenTK.FrameEventArgs) <IL 0x00012, 0x000db>
  at OpenTK.GameWindow.RaiseRenderFrame (System.Diagnostics.Stopwatch,double&,OpenTK.FrameEventArgs) <IL 0x000ee, 0x006e7>
  at OpenTK.GameWindow.DispatchUpdateAndRenderFrame (object,System.EventArgs) <IL 0x0002b, 0x000eb>
  at OpenTK.GameWindow.Run (double,double) <IL 0x000c0, 0x00587>
  at OpenTK.GameWindow.Run (double) <IL 0x0000b, 0x0006f>
  at Microsoft.Xna.Framework.GameWindow.Run (double) <IL 0x00008, 0x00087>
  at Microsoft.Xna.Framework.LinuxGamePlatform.RunLoop () <IL 0x0002c, 0x001ab>
  at Microsoft.Xna.Framework.Game.Run (Microsoft.Xna.Framework.GameRunBehavior) <IL 0x00094, 0x0050e>
  at Microsoft.Xna.Framework.Game.Run () <IL 0x0000d, 0x000af>
  at Terminal.Payment.UI.Program.Main (string[]) [0x00107] in /media/destructor/Documents/Projects/Terminal_Crossplatform/GUI/Standard/TerminalUI/Program.cs:45
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00051, 0x002db>

Native stacktrace:

	/usr/bin/mono() [0x4accca]
	/usr/bin/mono() [0x5040fe]
	/usr/bin/mono() [0x4275d7]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7f6b8e539330]
	/usr/lib/nvidia-367/libnvidia-glcore.so.367.57(+0x10e3635) [0x7f6b731a6635]
	/usr/lib/nvidia-367/libnvidia-glcore.so.367.57(+0x11a7ed3) [0x7f6b7326aed3]
	/usr/lib/nvidia-367/libnvidia-glcore.so.367.57(+0x11ac624) [0x7f6b7326f624]
	/usr/lib/nvidia-367/libnvidia-glcore.so.367.57(+0xd935a9) [0x7f6b72e565a9]
	[0x4044d424]

Debug info from gdb:

[13:02:38][Debug][BillListener]: -> (/dev/ttyS0): [02 03 06 33 DA 81]
Mono support loaded.
Mono support loaded.
[New LWP 11553]
[New LWP 11547]
[New LWP 11507]
[New LWP 11493]
[New LWP 11458]
[New LWP 11439]
[New LWP 11433]
[New LWP 11426]
[New LWP 11424]
[New LWP 11421]
[New LWP 11420]
[New LWP 11397]
[New LWP 11395]
[New LWP 11374]
[New LWP 11361]
[New LWP 11360]
[New LWP 11359]
[New LWP 11355]
[New LWP 11347]
[New LWP 11346]
[New LWP 11344]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f6b8e538ed9 in __libc_waitpid (pid=pid@entry=11554, stat_loc=stat_loc@entry=0x7f6b8f06511c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40	../sysdeps/unix/sysv/linux/waitpid.c: Немає такого файла або каталогу.
  Id   Target Id         Frame 
  22   Thread 0x7f6b8d3ff700 (LWP 11344) "SGen worker" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  21   Thread 0x7f6b8b860700 (LWP 11346) "Finalizer" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  20   Thread 0x7f6b8b65f700 (LWP 11347) "Debugger agent" 0x00007f6b8e5387eb in __libc_recv (fd=fd@entry=3, buf=buf@entry=0x7f6b8b65ed30, n=n@entry=11, flags=-1, flags@entry=0) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:33
  19   Thread 0x7f6b7aae0700 (LWP 11355) "gmain" 0x00007f6b8e03afdd in poll () at ../sysdeps/unix/syscall-template.S:81
  18   Thread 0x7f6b71851700 (LWP 11359) "Threadpool work" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  17   Thread 0x7f6b7164c700 (LWP 11360) "Threadpool work" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  16   Thread 0x7f6b71447700 (LWP 11361) "Threadpool work" 0x00007f6b8e5383ad in read () at ../sysdeps/unix/syscall-template.S:81
  15   Thread 0x7f6b70abf700 (LWP 11374) "Main" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  14   Thread 0x7f6b56de2700 (LWP 11395) "Threadpool work" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  13   Thread 0x7f6b7a009700 (LWP 11397) "Timer-Scheduler" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  12   Thread 0x7f6b543f3700 (LWP 11420) "StartRun" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  11   Thread 0x7f6b55dfe700 (LWP 11421) "StartRun" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  10   Thread 0x7f6b71de9700 (LWP 11424) "Threadpool work" 0x00007f6b8e03afdd in poll () at ../sysdeps/unix/syscall-template.S:81
  9    Thread 0x7f6b538fd700 (LWP 11426) "GetResourceLinu" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  8    Thread 0x7f6b534fb700 (LWP 11433) "BillListener" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  7    Thread 0x7f6b52cff700 (LWP 11439) "StartRun" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  6    Thread 0x7f6b55fff700 (LWP 11458) "Main" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  5    Thread 0x7f6b71896700 (LWP 11493) "Timer-Scheduler" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  4    Thread 0x7f6b56fe3700 (LWP 11507) "Threadpool work" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  3    Thread 0x7f6b536fc700 (LWP 11547) "MQSendEvent" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  2    Thread 0x7f6b532fa700 (LWP 11553) "SettingsClass" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
* 1    Thread 0x7f6b8f04a780 (LWP 11343) "Main" 0x00007f6b8e538ed9 in __libc_waitpid (pid=pid@entry=11554, stat_loc=stat_loc@entry=0x7f6b8f06511c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40

Thread 22 (Thread 0x7f6b8d3ff700 (LWP 11344)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000623537 in mono_os_cond_wait (cond=0x98a420 <work_cond>, mutex=<optimized out>) at ../../mono/utils/mono-os-mutex.h:107
#2  thread_func (thread_data=0x0) at sgen-thread-pool.c:110
#3  0x00007f6b8e531184 in start_thread (arg=0x7f6b8d3ff700) at pthread_create.c:312
#4  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 21 (Thread 0x7f6b8b860700 (LWP 11346)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00000000005bb6f9 in mono_os_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0x97b100 <finalizer_sem>) at ../../mono/utils/mono-os-semaphore.h:166
#2  mono_coop_sem_wait (sem=<optimized out>, flags=<optimized out>) at ../../mono/utils/mono-coop-semaphore.h:40
#3  finalizer_thread (unused=unused@entry=0x0) at gc.c:761
#4  0x000000000059c4ac in start_wrapper_internal (data=<optimized out>) at threads.c:740
#5  start_wrapper (data=<optimized out>) at threads.c:788
#6  0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#7  0x00007f6b8e531184 in start_thread (arg=0x7f6b8b860700) at pthread_create.c:312
#8  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 20 (Thread 0x7f6b8b65f700 (LWP 11347)):
#0  0x00007f6b8e5387eb in __libc_recv (fd=fd@entry=3, buf=buf@entry=0x7f6b8b65ed30, n=n@entry=11, flags=-1, flags@entry=0) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:33
#1  0x00000000004d8718 in recv (__flags=0, __n=11, __buf=0x7f6b8b65ed30, __fd=3) at /usr/include/x86_64-linux-gnu/bits/socket2.h:45
#2  socket_transport_recv (buf=0x7f6b8b65ed30, len=11) at debugger-agent.c:1130
#3  0x00000000004dba67 in transport_recv (len=11, buf=0x7f6b8b65ed30) at debugger-agent.c:1536
#4  debugger_thread (arg=<optimized out>) at debugger-agent.c:9847
#5  0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#6  0x00007f6b8e531184 in start_thread (arg=0x7f6b8b65f700) at pthread_create.c:312
#7  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 19 (Thread 0x7f6b7aae0700 (LWP 11355)):
#0  0x00007f6b8e03afdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f6b8a742fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6b8a7430ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6b8a743129 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f6b8a767f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f6b8e531184 in start_thread (arg=0x7f6b7aae0700) at pthread_create.c:312
#6  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 18 (Thread 0x7f6b71851700 (LWP 11359)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00000000005a0b4f in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x3663808, cond=0x36637d8) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, mutex=0x3663808, cond=0x36637d8) at ../../mono/utils/mono-coop-mutex.h:107
#3  worker_park () at threadpool-ms.c:532
#4  worker_thread (data=data@entry=0x0) at threadpool-ms.c:624
#5  0x000000000059c4ac in start_wrapper_internal (data=<optimized out>) at threads.c:740
#6  start_wrapper (data=<optimized out>) at threads.c:788
#7  0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#8  0x00007f6b8e531184 in start_thread (arg=0x7f6b71851700) at pthread_create.c:312
#9  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 17 (Thread 0x7f6b7164c700 (LWP 11360)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00000000005a0b4f in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x3663808, cond=0x36637d8) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, mutex=0x3663808, cond=0x36637d8) at ../../mono/utils/mono-coop-mutex.h:107
#3  worker_park () at threadpool-ms.c:532
#4  worker_thread (data=data@entry=0x0) at threadpool-ms.c:624
#5  0x000000000059c4ac in start_wrapper_internal (data=<optimized out>) at threads.c:740
#6  start_wrapper (data=<optimized out>) at threads.c:788
#7  0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#8  0x00007f6b8e531184 in start_thread (arg=0x7f6b7164c700) at pthread_create.c:312
#9  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 16 (Thread 0x7f6b71447700 (LWP 11361)):
#0  0x00007f6b8e5383ad in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x000000000062bc20 in read (__nbytes=1024, __buf=0x7f6b8d4a74b8, __fd=26) at /usr/include/x86_64-linux-gnu/bits/unistd.h:45
#2  pipe_read (handle=0x1a, buffer=0x7f6b8d4a74b8, numbytes=1024, bytesread=0x7f6b71446114, overlapped=<optimized out>) at io.c:1225
#3  0x00000000005f29a7 in ves_icall_System_IO_MonoIO_Read (handle=0x1a, dest=<optimized out>, dest_offset=<optimized out>, count=1024, error=0x7f6b71446270) at file-io.c:869
#4  0x00000000401e6311 in ?? ()
#5  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7f6b70abf700 (LWP 11374)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b70abe5fc, ms=1000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=1000, alerted=alerted@entry=0x7f6b70abe5fc) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=1000) at threads.c:1227
#6  0x0000000040827678 in ?? ()
#7  0x00007f6b8d4fc480 in ?? ()
#8  0x00007f6b8d4fc480 in ?? ()
#9  0x00007f6b8d4fc480 in ?? ()
#10 0x00007f6b8d4fc550 in ?? ()
#11 0x00000000000003e8 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f6b5c0df9e0 in ?? ()
#15 0x00007f6b8d4e9700 in ?? ()
#16 0x00007f6b70abe870 in ?? ()
#17 0x00007f6b70abe620 in ?? ()
#18 0x0000000040827588 in ?? ()
#19 0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f6b56de2700 (LWP 11395)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00000000005a0b4f in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x3663808, cond=0x36637d8) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, mutex=0x3663808, cond=0x36637d8) at ../../mono/utils/mono-coop-mutex.h:107
#3  worker_park () at threadpool-ms.c:532
#4  worker_thread (data=data@entry=0x0) at threadpool-ms.c:624
#5  0x000000000059c4ac in start_wrapper_internal (data=<optimized out>) at threads.c:740
#6  start_wrapper (data=<optimized out>) at threads.c:788
#7  0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#8  0x00007f6b8e531184 in start_thread (arg=0x7f6b56de2700) at pthread_create.c:312
#9  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 13 (Thread 0x7f6b7a009700 (LWP 11397)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000629938 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x1526590, cond=0x15265b8) at ../../mono/utils/mono-os-mutex.h:136
#2  _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x48e, timeout=<optimized out>, alertable=alertable@entry=1, poll=poll@entry=0, alerted=alerted@entry=0x7f6b7a0082bc) at handles.c:1555
#3  0x000000000063f64d in wapi_WaitForSingleObjectEx (handle=0x48e, timeout=timeout@entry=18228, alertable=alertable@entry=1) at wait.c:189
#4  0x000000000059c1e7 in mono_wait_uninterrupted (numhandles=numhandles@entry=1, handles=handles@entry=0x7f6b7a008378, waitall=waitall@entry=0, ms=ms@entry=18228, error=error@entry=0x7f6b7a008380, thread=<optimized out>) at threads.c:1595
#5  0x000000000059d4a6 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (handle=0x48e, ms=18228) at threads.c:1731
#6  0x000000004052ea31 in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f6b543f3700 (LWP 11420)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b543f261c, ms=57000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=57000, alerted=alerted@entry=0x7f6b543f261c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=57000) at threads.c:1227
#6  0x0000000040827678 in ?? ()
#7  0x00007f6b8d7eb910 in ?? ()
#8  0x00007f6b8d7eb910 in ?? ()
#9  0x00007f6b8d7eb910 in ?? ()
#10 0x00007f6b8d7d9330 in ?? ()
#11 0x000000000000dea8 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f6b4c0018c0 in ?? ()
#15 0x6300656b6f766e49 in ?? ()
#16 0x00007f6b543f2870 in ?? ()
#17 0x00007f6b543f2640 in ?? ()
#18 0x0000000040827588 in ?? ()
#19 0x00007f6b8d7d9330 in ?? ()
#20 0x0000000000979e28 in mini_arch_mutex ()
#21 0x0000000000979e48 in ?? ()
#22 0x0000000040827490 in ?? ()
#23 0x00007f6b543f2870 in ?? ()
#24 0x000000004092099c in ?? ()
#25 0x00007f6b8d7eb9e0 in ?? ()
#26 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f6b55dfe700 (LWP 11421)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b55dfd64c, ms=120000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=120000, alerted=alerted@entry=0x7f6b55dfd64c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=120000) at threads.c:1227
#6  0x0000000040827678 in ?? ()
#7  0x00007f6b8d7ebac0 in ?? ()
#8  0x00007f6b8d7ebac0 in ?? ()
#9  0x00007f6b8d7ebac0 in ?? ()
#10 0x00007f6b8d7ebb90 in ?? ()
#11 0x000000000001d4c0 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f6b400093d0 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f6b71de9700 (LWP 11424)):
#0  0x00007f6b8e03afdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x000000000064c347 in mono_poll (ufds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at mono-poll.c:26
#2  0x00000000005a29bf in poll_event_wait (callback=0x5a3430 <wait_callback>, user_data=0x7f6b340021f0) at threadpool-ms-io-poll.c:147
#3  0x00000000005a39d3 in selector_thread (data=<optimized out>) at threadpool-ms-io.c:424
#4  selector_thread (data=data@entry=0x0) at threadpool-ms-io.c:309
#5  0x000000000059c4ac in start_wrapper_internal (data=<optimized out>) at threads.c:740
#6  start_wrapper (data=<optimized out>) at threads.c:788
#7  0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#8  0x00007f6b8e531184 in start_thread (arg=0x7f6b71de9700) at pthread_create.c:312
#9  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 9 (Thread 0x7f6b538fd700 (LWP 11426)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00000000006350a8 in mono_os_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0x7f6b2c018608) at ../../mono/utils/mono-os-semaphore.h:166
#2  process_wait (handle=0x4ad, timeout=4294967295, alertable=1) at processes.c:2796
#3  0x000000000063f875 in wapi_WaitForSingleObjectEx (handle=0x4ad, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:125
#4  0x000000000059c1e7 in mono_wait_uninterrupted (numhandles=numhandles@entry=1, handles=handles@entry=0x7f6b538fc1d8, waitall=waitall@entry=0, ms=ms@entry=-1, error=error@entry=0x7f6b538fc1e0, thread=<optimized out>) at threads.c:1595
#5  0x000000000059d4a6 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (handle=0x4ad, ms=-1) at threads.c:1731
#6  0x000000004052ea31 in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f6b534fb700 (LWP 11433)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b534fa27c, ms=200) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=200, alerted=alerted@entry=0x7f6b534fa27c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=200) at threads.c:1227
#6  0x0000000040827678 in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f6b52cff700 (LWP 11439)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b52cfe64c, ms=6000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=6000, alerted=alerted@entry=0x7f6b52cfe64c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=6000) at threads.c:1227
#6  0x0000000040827678 in ?? ()
#7  0x00007f6b8d566380 in ?? ()
#8  0x00007f6b8d566380 in ?? ()
#9  0x00007f6b8d566380 in ?? ()
#10 0x00007f6b8d566450 in ?? ()
#11 0x0000000000001770 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f6b20001950 in ?? ()
#15 0x0000000000979e48 in ?? ()
#16 0x00007f6b52cfe870 in ?? ()
#17 0x00007f6b52cfe670 in ?? ()
#18 0x0000000040827588 in ?? ()
#19 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f6b55fff700 (LWP 11458)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b55ffe47c, ms=30000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=30000, alerted=alerted@entry=0x7f6b55ffe47c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=30000) at threads.c:1227
#6  0x0000000040827678 in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f6b71896700 (LWP 11493)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b71895d78, ms=500) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=500, alerted=alerted@entry=0x7f6b71895d78) at mono-threads.c:1245
#5  0x00000000005a0f18 in monitor_thread () at threadpool-ms.c:905
#6  0x000000000059c4ac in start_wrapper_internal (data=<optimized out>) at threads.c:740
#7  start_wrapper (data=<optimized out>) at threads.c:788
#8  0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#9  0x00007f6b8e531184 in start_thread (arg=0x7f6b71896700) at pthread_create.c:312
#10 0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f6b56fe3700 (LWP 11507)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00000000005a0b4f in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x3663808, cond=0x36637d8) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, mutex=0x3663808, cond=0x36637d8) at ../../mono/utils/mono-coop-mutex.h:107
#3  worker_park () at threadpool-ms.c:532
#4  worker_thread (data=data@entry=0x0) at threadpool-ms.c:624
#5  0x000000000059c4ac in start_wrapper_internal (data=<optimized out>) at threads.c:740
#6  start_wrapper (data=<optimized out>) at threads.c:788
#7  0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#8  0x00007f6b8e531184 in start_thread (arg=0x7f6b56fe3700) at pthread_create.c:312
#9  0x00007f6b8e04837d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f6b536fc700 (LWP 11547)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b536fb53c, ms=2000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=2000, alerted=alerted@entry=0x7f6b536fb53c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=2000) at threads.c:1227
#6  0x0000000040827678 in ?? ()
#7  0x00007f6b8d50ed38 in ?? ()
#8  0x00007f6b8d50ed38 in ?? ()
#9  0x00007f6b8d50ed38 in ?? ()
#10 0x00007f6b8d50ee08 in ?? ()
#11 0x00000000000007d0 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f6b300213a0 in ?? ()
#15 0x00007f6b536fb550 in ?? ()
#16 0x00007f6b536fb720 in ?? ()
#17 0x00007f6b536fb560 in ?? ()
#18 0x0000000040827588 in ?? ()
#19 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6b532fa700 (LWP 11553)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651ac7 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98b2a0 <sleep_mutex>, cond=0x98b2e0 <sleep_cond>) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, cond=<optimized out>, mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:107
#3  sleep_interruptable (alerted=0x7f6b532f949c, ms=100) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=100, alerted=alerted@entry=0x7f6b532f949c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=100) at threads.c:1227
#6  0x0000000040827678 in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6b8f04a780 (LWP 11343)):
#0  0x00007f6b8e538ed9 in __libc_waitpid (pid=pid@entry=11554, stat_loc=stat_loc@entry=0x7f6b8f06511c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1  0x00000000004acd59 in mono_handle_native_sigsegv (signal=signal@entry=11, ctx=ctx@entry=0x7f6b8f065ac0, info=info@entry=0x7f6b8f065bf0) at mini-exceptions.c:2427
#2  0x00000000005040fe in mono_arch_handle_altstack_exception (sigctx=sigctx@entry=0x7f6b8f065ac0, siginfo=siginfo@entry=0x7f6b8f065bf0, fault_addr=<optimized out>, stack_ovf=stack_ovf@entry=0) at exceptions-amd64.c:795
#3  0x00000000004275d7 in mono_sigsegv_signal_handler (_dummy=11, _info=0x7f6b8f065bf0, context=0x7f6b8f065ac0) at mini-runtime.c:2865
#4  <signal handler called>
#5  0x00007f6b731a6635 in ?? () from /usr/lib/nvidia-367/libnvidia-glcore.so.367.57
#6  0x00007f6b7326aed3 in ?? () from /usr/lib/nvidia-367/libnvidia-glcore.so.367.57
#7  0x00007f6b7326f624 in ?? () from /usr/lib/nvidia-367/libnvidia-glcore.so.367.57
#8  0x00007f6b72e565a9 in ?? () from /usr/lib/nvidia-367/libnvidia-glcore.so.367.57
#9  0x000000004044d424 in ?? ()
#10 0x000000000000177c in ?? ()
#11 0x00007ffece7b6ed0 in ?? ()
#12 0x0000000000000000 in ?? ()

=================================================================
Got a SIGSEGV 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 Rodrigo Kumpera 2017-02-13 21:20:50 UTC
This is a crash in libnvidia-glcore.so and not in mono.

Mono has a crash handler that reports such issues, that's all.
Comment 2 Roman 2017-02-14 08:09:21 UTC
can mono use try-catch block in order to work without crashing?
Comment 3 Zoltan Varga 2017-02-14 15:31:45 UTC
This is a crash in native code, it cannot be caught by c# code.
Comment 4 Rodrigo Kumpera 2017-02-14 21:40:13 UTC
Native crashes are, by their own nature, unrecoverable.

I wish there was more we could do here, but the course of action here is report your crasher to the nvidia driver maintainers.