Bug 51654 - STATE CUE CARD: (? means a positive number, usually 1 or 2, * means any number)
Summary: STATE CUE CARD: (? means a positive number, usually 1 or 2, * means any number)
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: 4.6.0 (C8)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Aleksey Kliger
URL:
: 52421 ()
Depends on:
Blocks:
 
Reported: 2017-01-20 08:12 UTC by Roman
Modified: 2017-09-22 05:43 UTC (History)
5 users (show)

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


Attachments
Screenshot of monodevelop (563.02 KB, image/jpeg)
2017-01-20 08:12 UTC, Roman
Details


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 NOT_REPRODUCIBLE

Description Roman 2017-01-20 08:12:21 UTC
Created attachment 19411 [details]
Screenshot of monodevelop

It is unable to debug projects, it is impossible comfortable work with your bug

Very often I notice such error. I'm sure that this bug was noticed by other developers. I have being noticed it since 2014

My project use monogame and I don't assume that this bug is related with it.

Version of mono:
Mono JIT compiler version 4.6.2 (Stable 4.6.2.16/ac9e222 Tue Jan  3 11:48:26 UTC 2017)
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:          supported, not enabled.
        GC:            sgen

Bug:

Thread started: <Thread Pool> #229
STATE CUE CARD: (? means a positive number, usually 1 or 2, * means any number)
	0x0	- starting (GOOD, unless the thread is running managed code)
	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 0x7f82180011c0 id 0x7f823aff7700 [(nil)] state 105  
--thread 0x7f8260011af0 id 0x7f82782c9700 [(nil)] state 1  
--thread 0x7f823c0008e0 id 0x7f82786cb700 [(nil)] state 1  
--thread 0x7f82480008e0 id 0x7f82788cc700 [(nil)] state 1  
--thread 0x7f824c0008e0 id 0x7f827c2fa700 [(nil)] state 1  
--thread 0x7f82580008e0 id 0x7f827c4fb700 [(nil)] state 1  
--thread 0x7f82540008e0 id 0x7f827c6fc700 [(nil)] state 1  
--thread 0x7f82680008c0 id 0x7f827cafe700 [(nil)] state 1  
--thread 0x7f82700008e0 id 0x7f827ebfe700 [(nil)] state 1  
Stacktrace:


Native stacktrace:

--thread 0x7f82900008e0 id 0x7f827edff700 [(nil)] state 1  GC INITIATOR
--thread 0x7f82740008e0 id 0x7f82982f5700 [(nil)] state 1  
--thread 0x7f826c004dc0 id 0x7f8298d5b700 [(nil)] state 1  
--thread 0x7f8284020c50 id 0x7f8299a6b700 [(nil)] state 1  
--thread 0x7f82800008e0 id 0x7f829a2c6700 [(nil)] state 1  
--thread 0x7f828c0d3940 id 0x7f82a0337700 [(nil)] state 1  
--thread 0x7f82880008e0 id 0x7f82a053c700 [(nil)] state 1  
--thread 0x7f825c0008e0 id 0x7f82a0b50700 [(nil)] state 1  
--thread 0x7f8294144890 id 0x7f82a30b1700 [(nil)] state 1  
--thread 0x7f82a80008e0 id 0x7f82b465f700 [(nil)] state 1  
--thread 0x7f82b00008e0 id 0x7f82b4860700 [(nil)] state 1  
--thread 0x27902c0 id 0x7f82b7f8f780 [(nil)] state 1  
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) [0x7f82b747f330]
	/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f82b6ecac37]
	/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f82b6ece028]
	/usr/bin/mono() [0x65a909]
	/usr/bin/mono() [0x65ab17]
	/usr/bin/mono() [0x65abc2]
	/usr/bin/mono() [0x6510ec]
	/usr/bin/mono() [0x65217a]
	/usr/bin/mono() [0x4c86ce]
	/usr/bin/mono(mono_g_hash_table_foreach+0x5c) [0x5bef4c]
	/usr/bin/mono() [0x4cbab8]
	/usr/bin/mono() [0x4d7e34]
	/usr/bin/mono() [0x4d8236]
	/usr/bin/mono() [0x4d905e]
	/usr/bin/mono() [0x590343]
	/usr/bin/mono() [0x59c466]
	/usr/bin/mono() [0x65363c]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x8184) [0x7f82b7477184]
	/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f82b6f8e37d]

Debug info from gdb:

Mono support loaded.
Mono support loaded.
[New LWP 8949]
[New LWP 8946]
[New LWP 8944]
[New LWP 8943]
[New LWP 8312]
[New LWP 8275]
[New LWP 8268]
[New LWP 8266]
[New LWP 8264]
[New LWP 8262]
[New LWP 8261]
[New LWP 8260]
[New LWP 8243]
[New LWP 8240]
[New LWP 8238]
[New LWP 8237]
[New LWP 8221]
[New LWP 8202]
[New LWP 8198]
[New LWP 8192]
[New LWP 8191]
[New LWP 8189]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
135	../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Немає такого файла або каталогу.
  Id   Target Id         Frame 
  23   Thread 0x7f82b63ff700 (LWP 8189) "SGen worker" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  22   Thread 0x7f82b4860700 (LWP 8191) "Finalizer" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  21   Thread 0x7f82b465f700 (LWP 8192) "Debugger agent" 0x00007f82b747e7eb in __libc_recv (fd=fd@entry=3, buf=buf@entry=0x7f82b465ed30, n=n@entry=11, flags=-1, flags@entry=0) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:33
  20   Thread 0x7f82a3c08700 (LWP 8198) "gmain" 0x00007f82b6f80fdd in poll () at ../sysdeps/unix/syscall-template.S:81
  19   Thread 0x7f82a053c700 (LWP 8202) "Threadpool work" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  18   Thread 0x7f829a2c6700 (LWP 8221) "Main" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  17   Thread 0x7f82a30b1700 (LWP 8237) "Threadpool work" 0x00007f82b747e3ad in read () at ../sysdeps/unix/syscall-template.S:81
  16   Thread 0x7f82982f5700 (LWP 8238) "Threadpool work" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  15   Thread 0x7f827ebfe700 (LWP 8240) "Threadpool work" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  14   Thread 0x7f82a0337700 (LWP 8243) "Timer-Scheduler" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  13   Thread 0x7f8299a6b700 (LWP 8260) "StartRun" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  12   Thread 0x7f827cafe700 (LWP 8261) "StartRun" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  11   Thread 0x7f82a0b50700 (LWP 8262) "Threadpool work" 0x00007f82b6f80fdd in poll () at ../sysdeps/unix/syscall-template.S:81
  10   Thread 0x7f827c6fc700 (LWP 8264) "GetResourceLinu" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  9    Thread 0x7f827c4fb700 (LWP 8266) "MQSendEvent" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  8    Thread 0x7f827c2fa700 (LWP 8268) "BillListener" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  7    Thread 0x7f82786cb700 (LWP 8275) "StartRun" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  6    Thread 0x7f82788cc700 (LWP 8312) "Main" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  5    Thread 0x7f82782c9700 (LWP 8943) "RunValid" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  4    Thread 0x7f823aff7700 (LWP 8944) "MQSendEvent" 0x00007f82b6ecafb2 in do_sigsuspend (set=0x98b340 <suspend_signal_mask>) at ../sysdeps/unix/sysv/linux/sigsuspend.c:31
  3    Thread 0x7f8298d5b700 (LWP 8946) "Timer-Scheduler" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  2    Thread 0x7f827edff700 (LWP 8949) "BillListener" 0x00007f82b747eed9 in __libc_waitpid (pid=pid@entry=8951, stat_loc=stat_loc@entry=0x7f827edfd5cc, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
* 1    Thread 0x7f82b7f8f780 (LWP 8188) "Main" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135

Thread 23 (Thread 0x7f82b63ff700 (LWP 8189)):
#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  0x00007f82b7477184 in start_thread (arg=0x7f82b63ff700) at pthread_create.c:312
#4  0x00007f82b6f8e37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 22 (Thread 0x7f82b4860700 (LWP 8191)):
#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  0x00007f82b7477184 in start_thread (arg=0x7f82b4860700) at pthread_create.c:312
#8  0x00007f82b6f8e37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 21 (Thread 0x7f82b465f700 (LWP 8192)):
#0  0x00007f82b747e7eb in __libc_recv (fd=fd@entry=3, buf=buf@entry=0x7f82b465ed30, 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=0x7f82b465ed30, __fd=3) at /usr/include/x86_64-linux-gnu/bits/socket2.h:45
#2  socket_transport_recv (buf=0x7f82b465ed30, len=11) at debugger-agent.c:1130
#3  0x00000000004dba67 in transport_recv (len=11, buf=0x7f82b465ed30) 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  0x00007f82b7477184 in start_thread (arg=0x7f82b465f700) at pthread_create.c:312
#7  0x00007f82b6f8e37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 20 (Thread 0x7f82a3c08700 (LWP 8198)):
#0  0x00007f82b6f80fdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f82af688fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f82af6890ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f82af689129 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f82af6adf05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f82b7477184 in start_thread (arg=0x7f82a3c08700) at pthread_create.c:312
#6  0x00007f82b6f8e37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 19 (Thread 0x7f82a053c700 (LWP 8202)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f82b7479664 in _L_lock_952 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f82b74794c6 in __GI___pthread_mutex_lock (mutex=0x97a5e0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:114
#3  0x0000000000555f5f in mono_os_mutex_lock (mutex=0x97a5e0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:72
#4  mono_coop_mutex_lock (mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:55
#5  mono_loader_lock () at loader.c:2257
#6  0x00000000004d8813 in send_type_load (klass="Terminal.Payment.UI.MainMenuScreen") at debugger-agent.c:3999
#7  jit_end (prof=<optimized out>, method="Terminal.Payment.UI.MainMenuScreen:_timerShowDirector_Elapsed ()", jinfo=0x7f8260137118, result=0) at debugger-agent.c:4057
#8  0x000000000058ff67 in mono_profiler_method_end_jit (method=method@entry="Terminal.Payment.UI.MainMenuScreen:_timerShowDirector_Elapsed ()", jinfo=jinfo@entry=0x7f8260137118, result=result@entry=0) at profiler.c:489
#9  0x00000000005105fe in mono_jit_compile_method_inner (method=method@entry="Terminal.Payment.UI.MainMenuScreen:_timerShowDirector_Elapsed ()", target_domain=target_domain@entry=0x27afe20, opt=opt@entry=370239999, error=error@entry=0x7f82a053b330) at mini.c:4360
#10 0x0000000000425efc in mono_jit_compile_method_with_opt (method="Terminal.Payment.UI.MainMenuScreen:_timerShowDirector_Elapsed ()", opt=370239999, error=error@entry=0x7f82a053b330) at mini-runtime.c:1910
#11 0x000000000042688a in mono_jit_compile_method (method=<optimized out>, error=error@entry=0x7f82a053b330) at mini-runtime.c:1954
#12 0x00000000004b0789 in mono_delegate_trampoline (regs=<optimized out>, code=<optimized out>, arg=0x7f82642bf050, tramp=<optimized out>) at mini-trampolines.c:1221
#13 0x000000004033300c in ?? ()
#14 0x0000000000000000 in ?? ()

Thread 18 (Thread 0x7f829a2c6700 (LWP 8221)):
#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=0x7f829a2c55fc, ms=1000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=1000, alerted=alerted@entry=0x7f829a2c55fc) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=1000) at threads.c:1227
#6  0x0000000041147308 in ?? ()
#7  0x00007f82b650a180 in ?? ()
#8  0x00007f82b650a180 in ?? ()
#9  0x00007f82b650a180 in ?? ()
#10 0x00007f82b650a250 in ?? ()
#11 0x00000000000003e8 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f8280046be0 in ?? ()
#15 0x00007f829a2c5870 in ?? ()
#16 0x00007f829a2c5870 in ?? ()
#17 0x00007f829a2c5620 in ?? ()
#18 0x0000000041147218 in ?? ()
#19 0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7f82a30b1700 (LWP 8237)):
#0  0x00007f82b747e3ad in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x000000000062bc20 in read (__nbytes=1024, __buf=0x7f82b64a6f40, __fd=26) at /usr/include/x86_64-linux-gnu/bits/unistd.h:45
#2  pipe_read (handle=0x1a, buffer=0x7f82b64a6f40, numbytes=1024, bytesread=0x7f82a30b0114, 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=0x7f82a30b0270) at file-io.c:869
#4  0x0000000040e0a571 in ?? ()
#5  0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7f82982f5700 (LWP 8238)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f82b7479649 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f82b7479470 in __GI___pthread_mutex_lock (mutex=0x979240 <suspend_mutex>) at ../nptl/pthread_mutex_lock.c:79
#3  0x00000000004d296f in mono_os_mutex_lock (mutex=0x979240 <suspend_mutex>) at ../../mono/utils/mono-os-mutex.h:72
#4  mono_coop_mutex_lock (mutex=0x979240 <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=0x7f8274002018, tls=<optimized out>) at debugger-agent.c:2742
#8  process_single_step_inner (tls=tls@entry=0x7f8274001980, from_signal=from_signal@entry=0) at debugger-agent.c:4884
#9  0x00000000004dfa33 in debugger_agent_single_step_from_context (ctx=0x7f82982f3d80) at debugger-agent.c:5012
#10 0x000000004033433b in ?? ()
#11 0x00007f8274001950 in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7f827ebfe700 (LWP 8240)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f82b7479664 in _L_lock_952 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f82b74794c6 in __GI___pthread_mutex_lock (mutex=0x97a5e0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:114
#3  0x0000000000555f5f in mono_os_mutex_lock (mutex=0x97a5e0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:72
#4  mono_coop_mutex_lock (mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:55
#5  mono_loader_lock () at loader.c:2257
#6  0x00000000004b5e55 in mono_class_get_runtime_generic_context_template (klass=<optimized out>, klass@entry="System.Collections.Generic.Dictionary`2") at mini-generic-sharing.c:755
#7  0x00000000004b60e7 in class_get_rgctx_template_oti (klass="System.Collections.Generic.Dictionary`2", type_argc=0, slot=slot@entry=3, temporary=temporary@entry=1, shared=shared@entry=1, do_free=do_free@entry=0x7f827ebfc73c) at mini-generic-sharing.c:845
Python Exception <class 'TypeError'> 'gdb.Value' object cannot be interpreted as an integer: 
Python Exception <class 'TypeError'> 'gdb.Value' object cannot be interpreted as an integer: 
#8  0x00000000004ba82d in fill_runtime_generic_context (rgctx=0x7f82601370d8, slot=slot@entry=3, method_inst=method_inst@entry=0x0, error=error@entry=0x7f827ebfc7b0, class_vtable=vtable("System.Collections.Generic.Dictionary`2<>"), class_vtable=vtable("System.Collections.Generic.Dictionary`2<>")) at mini-generic-sharing.c:2347
Python Exception <class 'TypeError'> 'gdb.Value' object cannot be interpreted as an integer: 
#9  0x00000000004ba9db in mono_class_fill_runtime_generic_context (class_vtable=class_vtable@entry=vtable("System.Collections.Generic.Dictionary`2<>"), slot=slot@entry=3, error=error@entry=0x7f827ebfc7b0) at mini-generic-sharing.c:2411
#10 0x00000000004aec20 in mono_rgctx_lazy_fetch_trampoline (regs=<optimized out>, code=<optimized out>, data=<optimized out>, tramp=<optimized out>) at mini-trampolines.c:1066
#11 0x000000004033288c in ?? ()
#12 0x00000000417f5710 in ?? ()
#13 0x00007f827ebfd1fd in ?? ()
#14 0x0000000040d9ab20 in ?? ()
#15 0x000000770000006e in ?? ()
#16 0x00007f827ebfc9c0 in ?? ()
#17 0x00007f827ebfc878 in ?? ()
#18 0x00007f827ebfe6c0 in ?? ()
#19 0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f82a0337700 (LWP 8243)):
#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=0x27aa990, cond=0x27aa9b8) at ../../mono/utils/mono-os-mutex.h:136
#2  _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x494, timeout=<optimized out>, alertable=alertable@entry=1, poll=poll@entry=0, alerted=alerted@entry=0x7f82a03362bc) at handles.c:1555
#3  0x000000000063f64d in wapi_WaitForSingleObjectEx (handle=0x494, timeout=timeout@entry=7411, alertable=alertable@entry=1) at wait.c:189
#4  0x000000000059c1e7 in mono_wait_uninterrupted (numhandles=numhandles@entry=1, handles=handles@entry=0x7f82a0336378, waitall=waitall@entry=0, ms=ms@entry=7411, error=error@entry=0x7f82a0336380, thread=<optimized out>) at threads.c:1595
#5  0x000000000059d4a6 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (handle=0x494, ms=7411) at threads.c:1731
#6  0x000000004117de91 in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f8299a6b700 (LWP 8260)):
#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=0x7f8299a6a61c, ms=57000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=57000, alerted=alerted@entry=0x7f8299a6a61c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=57000) at threads.c:1227
#6  0x0000000041147308 in ?? ()
#7  0x00007f82b67e9e28 in ?? ()
#8  0x00007f82b67e9e28 in ?? ()
#9  0x00007f82b67e9e28 in ?? ()
#10 0x00007f82b67d8368 in ?? ()
#11 0x000000000000dea8 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f8284062350 in ?? ()
#15 0x6300656b6f766e49 in ?? ()
#16 0x00007f8299a6a870 in ?? ()
#17 0x00007f8299a6a640 in ?? ()
#18 0x0000000041147218 in ?? ()
#19 0x00007f82b67d8368 in ?? ()
#20 0x0000000000979e28 in mini_arch_mutex ()
#21 0x0000000000979e48 in ?? ()
#22 0x0000000041147120 in ?? ()
#23 0x00007f8299a6a870 in ?? ()
#24 0x0000000041554680 in ?? ()
#25 0x00007f82b67e9ef8 in ?? ()
#26 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f827cafe700 (LWP 8261)):
#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=0x7f827cafd64c, ms=120000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=120000, alerted=alerted@entry=0x7f827cafd64c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=120000) at threads.c:1227
#6  0x0000000041147308 in ?? ()
#7  0x00007f82b67e9fd8 in ?? ()
#8  0x00007f82b67e9fd8 in ?? ()
#9  0x00007f82b67e9fd8 in ?? ()
#10 0x00007f82b67ea0a8 in ?? ()
#11 0x000000000001d4c0 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f82680059e0 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f82a0b50700 (LWP 8262)):
#0  0x00007f82b6f80fdd 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=0x7f825c0021f0) 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  0x00007f82b7477184 in start_thread (arg=0x7f82a0b50700) at pthread_create.c:312
#9  0x00007f82b6f8e37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 10 (Thread 0x7f827c6fc700 (LWP 8264)):
#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=0x7f82540059d8) at ../../mono/utils/mono-os-semaphore.h:166
#2  process_wait (handle=0x4b3, timeout=4294967295, alertable=1) at processes.c:2796
#3  0x000000000063f875 in wapi_WaitForSingleObjectEx (handle=0x4b3, 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=0x7f827c6fb1e8, waitall=waitall@entry=0, ms=ms@entry=-1, error=error@entry=0x7f827c6fb1f0, thread=<optimized out>) at threads.c:1595
#5  0x000000000059d4a6 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (handle=0x4b3, ms=-1) at threads.c:1731
#6  0x000000004117de91 in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f827c4fb700 (LWP 8266)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000629a51 in mono_os_cond_wait (mutex=0x27acbf0, cond=0x27acc18) at ../../mono/utils/mono-os-mutex.h:107
#2  mono_os_cond_timedwait (timeout_ms=4294967295, mutex=0x27acbf0, cond=0x27acc18) at ../../mono/utils/mono-os-mutex.h:122
#3  _wapi_handle_timedwait_signal_handle (handle=handle@entry=0x4c6, timeout=timeout@entry=4294967295, alertable=alertable@entry=1, poll=poll@entry=0, alerted=alerted@entry=0x7f827c4fa32c) at handles.c:1555
#4  0x000000000063f7b4 in wapi_WaitForSingleObjectEx (handle=0x4c6, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at wait.c:181
#5  0x00000000005bcb9b in mono_monitor_try_enter_inflated (obj=0x7f8299750bb0, ms=4294967295, allow_interruption=1, id=82) at monitor.c:885
#6  0x00000000005bdf87 in mono_monitor_try_enter_internal (allow_interruption=1, ms=4294967295, obj=0x7f8299750bb0) at monitor.c:994
#7  ves_icall_System_Threading_Monitor_Monitor_try_enter_with_atomic_var (obj=0x7f8299750bb0, ms=4294967295, lockTaken=0x7f827c4fa580 "") at monitor.c:1079
#8  0x0000000040d92d5a in ?? ()
#9  0x00007f82b64c24f8 in ?? ()
#10 0x00007f82b64c24f8 in ?? ()
#11 0x00007f8299750bb0 in ?? ()
#12 0xffffffffffffffff in ?? ()
#13 0x00007f827c4fa580 in ?? ()
#14 0x0000000000979e28 in mini_arch_mutex ()
#15 0x0000000000979e48 in ?? ()
#16 0x00007f8258001950 in ?? ()
#17 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f827c2fa700 (LWP 8268)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f82b7479649 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f82b7479470 in __GI___pthread_mutex_lock (mutex=0x979240 <suspend_mutex>) at ../nptl/pthread_mutex_lock.c:79
#3  0x00000000004d296f in mono_os_mutex_lock (mutex=0x979240 <suspend_mutex>) at ../../mono/utils/mono-os-mutex.h:72
#4  mono_coop_mutex_lock (mutex=0x979240 <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=0x7f824c002018, tls=<optimized out>) at debugger-agent.c:2742
#8  process_single_step_inner (tls=tls@entry=0x7f824c001980, from_signal=from_signal@entry=0) at debugger-agent.c:4884
#9  0x00000000004dfa33 in debugger_agent_single_step_from_context (ctx=0x7f827c2f9390) at debugger-agent.c:5012
#10 0x000000004033433b in ?? ()
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f82786cb700 (LWP 8275)):
#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=0x7f82786ca64c, ms=6000) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=6000, alerted=alerted@entry=0x7f82786ca64c) at mono-threads.c:1245
#5  0x000000000059d939 in ves_icall_System_Threading_Thread_Sleep_internal (ms=6000) at threads.c:1227
#6  0x0000000041147308 in ?? ()
#7  0x00007f82b659eb90 in ?? ()
#8  0x00007f82b659eb90 in ?? ()
#9  0x00007f82b659eb90 in ?? ()
#10 0x00007f82b659ec60 in ?? ()
#11 0x0000000000001770 in ?? ()
#12 0x0000000000979e28 in mini_arch_mutex ()
#13 0x0000000000979e48 in ?? ()
#14 0x00007f823c001950 in ?? ()
#15 0x0000000000979e48 in ?? ()
#16 0x00007f82786ca870 in ?? ()
#17 0x00007f82786ca670 in ?? ()
#18 0x0000000041147218 in ?? ()
#19 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f82788cc700 (LWP 8312)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f82b7479649 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f82b7479470 in __GI___pthread_mutex_lock (mutex=0x979240 <suspend_mutex>) at ../nptl/pthread_mutex_lock.c:79
#3  0x00000000004d296f in mono_os_mutex_lock (mutex=0x979240 <suspend_mutex>) at ../../mono/utils/mono-os-mutex.h:72
#4  mono_coop_mutex_lock (mutex=0x979240 <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=0x7f8248003448, tls=<optimized out>) at debugger-agent.c:2742
#8  process_single_step_inner (tls=tls@entry=0x7f8248002db0, from_signal=from_signal@entry=0) at debugger-agent.c:4884
#9  0x00000000004dfa33 in debugger_agent_single_step_from_context (ctx=0x7f82788cabc0) at debugger-agent.c:5012
#10 0x000000004033433b in ?? ()
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f82782c9700 (LWP 8943)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f82b7479664 in _L_lock_952 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f82b74794c6 in __GI___pthread_mutex_lock (mutex=0x97a5e0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:114
#3  0x0000000000555f5f in mono_os_mutex_lock (mutex=0x97a5e0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:72
#4  mono_coop_mutex_lock (mutex=<optimized out>) at ../../mono/utils/mono-coop-mutex.h:55
#5  mono_loader_lock () at loader.c:2257
#6  0x00000000004d8813 in send_type_load (klass="Terminal.Entities.PaymentsInBasket") at debugger-agent.c:3999
#7  jit_end (prof=<optimized out>, method="Terminal.Entities.PaymentsInBasket:set_Discount ()", jinfo=0x7f8260136de8, result=0) at debugger-agent.c:4057
#8  0x000000000058ff67 in mono_profiler_method_end_jit (method=method@entry="Terminal.Entities.PaymentsInBasket:set_Discount ()", jinfo=jinfo@entry=0x7f8260136de8, result=result@entry=0) at profiler.c:489
#9  0x00000000005105fe in mono_jit_compile_method_inner (method=method@entry="Terminal.Entities.PaymentsInBasket:set_Discount ()", target_domain=target_domain@entry=0x27afe20, opt=opt@entry=370239999, error=error@entry=0x7f82782c75d0) at mini.c:4360
#10 0x0000000000425efc in mono_jit_compile_method_with_opt (method=method@entry="Terminal.Entities.PaymentsInBasket:set_Discount ()", opt=370239999, error=error@entry=0x7f82782c75d0) at mini-runtime.c:1910
#11 0x000000000042688a in mono_jit_compile_method (method=method@entry="Terminal.Entities.PaymentsInBasket:set_Discount ()", error=error@entry=0x7f82782c75d0) at mini-runtime.c:1954
#12 0x00000000004af809 in common_call_trampoline (regs=regs@entry=0x7f82782c76a8, code=code@entry=0x417f4ce4 "A\273", m=m@entry="Terminal.Entities.PaymentsInBasket:set_Discount ()", vt=vt@entry=0x0, vtable_slot=<optimized out>, vtable_slot@entry=0x0, error=error@entry=0x7f82782c75d0) at mini-trampolines.c:702
#13 0x00000000004b0230 in mono_magic_trampoline (regs=0x7f82782c76a8, code=0x417f4ce4 "A\273", arg=0x7f8260055868, tramp=<optimized out>) at mini-trampolines.c:828
#14 0x000000004033238c in ?? ()
#15 0x0000000000979e28 in mini_arch_mutex ()
#16 0x00007f8260184905 in ?? ()
#17 0x00000000417f4ce4 in ?? ()
#18 0x0000000000010000 in ?? ()
#19 0x00007f82782c77f0 in ?? ()
#20 0x00007f82782c76a8 in ?? ()
#21 0x00007f82782c96c0 in ?? ()
#22 0x00007f82995e3bf0 in ?? ()
#23 0x0000000000000087 in ?? ()
#24 0x0000000000000002 in ?? ()
#25 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f823aff7700 (LWP 8944)):
#0  0x00007f82b6ecafb2 in do_sigsuspend (set=0x98b340 <suspend_signal_mask>) at ../sysdeps/unix/sysv/linux/sigsuspend.c:31
#1  __GI___sigsuspend (set=set@entry=0x98b340 <suspend_signal_mask>) at ../sysdeps/unix/sysv/linux/sigsuspend.c:45
#2  0x0000000000653b2e in suspend_signal_handler (_dummy=<optimized out>, info=<optimized out>, context=0x7f823aff5440) at mono-threads-posix-signals.c:208
#3  <signal handler called>
#4  0x00007f82b747ea7d in fsync () at ../sysdeps/unix/syscall-template.S:81
#5  0x00007f8299e3f233 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#6  0x00007f8299e33297 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#7  0x00007f8299e5808d in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#8  0x00007f8299e582ba in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#9  0x00007f8299e68dbb in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#10 0x00007f8299e7f32d in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#11 0x00007f8299e81f87 in sqlite3_step () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#12 0x000000004120b340 in ?? ()
#13 0x000000000029beb0 in ?? ()
#14 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f8298d5b700 (LWP 8946)):
#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=0x7f8298d5ad78, ms=500) at mono-threads.c:1213
#4  mono_thread_info_sleep (ms=ms@entry=500, alerted=alerted@entry=0x7f8298d5ad78) 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  0x00007f82b7477184 in start_thread (arg=0x7f8298d5b700) at pthread_create.c:312
#10 0x00007f82b6f8e37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f827edff700 (LWP 8949)):
#0  0x00007f82b747eed9 in __libc_waitpid (pid=pid@entry=8951, stat_loc=stat_loc@entry=0x7f827edfd5cc, 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  0x00007f82b6ecac37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#4  0x00007f82b6ece028 in __GI_abort () at abort.c:89
#5  0x000000000065a909 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  0x000000000065ab17 in monoeg_g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7f827edfe538) at goutput.c:113
#8  0x000000000065abc2 in monoeg_g_log (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x715f70 "suspend_thread suspend took %d ms, which is more than the allowed %d ms") at goutput.c:123
#9  0x00000000006510ec in mono_threads_wait_pending_operations () at mono-threads.c:245
#10 0x000000000065217a in suspend_sync (interrupt_kernel=0, tid=140197312296704) at mono-threads.c:918
#11 suspend_sync_nolock (interrupt_kernel=0, id=140197312296704) at mono-threads.c:935
#12 mono_thread_info_safe_suspend_and_run (id=140197312296704, interrupt_kernel=interrupt_kernel@entry=0, callback=callback@entry=0x4ccd00 <debugger_interrupt_critical>, user_data=user_data@entry=0x7f827edfeac0) at mono-threads.c:978
#13 0x00000000004c86ce in notify_thread (key=0x7f829955ce30, value=0x7f82180390c0, user_data=<optimized out>) at debugger-agent.c:2688
#14 0x00000000005bef4c in mono_g_hash_table_foreach (hash=0x2790e30, 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_START, arg=arg@entry=0x7f829955d030, il_offset=il_offset@entry=0, ctx=ctx@entry=0x0, events=events@entry=0x7f8290001910, suspend_policy=2) at debugger-agent.c:3733
#17 0x00000000004d8236 in process_profiler_event (event=event@entry=EVENT_KIND_THREAD_START, arg=arg@entry=0x7f829955d030) at debugger-agent.c:3788
#18 0x00000000004d905e in thread_startup (prof=<optimized out>, tid=140198451083008) at debugger-agent.c:3860
#19 0x0000000000590343 in mono_profiler_thread_start (tid=140198451083008) at profiler.c:609
#20 0x000000000059c466 in start_wrapper_internal (data=0x7f824c0659d0) at threads.c:728
#21 start_wrapper (data=0x7f824c0659d0) at threads.c:788
#22 0x000000000065363c in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#23 0x00007f82b7477184 in start_thread (arg=0x7f827edff700) at pthread_create.c:312
#24 0x00007f82b6f8e37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f82b7f8f780 (LWP 8188)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f82b7479649 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f82b7479470 in __GI___pthread_mutex_lock (mutex=0x979240 <suspend_mutex>) at ../nptl/pthread_mutex_lock.c:79
#3  0x00000000004d296f in mono_os_mutex_lock (mutex=0x979240 <suspend_mutex>) at ../../mono/utils/mono-os-mutex.h:72
#4  mono_coop_mutex_lock (mutex=0x979240 <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=0x280f648, tls=<optimized out>) at debugger-agent.c:2742
#8  process_single_step_inner (tls=tls@entry=0x280efb0, from_signal=from_signal@entry=0) at debugger-agent.c:4884
#9  0x00000000004dfa33 in debugger_agent_single_step_from_context (ctx=0x7ffd16db5ca0) at debugger-agent.c:5012
#10 0x000000004033433b in ?? ()
#11 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.
=================================================================
Comment 1 Aleksey Kliger 2017-02-13 23:19:08 UTC
*** Bug 52421 has been marked as a duplicate of this bug. ***
Comment 2 Aleksey Kliger 2017-02-13 23:24:41 UTC
It looks like thread 4 is running some sqlite3 native code and the debugger (Thread 2) is async suspending it.  Seems like the thread 4 ought to be detached.
Comment 3 Roman 2017-02-14 08:12:34 UTC
Yes this problem happens only in debugger but in realize it works without this bug
Comment 4 Aleksey Kliger 2017-02-14 15:02:46 UTC
Roman,

Do you have a small project that you could share with us that demonstrates the problem?

Also, can you say a little about how sqlite3 is involved? Are you marshaling calls to it yourself or using some database package (if so, which one)?
Comment 5 Roman 2017-02-15 11:47:24 UTC
I have big commercial project therefore I can not share it.
As for sqlite3, I use Mono.Data.Sqlite I give you one file source code.
Pay attention that I use <lock> operator in case when I use connection for writing operation 

using System;
using System.ComponentModel;
using System.Data;
using System.Data.Common;
using Mono.Data.Sqlite;
using Terminal.Service.Loging;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Collections.Generic;

namespace SqliteAdapter
{
    public class SqliteDbAdapter : ISqliteAdapter
    {
        private SqliteConnection _connectionWrite;

        private string _pathToDb;

        public static event Action<string[]> OnError;

        public SqliteDbAdapter(string pathToDb) //example of pathToDb //"Uri=file:/root/Data/Terminal.sqlite; Pooling=true; Max Pool Size=30";
        {
            _pathToDb = pathToDb;
            _connectionWrite = new SqliteConnection(_pathToDb);
        }

        private void Open(out SqliteConnection connection, out SqliteCommand command)
        {
            for (byte i = 0; i < 5; i++)
            {
                connection = new SqliteConnection(_pathToDb);
                try
                {
                    connection.Open();
                    connection.DefaultTimeout = 15000;
                    command = new SqliteCommand(connection);
                    command.CommandTimeout = 15000;
                    return;
                }
                catch (Exception e)
                {
                    Logs.DataBase.Error("Ошибка подключения к базе {0}", e.Message);
                    if (OnError != null) OnError(new string[]{e.Message, e.StackTrace});
                    Thread.Sleep(3000);
                }
            }
            throw new Exception("Не удалось открыть подключение к базе");
        }

        public int UpdateInsert(string sql)
        {
            int result = 0;
            lock (_connectionWrite)
            {
                _connectionWrite.Open();
                using (SqliteCommand command = _connectionWrite.CreateCommand())
                {
                    command.CommandText = sql;
                    try
                    {
                        result = command.ExecuteNonQuery();
                    }
                    catch (Exception ex)
                    {
                        Logs.DataBase.Error("Ошибка {0} выполнения Sql запроса {1}", ex.Message, sql);
                        if (ex.Message.Contains("database disk image is malformed") && OnError != null)
                        {
                            OnError(new string[]{ ex.Message, ex.StackTrace });
                        }
                    }
                    finally
                    {
                        _connectionWrite.Close();
                    }
                }
            }
            return result;
        }

        public ulong InsertAndGetId(string sql)
        {
            ulong result = 0;
            lock (_connectionWrite)
            {
                _connectionWrite.Open();
                using (SqliteCommand command = _connectionWrite.CreateCommand())
                {
                    command.CommandText = sql;
                    try
                    {
                        command.ExecuteNonQuery();
                        command.CommandText = "select last_insert_rowid()";
                        result = Convert.ToUInt64(command.ExecuteScalar().ToString());
                    }
                    catch (Exception ex)
                    {
                        Logs.DataBase.Error("Ошибка {0} выполнения Sql запроса {1}", ex.Message, sql);
                        if (ex.Message.Contains("database disk image is malformed") && OnError != null)
                        {
                            OnError(new string[]{ ex.Message, ex.StackTrace });
                        }
                    }
                    finally
                    {
                        _connectionWrite.Close();
                    }
                }
            }
            return result;
        }

        public void TruncateTable(string table)
        {
            lock (_connectionWrite)
            {
                _connectionWrite.Open();
                using (SqliteCommand command = _connectionWrite.CreateCommand())
                {
                    command.CommandText = "DELETE FROM " + table;
                    try
                    {
                        command.ExecuteNonQuery();
                        command.CommandText = "VACUUM";
                        command.ExecuteNonQuery();
                    }
                    catch (Exception ex)
                    {
                        Logs.DataBase.Error("Ошибка {0} выполнения Sql запроса {1}", ex.Message + " " + ex.StackTrace, "DELETE FROM " + table);
                        throw new Exception(ex.Message);
                    }
                    finally
                    {
                        _connectionWrite.Close();
                    }
                }
            }
        }

        public long DeleteQuery(string sql)
        {
            int result = 0;
            lock (_connectionWrite)
            {
                _connectionWrite.Open();
                using (SqliteCommand command = _connectionWrite.CreateCommand())
                {
                    command.CommandText = sql;
                    try
                    {
                        result = command.ExecuteNonQuery();
                    }
                    catch (Exception ex)
                    {
                        Logs.DataBase.Error("Ошибка {0} выполнения Sql запроса {1}", ex.Message, sql);
                        if (ex.Message.Contains("database disk image is malformed") && OnError != null)
                        {
                            OnError(new string[]{ ex.Message, ex.StackTrace });
                        }
                    }
                    finally
                    {
                        _connectionWrite.Close();
                    }
                }
            }
            return result;
        }

        public object ScalarQuery(string sql)
        {
            SqliteConnection connection;
            SqliteCommand command;
            //Open(out connection, out command);
            connection = new SqliteConnection(_pathToDb);
            connection.Open();
            //connection.DefaultTimeout = 15000;
            command = new SqliteCommand(connection);
            //command.CommandTimeout = 15000;
            command.CommandText = sql;
            object val = null;
            try
            {
                val = command.ExecuteScalar();
            }
            catch(Exception ex)
            {
                Logs.DataBase.Error("Ошибка {0} выполнения Sql запроса {1}", ex.Message, sql);
                if (ex.Message.Contains("database disk image is malformed") && OnError != null)
                {
                    OnError(new string[]{ex.Message, ex.StackTrace});
                }
            }
            finally
            {
                command.Dispose();
                connection.Dispose();
            }
            return val;
        }

        public DataTable GetTable(string sql)
        {
            SqliteConnection connection;
            SqliteCommand command;
            Open(out connection, out command);
            command.CommandText = sql;
            var table = new DataTable();
            table.TableName = "1";
            var p = new SqliteDataAdapter(command);
            try
            {
                p.Fill(table);
            }
            finally
            {
                command.Dispose();
                connection.Dispose();
            }
            return table;
        }

        public void ClearDB()
        {
            lock (_connectionWrite)
            {
                _connectionWrite.Open();
                using (SqliteCommand command = _connectionWrite.CreateCommand())
                {
                    command.CommandText = "SELECT name FROM sqlite_master WHERE type='table'";
                    var table = new DataTable();
                    table.TableName = "1";
                    var p = new SqliteDataAdapter(command);
                    try
                    {
                        p.Fill(table);
                        foreach (DataRow row in table.Rows)
                        {
                            command.CommandText = String.Format("DELETE FROM {0}", row[0].ToString());
                            command.ExecuteNonQuery();
                        }
                        command.CommandText = "VACUUM";
                        command.ExecuteNonQuery();
                    }
                    finally
                    {
                        _connectionWrite.Close();
                    }
                    if (System.IO.Directory.Exists("ReserveCopies"))
                        foreach (var file in System.IO.Directory.GetFiles("ReserveCopies"))
                        {
                            System.IO.File.Delete(file);
                        }
                    System.IO.File.Copy("/root/Programm/Advertising.sqlite", "/root/Data/Advertising.sqlite");
                }
            }
        }

        public void UpdateDB(string[] sqls)
        {
            if (sqls == null || sqls.Length == 0) return;
            lock (_connectionWrite)
            {
                _connectionWrite.Open();
                using (SqliteCommand command = _connectionWrite.CreateCommand())
                {
                    for (byte i = 0; i < sqls.Length; i++)
                    {
                        command.CommandText = sqls[i];
                        try
                        {
                            command.ExecuteNonQuery();
                        }
                        catch (Exception ex)
                        {
                            Logs.DataBase.Error("Ошибка обновления базы данных {0}", ex.Message);
                            if (ex.Message.Contains("database disk image is malformed") && OnError != null)
                            {
                                OnError(new string[]{ ex.Message, ex.StackTrace });
                            }
                        }
                    }
                    _connectionWrite.Close();
                }
            }
        }

        public bool[] TransformExactlyToBasket(string[] sqls)
        {
            if (sqls == null || sqls.Length == 0) return new bool[1]{false};
            List<bool> list = new List<bool>();
            lock (_connectionWrite)
            {
                _connectionWrite.Open();
                using (SqliteTransaction transaction = _connectionWrite.BeginTransaction())
                {
                    using (SqliteCommand command = _connectionWrite.CreateCommand())
                    {
                        for (byte i = 0; i < sqls.Length; i++)
                        {
                            command.CommandText = sqls[i];
                            try
                            {
                                int result = command.ExecuteNonQuery();
                                Logs.DataBase.Info("{0}; result {1}", sqls[i], result);
                                if(i==0 && result==0)
                                {
                                    _connectionWrite.Close();
                                    return new bool[1]{false};
                                }
                                else list.Add(result>0);
                            }
                            catch (Exception ex)
                            {
                                Logs.DataBase.Error("Ошибка трансформации обычного платежа в корзинный платеж {0}", ex.Message);
                                if (ex.Message.Contains("database disk image is malformed") && OnError != null)
                                {
                                    OnError(new string[]{ ex.Message, ex.StackTrace });
                                }
                                transaction.Rollback();
                                command.Dispose();
                                _connectionWrite.Close();
                                return list.ToArray();
                            }
                        }
                        transaction.Commit();
                    }
                }
                _connectionWrite.Close();
            }
            return list.ToArray();
        }
    }
}
Comment 6 Ludovic Henry 2017-09-06 18:02:02 UTC
Can you still reproduce with latest version of Mono 5.4.0.135 (2017-06/6425f06) ?
Comment 7 Roman 2017-09-07 05:35:59 UTC
Hi, Ludovic. Last time I've not been noticing this bug. I think you can close this report.
Comment 8 Ludovic Henry 2017-09-21 23:39:43 UTC
Marking as resolved as it's not reproducible, feel free to reopen if you hit it again.
Comment 9 Roman 2017-09-22 05:43:44 UTC
Thanks Ludovic.