Bug 46791 - mono crashes
Summary: mono crashes
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger (show other bugs)
Version: 4.6.0 (C8)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2016-11-11 13:05 UTC by Roman
Modified: 2017-04-27 16:27 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Roman 2016-11-11 13:05:15 UTC
I have monogame project (monogame version is 2.5)

Project start in release a good but in debug it crashes.

PS: C# is not worthy of the title "Java killer" because C# is not crossplatformed

Stacktrace:


Native stacktrace:

	0x1	- running (BAD, unless it's the gc thread)
	0x2	- detached (GOOD, unless the thread is running managed code)
	0x?03	- async suspended (GOOD)
	0x?04	- self suspended (GOOD)
	0x?05	- async suspend requested (BAD)
	0x?06	- self suspend requested (BAD)
	0x*07	- blocking (GOOD)
	0x?08	- blocking with pending suspend (GOOD)
--thread 0x7f350c0008e0 id 0x7f3517b0b700 [(nil)] state 1  
--thread 0x7f35080008e0 id 0x7f3517dfe700 [(nil)] state 1  
--thread 0x7f351c0008e0 id 0x7f3530628700 [(nil)] state 1  GC INITIATOR
--thread 0x7f352800bc70 id 0x7f3530a6b700 [(nil)] state 1  
--thread 0x7f352c0008e0 id 0x7f353976f700 [(nil)] state 1  
--thread 0x7f353c0008e0 id 0x7f354ae5f700 [(nil)] state 1  
--thread 0x7f35440008e0 id 0x7f354b060700 [(nil)] state 1  
--thread 0x136c2c0 id 0x7f354e68b780 [(nil)] state 105  
WAITING for 1 threads, got 0 suspended
suspend_thread suspend took 200 ms, which is more than the allowed 200 ms
	/usr/bin/mono() [0x4accca]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7f354db7a330]
	/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f354d5c5c37]
	/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f354d5c9028]
	/usr/bin/mono() [0x65ae19]
	/usr/bin/mono() [0x65b027]
	/usr/bin/mono() [0x65b0d2]
	/usr/bin/mono() [0x6515dc]
	/usr/bin/mono() [0x65268a]
	/usr/bin/mono() [0x4c86ce]
	/usr/bin/mono(mono_g_hash_table_foreach+0x5c) [0x5bf14c]
	/usr/bin/mono() [0x4cbab8]
	/usr/bin/mono() [0x4d7e34]
	/usr/bin/mono() [0x4d8236]
	/usr/bin/mono() [0x590573]
	/usr/bin/mono() [0x59be05]
	/usr/bin/mono() [0x59c694]
	/usr/bin/mono() [0x653b4c]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x8184) [0x7f354db72184]
	/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f354d68937d]

Debug info from gdb:

Mono support loaded.
Mono support loaded.
[New LWP 4335]
[New LWP 4334]
[New LWP 4332]
[New LWP 4328]
[New LWP 4323]
[New LWP 4322]
[New LWP 4316]
[New LWP 4315]
[New LWP 4313]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f354d5c5fb2 in do_sigsuspend (set=0x98c340 <suspend_signal_mask>) at ../sysdeps/unix/sysv/linux/sigsuspend.c:31
31	../sysdeps/unix/sysv/linux/sigsuspend.c: Немає такого файла або каталогу.
  Id   Target Id         Frame 
  10   Thread 0x7f354cbff700 (LWP 4313) "SGen worker" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  9    Thread 0x7f354b060700 (LWP 4315) "Finalizer" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  8    Thread 0x7f354ae5f700 (LWP 4316) "Debugger agent" 0x00007f354db797eb in __libc_recv (fd=fd@entry=3, buf=buf@entry=0x7f354ae5ed30, n=n@entry=11, flags=-1, flags@entry=0) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:33
  7    Thread 0x7f353a2c6700 (LWP 4322) "gmain" 0x00007f354d67bfdd in poll () at ../sysdeps/unix/syscall-template.S:81
  6    Thread 0x7f353976f700 (LWP 4323) "Main" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  5    Thread 0x7f3530a6b700 (LWP 4328) "Main" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  4    Thread 0x7f3530628700 (LWP 4332) "Threadpool work" 0x00007f354db79ed9 in __libc_waitpid (pid=pid@entry=4356, stat_loc=stat_loc@entry=0x7f35306265cc, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
  3    Thread 0x7f3517dfe700 (LWP 4334) "Threadpool work" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  2    Thread 0x7f3517b0b700 (LWP 4335) "Threadpool work" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
* 1    Thread 0x7f354e68b780 (LWP 4312) "Main" 0x00007f354d5c5fb2 in do_sigsuspend (set=0x98c340 <suspend_signal_mask>) at ../sysdeps/unix/sysv/linux/sigsuspend.c:31

Thread 10 (Thread 0x7f354cbff700 (LWP 4313)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000623a27 in mono_os_cond_wait (cond=0x98b420 <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  0x00007f354db72184 in start_thread (arg=0x7f354cbff700) at pthread_create.c:312
#4  0x00007f354d68937d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 9 (Thread 0x7f354b060700 (LWP 4315)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00000000005bb8f9 in mono_os_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0x97c100 <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  0x000000000059c68c in start_wrapper_internal (data=<optimized out>) at threads.c:740
#5  start_wrapper (data=<optimized out>) at threads.c:788
#6  0x0000000000653b4c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#7  0x00007f354db72184 in start_thread (arg=0x7f354b060700) at pthread_create.c:312
#8  0x00007f354d68937d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7f354ae5f700 (LWP 4316)):
#0  0x00007f354db797eb in __libc_recv (fd=fd@entry=3, buf=buf@entry=0x7f354ae5ed30, 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=0x7f354ae5ed30, __fd=3) at /usr/include/x86_64-linux-gnu/bits/socket2.h:45
#2  socket_transport_recv (buf=0x7f354ae5ed30, len=11) at debugger-agent.c:1130
#3  0x00000000004dba67 in transport_recv (len=11, buf=0x7f354ae5ed30) at debugger-agent.c:1536
#4  debugger_thread (arg=<optimized out>) at debugger-agent.c:9847
#5  0x0000000000653b4c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#6  0x00007f354db72184 in start_thread (arg=0x7f354ae5f700) at pthread_create.c:312
#7  0x00007f354d68937d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7f353a2c6700 (LWP 4322)):
#0  0x00007f354d67bfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f3549d97fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3549d980ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3549d98129 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3549dbcf05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f354db72184 in start_thread (arg=0x7f353a2c6700) at pthread_create.c:312
#6  0x00007f354d68937d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7f353976f700 (LWP 4323)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f354db74649 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f354db74470 in __GI___pthread_mutex_lock (mutex=0x97a240 <suspend_mutex>) at ../nptl/pthread_mutex_lock.c:79
#3  0x00000000004d296f in mono_os_mutex_lock (mutex=0x97a240 <suspend_mutex>) at ../../mono/utils/mono-os-mutex.h:72
#4  mono_coop_mutex_lock (mutex=0x97a240 <suspend_mutex>) at ../../mono/utils/mono-coop-mutex.h:55
#5  suspend_current () at debugger-agent.c:2913
#6  suspend_current () at debugger-agent.c:2895
#7  0x00000000004d98df in process_suspend (ctx=0x7f352c002018, tls=<optimized out>) at debugger-agent.c:2742
#8  process_single_step_inner (tls=tls@entry=0x7f352c001980, from_signal=from_signal@entry=0) at debugger-agent.c:4884
#9  0x00000000004dfa33 in debugger_agent_single_step_from_context (ctx=0x7f353976c5d0) at debugger-agent.c:5012
#10 0x000000004063a23b in ?? ()
#11 0x00007f353976c728 in ?? ()
#12 0x00007f353976c790 in ?? ()
#13 0xfffffffffffffffc in ?? ()
#14 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f3530a6b700 (LWP 4328)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000000000651fd5 in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x98c2a0 <sleep_mutex>, cond=0x98c2e0 <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=0x7f3530a6ad78, ms=500) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=500, alerted=alerted@entry=0x7f3530a6ad78) at mono-threads.c:1245
#5  0x00000000005a10f8 in monitor_thread () at threadpool-ms.c:905
#6  0x000000000059c68c in start_wrapper_internal (data=<optimized out>) at threads.c:740
#7  start_wrapper (data=<optimized out>) at threads.c:788
#8  0x0000000000653b4c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#9  0x00007f354db72184 in start_thread (arg=0x7f3530a6b700) at pthread_create.c:312
#10 0x00007f354d68937d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f3530628700 (LWP 4332)):
#0  0x00007f354db79ed9 in __libc_waitpid (pid=pid@entry=4356, stat_loc=stat_loc@entry=0x7f35306265cc, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1  0x00000000004acd59 in mono_handle_native_sigsegv (signal=<optimized out>, ctx=<optimized out>, info=<optimized out>) at mini-exceptions.c:2427
#2  <signal handler called>
#3  0x00007f354d5c5c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#4  0x00007f354d5c9028 in __GI_abort () at abort.c:89
#5  0x000000000065ae19 in monoeg_log_default_handler (log_domain=<optimized out>, log_level=<optimized out>, message=<optimized out>, unused_data=<optimized out>) at goutput.c:233
#6  monoeg_log_default_handler (log_domain=<optimized out>, log_level=G_LOG_LEVEL_ERROR, message=<optimized out>, unused_data=<optimized out>) at goutput.c:221
#7  0x000000000065b027 in monoeg_g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7f3530627528) at goutput.c:113
#8  0x000000000065b0d2 in monoeg_g_log (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x716490 "suspend_thread suspend took %d ms, which is more than the allowed %d ms") at goutput.c:123
#9  0x00000000006515dc in mono_threads_wait_pending_operations () at mono-threads.c:245
#10 0x000000000065268a in suspend_sync (interrupt_kernel=0, tid=139866925479808) at mono-threads.c:918
#11 suspend_sync_nolock (interrupt_kernel=0, id=139866925479808) at mono-threads.c:935
#12 mono_thread_info_safe_suspend_and_run (id=139866925479808, interrupt_kernel=interrupt_kernel@entry=0, callback=callback@entry=0x4ccd00 <debugger_interrupt_critical>, user_data=user_data@entry=0x7f3530627ab0) at mono-threads.c:978
#13 0x00000000004c86ce in notify_thread (key=0x7f354e560130, value=0x13eace0, user_data=<optimized out>) at debugger-agent.c:2688
#14 0x00000000005bf14c in mono_g_hash_table_foreach (hash=0x136ce30, func=func@entry=0x4c8660 <notify_thread>, user_data=user_data@entry=0x0) at mono-hash.c:286
#15 0x00000000004cbab8 in suspend_vm () at debugger-agent.c:2765
#16 0x00000000004d7e34 in process_event (event=event@entry=EVENT_KIND_THREAD_DEATH, arg=arg@entry=0x7f354e560a30, il_offset=il_offset@entry=0, ctx=ctx@entry=0x0, events=events@entry=0x7f351c0021b0, suspend_policy=2) at debugger-agent.c:3733
#17 0x00000000004d8236 in process_profiler_event (event=EVENT_KIND_THREAD_DEATH, arg=0x7f354e560a30) at debugger-agent.c:3788
#18 0x0000000000590573 in mono_profiler_thread_end (tid=139866421757696) at profiler.c:619
#19 0x000000000059be05 in thread_cleanup (thread=thread@entry=0x7f354e560a30) at threads.c:459
#20 0x000000000059c694 in start_wrapper_internal (data=<optimized out>) at threads.c:764
#21 start_wrapper (data=<optimized out>) at threads.c:788
#22 0x0000000000653b4c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#23 0x00007f354db72184 in start_thread (arg=0x7f3530628700) at pthread_create.c:312
#24 0x00007f354d68937d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f3517dfe700 (LWP 4334)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00000000005a0d2f in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x354fe58, cond=0x354fe28) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, mutex=0x354fe58, cond=0x354fe28) 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  0x000000000059c68c in start_wrapper_internal (data=<optimized out>) at threads.c:740
#6  start_wrapper (data=<optimized out>) at threads.c:788
#7  0x0000000000653b4c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#8  0x00007f354db72184 in start_thread (arg=0x7f3517dfe700) at pthread_create.c:312
#9  0x00007f354d68937d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f3517b0b700 (LWP 4335)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00000000005a0d2f in mono_os_cond_timedwait (timeout_ms=<optimized out>, mutex=0x354fe58, cond=0x354fe28) at ../../mono/utils/mono-os-mutex.h:136
#2  mono_coop_cond_timedwait (timeout_ms=<optimized out>, mutex=0x354fe58, cond=0x354fe28) 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  0x000000000059c68c in start_wrapper_internal (data=<optimized out>) at threads.c:740
#6  start_wrapper (data=<optimized out>) at threads.c:788
#7  0x0000000000653b4c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#8  0x00007f354db72184 in start_thread (arg=0x7f3517b0b700) at pthread_create.c:312
#9  0x00007f354d68937d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f354e68b780 (LWP 4312)):
#0  0x00007f354d5c5fb2 in do_sigsuspend (set=0x98c340 <suspend_signal_mask>) at ../sysdeps/unix/sysv/linux/sigsuspend.c:31
#1  __GI___sigsuspend (set=set@entry=0x98c340 <suspend_signal_mask>) at ../sysdeps/unix/sysv/linux/sigsuspend.c:45
#2  0x000000000065403e in suspend_signal_handler (_dummy=<optimized out>, info=<optimized out>, context=0x7fff7ac13a80) at mono-threads-posix-signals.c:208
#3  <signal handler called>
#4  0x00007f354d67a045 in __GI___xstat (vers=vers@entry=1, name=name@entry=0x447fb30 "/media/destructor/Documents/Projects/Terminal3in1/GUI/Standard/TerminalUI/bin/Debug/Content/Items1/big_ten_one.xnb", buf=buf@entry=0x7fff7ac14060) at ../sysdeps/unix/sysv/linux/wordsize-64/xstat.c:35
#5  0x0000000000630d43 in stat (__statbuf=0x7fff7ac14060, __statbuf@entry=0x7fff7ac13ee0, __path=__path@entry=0x447fb30 "/media/destructor/Documents/Projects/Terminal3in1/GUI/Standard/TerminalUI/bin/Debug/Content/Items1/big_ten_one.xnb") at /usr/include/x86_64-linux-gnu/sys/stat.h:457
#6  _wapi_stat (path=path@entry=0x447fb30 "/media/destructor/Documents/Projects/Terminal3in1/GUI/Standard/TerminalUI/bin/Debug/Content/Items1/big_ten_one.xnb", buf=buf@entry=0x7fff7ac14060) at io-portability.c:201
#7  0x000000000062e5b1 in wapi_FindNextFile (handle=handle@entry=0x46c, find_data=find_data@entry=0x7fff7ac141f0) at io.c:2822
#8  0x00000000005f207d in get_filesystem_entries (error=0x7fff7ac14538, mask=16, attrs=0, path_with_pattern=<optimized out>, path=<optimized out>) at file-io.c:373
#9  ves_icall_System_IO_MonoIO_GetFileSystemEntries (path=<optimized out>, path_with_pattern=<optimized out>, attrs=0, mask=<optimized out>, ioerror=0x7fff7ac14538) at file-io.c:408
#10 0x0000000040d835d1 in ?? ()
#11 0x00007f354cd29408 in ?? ()
#12 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.
=================================================================

Note You need to log in before you can comment on or make changes to this bug.