Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[metadata] Crash on Ubuntu, assertion at class-init.c:3930 #18096

Closed
fanyang-mono opened this issue Dec 9, 2019 · 7 comments
Closed

[metadata] Crash on Ubuntu, assertion at class-init.c:3930 #18096

fanyang-mono opened this issue Dec 9, 2019 · 7 comments

Comments

@fanyang-mono
Copy link
Contributor

fanyang-mono commented Dec 9, 2019

Steps to Reproduce

  1. Clone a Mono local repository
  2. Clone the test app repository from https://github.com/aspnet/AspNetCore
  3. In the attached script, replace <MONO_GIT_ROOT> with the path to the root of your mono repository, and replace <TE_GIT_ROOT> with the path to the root of your test app repository
  4. Need to install wrk, if you don't have it
  5. Run the script assertion.sh

assertion.sh.zip

This is the assemblies of the test app which causing the crash:
PlatformBenchmarks.zip

Current Behavior

  • Assertion at class-init.c:3930, condition `klass->instance_size == instance_size' not met

Expected Behavior

No crash.

On which platforms did you notice this

[ ] macOS
[x ] Linux - Ubuntu 18.04.3 LTS
[ ] Windows

Version Used:
3d83c74 from Dec 9th, 2019

Stacktrace

<OnReadCompletedAsync>d__39
64 56 0 0
1 1 0 0
8 8
  <>1__state 0 16 0
  <>t__builder 0 24 0
  <>4__this 0 32 0
  <>u__1 0 40 0
* Assertion at class-init.c:3930, condition `klass->instance_size == instance_size' not met


=================================================================
	Native Crash Reporting
=================================================================
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.
=================================================================
Running 15s test @ http://localhost:8080/plaintext
  8 threads and 256 connections

=================================================================
	Native stacktrace:
=================================================================
	0x7ff943e27566 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943e2793c - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943dbb989 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943e26b4b - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff9456ac890 - /lib/x86_64-linux-gnu/libpthread.so.0 : 
	0x7ff9447a4e97 - /lib/x86_64-linux-gnu/libc.so.6 : gsignal
	0x7ff9447a6801 - /lib/x86_64-linux-gnu/libc.so.6 : abort
	0x7ff943fce5b7 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943fb3a03 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943fce538 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943fcea33 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : monoeg_assertion_message
	0x7ff943fcea6a - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943e97e60 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943e966c7 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943e8ff46 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : mono_class_get_field
	0x7ff943eccadc - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943d548c3 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943d31823 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943d33742 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943d36d4d - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943dbee26 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x7ff943dbf910 - /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so : 
	0x41dcc393 - Unknown

=================================================================
	Telemetry Dumper:
=================================================================
Pkilling 0x7ff943a0f700 from 0x7ff9386aa700
Pkilling 0x7ff903fff700 from 0x7ff9386aa700
Pkilling 0x7ff945acf740 from 0x7ff9386aa700
Pkilling 0x7ff938eae700 from 0x7ff9386aa700
Pkilling 0x7ff938aac700 from 0x7ff9386aa700
Pkilling 0x7ff939d40700 from 0x7ff9386aa700
Pkilling 0x7ff9405a4700 from 0x7ff9386aa700
Pkilling 0x7ff9382a8700 from 0x7ff9386aa700
Pkilling 0x7ff903dfe700 from 0x7ff9386aa700
Pkilling 0x7ff9039fc700 from 0x7ff9386aa700
Pkilling 0x7ff9390af700 from 0x7ff9386aa700
Pkilling 0x7ff938cad700 from 0x7ff9386aa700
Pkilling 0x7ff9388ab700 from 0x7ff9386aa700
Pkilling 0x7ff939f41700 from 0x7ff9386aa700
Pkilling 0x7ff939b3f700 from 0x7ff9386aa700
Pkilling 0x7ff9384a9700 from 0x7ff9386aa700
Pkilling 0x7ff903bfd700 from 0x7ff9386aa700
Could not exec mono-hang-watchdog, expected on path '/usr/local/etc/../bin/mono-hang-watchdog' (errno 2)
Entering thread summarizer pause from 0x7ff9386aa700
Finished thread summarizer pause from 0x7ff9386aa700.

Waiting for dumping threads to resume

=================================================================
	External Debugger Dump:
=================================================================
[New LWP 4578]
[New LWP 4579]
[New LWP 4580]
[New LWP 4581]
[New LWP 4583]
[New LWP 4584]
[New LWP 4585]
[New LWP 4586]
[New LWP 4587]
[New LWP 4591]
[New LWP 4594]
[New LWP 4595]
[New LWP 4597]
[New LWP 4598]
[New LWP 4599]
[New LWP 4602]
[New LWP 4603]
[New LWP 4604]
[New LWP 4606]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007ff9456a79f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1aa4198) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
88	../sysdeps/unix/sysv/linux/futex-internal.h: No such file or directory.
  Id   Target Id         Frame 
* 1    Thread 0x7ff945acf740 (LWP 4574) "dotnet" 0x00007ff9456a79f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1aa4198) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  2    Thread 0x7ff9433ff700 (LWP 4578) "SGen worker" 0x00007ff9456a79f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7ff9442cc5e8 <work_cond+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  3    Thread 0x7ff943a0f700 (LWP 4579) "Finalizer" 0x00007ff9456aa6d6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x7ff9442bdd20 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
  4    Thread 0x7ff9405a4700 (LWP 4580) "dotnet" 0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff9405a30d0, expected=0, futex_word=0x1aa3cc8) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  5    Thread 0x7ff939f41700 (LWP 4581) "dotnet" __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  6    Thread 0x7ff939d40700 (LWP 4583) "dotnet" 0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff939d3f7f0, expected=0, futex_word=0x7ff9442cd0a8 <sleep_cond+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  7    Thread 0x7ff939b3f700 (LWP 4584) "dotnet" __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  8    Thread 0x7ff93993e700 (LWP 4585) "dotnet" 0x00007ff9456ab384 in __libc_read (fd=5, buf=0x7ff93993debf, nbytes=1) at ../sysdeps/unix/sysv/linux/read.c:27
  9    Thread 0x7ff9390af700 (LWP 4586) "dotnet" __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  10   Thread 0x7ff938eae700 (LWP 4587) "dotnet" 0x00007ff944887bb7 in epoll_wait (epfd=8, events=0x7ff92c1d5000, maxevents=1024, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
  11   Thread 0x7ff938cad700 (LWP 4591) "dotnet" __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  12   Thread 0x7ff938aac700 (LWP 4594) "dotnet" 0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff938aab440, expected=0, futex_word=0x1aa7228) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  13   Thread 0x7ff9388ab700 (LWP 4595) "dotnet" __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  14   Thread 0x7ff9386aa700 (LWP 4597) "dotnet" 0x00007ff9456ac23a in __waitpid (pid=pid@entry=4610, stat_loc=stat_loc@entry=0x7ff9386a62d4, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
  15   Thread 0x7ff9384a9700 (LWP 4598) "dotnet" 0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff9384a8440, expected=0, futex_word=0x1aa6a48) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  16   Thread 0x7ff9382a8700 (LWP 4599) "dotnet" 0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff9382a7440, expected=0, futex_word=0x1aa7298) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  17   Thread 0x7ff903bfd700 (LWP 4602) "dotnet" 0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff903bfc440, expected=0, futex_word=0x1aa69d8) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  18   Thread 0x7ff903dfe700 (LWP 4603) "dotnet" __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
  19   Thread 0x7ff903fff700 (LWP 4604) "dotnet" 0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff903ffe440, expected=0, futex_word=0x1aa6ce8) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  20   Thread 0x7ff9039fc700 (LWP 4606) "dotnet" 0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff9039fb440, expected=0, futex_word=0x1aa7308) at ../sysdeps/unix/sysv/linux/futex-internal.h:142

Thread 20 (Thread 0x7ff9039fc700 (LWP 4606)):
#0  0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff9039fb440, expected=0, futex_word=0x1aa7308) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7ff9039fb4e0, mutex=0x1aa72b8, cond=0x1aa72e0) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=cond@entry=0x1aa72e0, mutex=mutex@entry=0x1aa72b8, abstime=abstime@entry=0x7ff9039fb4e0) at pthread_cond_wait.c:667
#3  0x00007ff943fb8cfb in mono_os_cond_timedwait (cond=cond@entry=0x1aa72e0, mutex=mutex@entry=0x1aa72b8, timeout_ms=timeout_ms@entry=20000) at mono-os-mutex.c:75
#4  0x00007ff943f2a87c in mono_coop_cond_timedwait (timeout_ms=20000, mutex=0x1aa72b8, cond=0x1aa72e0) at ../../mono/utils/mono-coop-mutex.h:103
#5  mono_w32handle_timedwait_signal_naked (alerted=0x7ff9039fb580, poll=0, timeout=20000, mutex=0x1aa72b8, cond=0x1aa72e0) at w32handle.c:652
#6  mono_w32handle_timedwait_signal_handle (handle_data=0x1aa72a8, timeout=20000, alerted=alerted@entry=0x7ff9039fb580, poll=0) at w32handle.c:767
#7  0x00007ff943f2bee9 in mono_w32handle_wait_one (handle=handle@entry=0x1aa72a8, timeout=timeout@entry=20000, alertable=alertable@entry=1) at w32handle.c:892
#8  0x00007ff943f60bbf in mono_monitor_wait (error=<optimized out>, allow_interruption=0 '\000', ms=20000, obj_handle=...) at monitor.c:1438
#9  ves_icall_System_Threading_Monitor_Monitor_wait (obj_handle=..., ms=ms@entry=20000, allow_interruption=allow_interruption@entry=0 '\000', error=error@entry=0x7ff9039fb6b0) at monitor.c:1493
#10 0x00007ff943ec2341 in ves_icall_System_Threading_Monitor_Monitor_wait_raw (a0=<optimized out>, a1=20000, a2=<optimized out>) at ../../mono/metadata/icall-def-netcore.h:481
#11 0x0000000041a8f8f1 in ?? ()
#12 0x00007ff9039fb7e0 in ?? ()
#13 0x00007ff94347fe98 in ?? ()
#14 0x00007ff8f0002580 in ?? ()
#15 0x00007ff9039fb790 in ?? ()
#16 0x00007ff9039fb740 in ?? ()
#17 0x00007ff94347ab38 in ?? ()
#18 0x0000000000000046 in ?? ()
#19 0x0000000000000038 in ?? ()
#20 0x00007ff943428900 in ?? ()
#21 0x0000000000004e20 in ?? ()
#22 0x00007ff9039fb840 in ?? ()
#23 0x0000000041a8f278 in ?? ()
#24 0x00007ff9039fb7f0 in ?? ()
#25 0x00007ff94347fe98 in ?? ()
#26 0x0000000000004e20 in ?? ()
#27 0x00007ff943428900 in ?? ()
#28 0x0000000000000000 in ?? ()

Thread 19 (Thread 0x7ff903fff700 (LWP 4604)):
#0  0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff903ffe440, expected=0, futex_word=0x1aa6ce8) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7ff903ffe4e0, mutex=0x1aa6c98, cond=0x1aa6cc0) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=cond@entry=0x1aa6cc0, mutex=mutex@entry=0x1aa6c98, abstime=abstime@entry=0x7ff903ffe4e0) at pthread_cond_wait.c:667
#3  0x00007ff943fb8cfb in mono_os_cond_timedwait (cond=cond@entry=0x1aa6cc0, mutex=mutex@entry=0x1aa6c98, timeout_ms=timeout_ms@entry=20000) at mono-os-mutex.c:75
#4  0x00007ff943f2a87c in mono_coop_cond_timedwait (timeout_ms=20000, mutex=0x1aa6c98, cond=0x1aa6cc0) at ../../mono/utils/mono-coop-mutex.h:103
#5  mono_w32handle_timedwait_signal_naked (alerted=0x7ff903ffe580, poll=0, timeout=20000, mutex=0x1aa6c98, cond=0x1aa6cc0) at w32handle.c:652
#6  mono_w32handle_timedwait_signal_handle (handle_data=0x1aa6c88, timeout=20000, alerted=alerted@entry=0x7ff903ffe580, poll=0) at w32handle.c:767
#7  0x00007ff943f2bee9 in mono_w32handle_wait_one (handle=handle@entry=0x1aa6c88, timeout=timeout@entry=20000, alertable=alertable@entry=1) at w32handle.c:892
#8  0x00007ff943f60bbf in mono_monitor_wait (error=<optimized out>, allow_interruption=0 '\000', ms=20000, obj_handle=...) at monitor.c:1438
#9  ves_icall_System_Threading_Monitor_Monitor_wait (obj_handle=..., ms=ms@entry=20000, allow_interruption=allow_interruption@entry=0 '\000', error=error@entry=0x7ff903ffe6b0) at monitor.c:1493
#10 0x00007ff943ec2341 in ves_icall_System_Threading_Monitor_Monitor_wait_raw (a0=<optimized out>, a1=20000, a2=<optimized out>) at ../../mono/metadata/icall-def-netcore.h:481
#11 0x0000000041a8f8f1 in ?? ()
#12 0x00007ff903ffe7e0 in ?? ()
#13 0x00007ff94347cb48 in ?? ()
#14 0x00007ff8ec002580 in ?? ()
#15 0x00007ff903ffe790 in ?? ()
#16 0x00007ff903ffe740 in ?? ()
#17 0x00007ff943474f30 in ?? ()
#18 0x0000000000000046 in ?? ()
#19 0x0000000000000038 in ?? ()
#20 0x00007ff943428900 in ?? ()
#21 0x0000000000004e20 in ?? ()
#22 0x00007ff903ffe840 in ?? ()
#23 0x0000000041a8f278 in ?? ()
#24 0x00007ff903ffe7f0 in ?? ()
#25 0x00007ff94347cb48 in ?? ()
#26 0x0000000000004e20 in ?? ()
#27 0x00007ff943428900 in ?? ()
#28 0x0000000000000000 in ?? ()

Thread 18 (Thread 0x7ff903dfe700 (LWP 4603)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ff9456a4098 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x7ff9442ba2a0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:113
#2  0x00007ff943ecc7b4 in mono_os_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:105
#3  mono_coop_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-coop-mutex.h:57
#4  mono_loader_lock () at loader.c:144
#5  0x00007ff943efe224 in mono_vtable_build_imt_slot (vtable=vtable@entry=0x22894b0, imt_slot=11) at object.c:1711
#6  0x00007ff943dbe892 in mini_resolve_imt_method (vt=vt@entry=0x22894b0, vtable_slot=vtable_slot@entry=0x2289470, imt_method=imt_method@entry=0x1de37e0, impl_method=impl_method@entry=0x7ff903dfd2d0, out_aot_addr=out_aot_addr@entry=0x7ff903dfd2c0, out_need_rgctx_tramp=out_need_rgctx_tramp@entry=0x7ff903dfd2bc, variant_iface=0x7ff903dfd2c8, error=0x7ff903dfd360) at mini-trampolines.c:220
#7  0x00007ff943dbef31 in common_call_trampoline (regs=regs@entry=0x7ff903dfd428, code=code@entry=0x41ac93e2 "H\213E\330H\211E\300\203\070", m=0x0, vt=vt@entry=0x22894b0, vtable_slot=0x2289470, error=error@entry=0x7ff903dfd360) at mini-trampolines.c:474
#8  0x00007ff943dbfb8f in mono_vcall_trampoline (regs=0x7ff903dfd428, code=0x41ac93e2 "H\213E\330H\211E\300\203\070", slot=-8, tramp=<optimized out>) at mini-trampolines.c:856
#9  0x0000000041dcd293 in ?? ()
#10 0x00007ff8f4002585 in ?? ()
#11 0x97d5afc800000000 in ?? ()
#12 0x00007ff903dfd5f0 in ?? ()
#13 0x00007ff903dfd428 in ?? ()
#14 0x00007ff8f4001d20 in ?? ()
#15 0x00000000022894b0 in ?? ()
#16 0x00007ff94346bb08 in ?? ()
#17 0x00007ff9426193ef in ?? ()
#18 0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7ff903bfd700 (LWP 4602)):
#0  0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff903bfc440, expected=0, futex_word=0x1aa69d8) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7ff903bfc4e0, mutex=0x1aa6988, cond=0x1aa69b0) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=cond@entry=0x1aa69b0, mutex=mutex@entry=0x1aa6988, abstime=abstime@entry=0x7ff903bfc4e0) at pthread_cond_wait.c:667
#3  0x00007ff943fb8cfb in mono_os_cond_timedwait (cond=cond@entry=0x1aa69b0, mutex=mutex@entry=0x1aa6988, timeout_ms=timeout_ms@entry=20000) at mono-os-mutex.c:75
#4  0x00007ff943f2a87c in mono_coop_cond_timedwait (timeout_ms=20000, mutex=0x1aa6988, cond=0x1aa69b0) at ../../mono/utils/mono-coop-mutex.h:103
#5  mono_w32handle_timedwait_signal_naked (alerted=0x7ff903bfc580, poll=0, timeout=20000, mutex=0x1aa6988, cond=0x1aa69b0) at w32handle.c:652
#6  mono_w32handle_timedwait_signal_handle (handle_data=0x1aa6978, timeout=20000, alerted=alerted@entry=0x7ff903bfc580, poll=0) at w32handle.c:767
#7  0x00007ff943f2bee9 in mono_w32handle_wait_one (handle=handle@entry=0x1aa6978, timeout=timeout@entry=20000, alertable=alertable@entry=1) at w32handle.c:892
#8  0x00007ff943f60bbf in mono_monitor_wait (error=<optimized out>, allow_interruption=0 '\000', ms=20000, obj_handle=...) at monitor.c:1438
#9  ves_icall_System_Threading_Monitor_Monitor_wait (obj_handle=..., ms=ms@entry=20000, allow_interruption=allow_interruption@entry=0 '\000', error=error@entry=0x7ff903bfc6b0) at monitor.c:1493
#10 0x00007ff943ec2341 in ves_icall_System_Threading_Monitor_Monitor_wait_raw (a0=<optimized out>, a1=20000, a2=<optimized out>) at ../../mono/metadata/icall-def-netcore.h:481
#11 0x0000000041a8f8f1 in ?? ()
#12 0x00007ff903bfc7e0 in ?? ()
#13 0x00007ff94347bb38 in ?? ()
#14 0x00007ff8fc002580 in ?? ()
#15 0x00007ff903bfc790 in ?? ()
#16 0x00007ff903bfc740 in ?? ()
#17 0x00007ff9434647a0 in ?? ()
#18 0x0000000000000046 in ?? ()
#19 0x0000000000000038 in ?? ()
#20 0x00007ff943428900 in ?? ()
#21 0x0000000000004e20 in ?? ()
#22 0x00007ff903bfc840 in ?? ()
#23 0x0000000041a8f278 in ?? ()
#24 0x00007ff903bfc7f0 in ?? ()
#25 0x00007ff94347bb38 in ?? ()
#26 0x0000000000004e20 in ?? ()
#27 0x00007ff943428900 in ?? ()
#28 0x97d5afc86acd8100 in ?? ()
#29 0x00007ff8fc000b20 in ?? ()
#30 0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7ff9382a8700 (LWP 4599)):
#0  0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff9382a7440, expected=0, futex_word=0x1aa7298) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7ff9382a74e0, mutex=0x1aa7248, cond=0x1aa7270) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=cond@entry=0x1aa7270, mutex=mutex@entry=0x1aa7248, abstime=abstime@entry=0x7ff9382a74e0) at pthread_cond_wait.c:667
#3  0x00007ff943fb8cfb in mono_os_cond_timedwait (cond=cond@entry=0x1aa7270, mutex=mutex@entry=0x1aa7248, timeout_ms=timeout_ms@entry=20000) at mono-os-mutex.c:75
#4  0x00007ff943f2a87c in mono_coop_cond_timedwait (timeout_ms=20000, mutex=0x1aa7248, cond=0x1aa7270) at ../../mono/utils/mono-coop-mutex.h:103
#5  mono_w32handle_timedwait_signal_naked (alerted=0x7ff9382a7580, poll=0, timeout=20000, mutex=0x1aa7248, cond=0x1aa7270) at w32handle.c:652
#6  mono_w32handle_timedwait_signal_handle (handle_data=0x1aa7238, timeout=20000, alerted=alerted@entry=0x7ff9382a7580, poll=0) at w32handle.c:767
#7  0x00007ff943f2bee9 in mono_w32handle_wait_one (handle=handle@entry=0x1aa7238, timeout=timeout@entry=20000, alertable=alertable@entry=1) at w32handle.c:892
#8  0x00007ff943f60bbf in mono_monitor_wait (error=<optimized out>, allow_interruption=0 '\000', ms=20000, obj_handle=...) at monitor.c:1438
#9  ves_icall_System_Threading_Monitor_Monitor_wait (obj_handle=..., ms=ms@entry=20000, allow_interruption=allow_interruption@entry=0 '\000', error=error@entry=0x7ff9382a76b0) at monitor.c:1493
#10 0x00007ff943ec2341 in ves_icall_System_Threading_Monitor_Monitor_wait_raw (a0=<optimized out>, a1=20000, a2=<optimized out>) at ../../mono/metadata/icall-def-netcore.h:481
#11 0x0000000041a8f8f1 in ?? ()
#12 0x00007ff9382a77e0 in ?? ()
#13 0x00007ff943477e10 in ?? ()
#14 0x00007ff904002580 in ?? ()
#15 0x00007ff9382a7790 in ?? ()
#16 0x00007ff9382a7740 in ?? ()
#17 0x00007ff9434645b8 in ?? ()
#18 0x0000000000000046 in ?? ()
#19 0x0000000000000038 in ?? ()
#20 0x00007ff943428900 in ?? ()
#21 0x0000000000004e20 in ?? ()
#22 0x00007ff9382a7840 in ?? ()
#23 0x0000000041a8f278 in ?? ()
#24 0x00007ff9382a77f0 in ?? ()
#25 0x00007ff943477e10 in ?? ()
#26 0x0000000000004e20 in ?? ()
#27 0x00007ff943428900 in ?? ()
#28 0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7ff9384a9700 (LWP 4598)):
#0  0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff9384a8440, expected=0, futex_word=0x1aa6a48) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7ff9384a84e0, mutex=0x1aa69f8, cond=0x1aa6a20) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=cond@entry=0x1aa6a20, mutex=mutex@entry=0x1aa69f8, abstime=abstime@entry=0x7ff9384a84e0) at pthread_cond_wait.c:667
#3  0x00007ff943fb8cfb in mono_os_cond_timedwait (cond=cond@entry=0x1aa6a20, mutex=mutex@entry=0x1aa69f8, timeout_ms=timeout_ms@entry=20000) at mono-os-mutex.c:75
#4  0x00007ff943f2a87c in mono_coop_cond_timedwait (timeout_ms=20000, mutex=0x1aa69f8, cond=0x1aa6a20) at ../../mono/utils/mono-coop-mutex.h:103
#5  mono_w32handle_timedwait_signal_naked (alerted=0x7ff9384a8580, poll=0, timeout=20000, mutex=0x1aa69f8, cond=0x1aa6a20) at w32handle.c:652
#6  mono_w32handle_timedwait_signal_handle (handle_data=0x1aa69e8, timeout=20000, alerted=alerted@entry=0x7ff9384a8580, poll=0) at w32handle.c:767
#7  0x00007ff943f2bee9 in mono_w32handle_wait_one (handle=handle@entry=0x1aa69e8, timeout=timeout@entry=20000, alertable=alertable@entry=1) at w32handle.c:892
#8  0x00007ff943f60bbf in mono_monitor_wait (error=<optimized out>, allow_interruption=0 '\000', ms=20000, obj_handle=...) at monitor.c:1438
#9  ves_icall_System_Threading_Monitor_Monitor_wait (obj_handle=..., ms=ms@entry=20000, allow_interruption=allow_interruption@entry=0 '\000', error=error@entry=0x7ff9384a86b0) at monitor.c:1493
#10 0x00007ff943ec2341 in ves_icall_System_Threading_Monitor_Monitor_wait_raw (a0=<optimized out>, a1=20000, a2=<optimized out>) at ../../mono/metadata/icall-def-netcore.h:481
#11 0x0000000041a8f8f1 in ?? ()
#12 0x00007ff9384a87e0 in ?? ()
#13 0x00007ff943478d20 in ?? ()
#14 0x00007ff908002580 in ?? ()
#15 0x00007ff9384a8790 in ?? ()
#16 0x00007ff9384a8740 in ?? ()
#17 0x00007ff943474d00 in ?? ()
#18 0x0000000000000046 in ?? ()
#19 0x0000000000000038 in ?? ()
#20 0x00007ff943428900 in ?? ()
#21 0x0000000000004e20 in ?? ()
#22 0x00007ff9384a8840 in ?? ()
#23 0x0000000041a8f278 in ?? ()
#24 0x00007ff9384a87f0 in ?? ()
#25 0x00007ff943478d20 in ?? ()
#26 0x0000000000004e20 in ?? ()
#27 0x00007ff943428900 in ?? ()
#28 0x97d5afc86acd8100 in ?? ()
#29 0x00007ff908000b20 in ?? ()
#30 0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7ff9386aa700 (LWP 4597)):
#0  0x00007ff9456ac23a in __waitpid (pid=pid@entry=4610, stat_loc=stat_loc@entry=0x7ff9386a62d4, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007ff943e278ae in dump_native_stacktrace (mctx=mctx@entry=0x7ff9386a6e40, signal=0x7ff943ff8e85 "SIGABRT") at mini-posix.c:1083
#2  0x00007ff943e2793c in mono_dump_native_crash_info (signal=signal@entry=0x7ff943ff8e85 "SIGABRT", mctx=mctx@entry=0x7ff9386a6e40, info=info@entry=0x7ff9386a7130) at mini-posix.c:1129
#3  0x00007ff943dbb989 in mono_handle_native_crash (signal=signal@entry=0x7ff943ff8e85 "SIGABRT", mctx=mctx@entry=0x7ff9386a6e40, info=info@entry=0x7ff9386a7130) at mini-exceptions.c:3428
#4  0x00007ff943e26b4b in sigabrt_signal_handler (_dummy=<optimized out>, _info=0x7ff9386a7130, context=0x7ff9386a7000) at mini-posix.c:234
#5  <signal handler called>
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007ff9447a6801 in __GI_abort () at abort.c:79
#8  0x00007ff943fce5b7 in monoeg_assert_abort () at goutput.c:57
#9  0x00007ff943fb3a03 in mono_log_write_logfile (log_domain=<optimized out>, level=<optimized out>, hdr=<optimized out>, message=0x7ff910006530 "* Assertion at class-init.c:3930, condition `klass->instance_size == instance_size' not met\n") at mono-log-common.c:136
#10 0x00007ff943fce538 in monoeg_g_logstr (msg=<optimized out>, log_level=G_LOG_LEVEL_ERROR, log_domain=0x0) at goutput.c:134
#11 monoeg_g_logv_nofree (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x7ff944043218 "* Assertion at %s:%d, condition `%s' not met\n", args=args@entry=0x7ff9386a8050) at goutput.c:149
#12 0x00007ff943fcea33 in monoeg_assertion_message (format=format@entry=0x7ff944043218 "* Assertion at %s:%d, condition `%s' not met\n") at goutput.c:184
#13 0x00007ff943fcea6a in mono_assertion_message (file=file@entry=0x7ff94400a701 "class-init.c", line=line@entry=3930, condition=condition@entry=0x7ff94400b180 "klass->instance_size == instance_size") at goutput.c:203
#14 0x00007ff943e97e60 in mono_class_layout_fields (klass=klass@entry=0x2230c08, base_instance_size=base_instance_size@entry=16, packing_size=0, explicit_size=<optimized out>, sre=sre@entry=0) at class-init.c:3930
#15 0x00007ff943e966c7 in mono_class_setup_fields (klass=klass@entry=0x2230c08) at class-init.c:369
#16 0x00007ff943e8ff46 in mono_class_get_field_idx (idx=57, klass=0x2230c08) at class.c:2232
#17 mono_class_get_field (klass=klass@entry=0x2230c08, field_token=field_token@entry=67108922) at class.c:2282
#18 0x00007ff943eccadc in mono_field_from_token_checked (image=image@entry=0x1aaef30, token=token@entry=67108922, retklass=retklass@entry=0x7ff9386a85d8, context=context@entry=0x0, error=0x7ff910002ae8) at loader.c:400
#19 0x00007ff943d548c3 in mono_method_to_ir (cfg=cfg@entry=0x7ff910002600, method=method@entry=0x1d5c748, start_bblock=<optimized out>, start_bblock@entry=0x0, end_bblock=<optimized out>, end_bblock@entry=0x0, return_var=return_var@entry=0x0, inline_args=inline_args@entry=0x0, inline_offset=<optimized out>, is_virtual_call=<optimized out>) at method-to-ir.c:9121
#20 0x00007ff943d31823 in mini_method_compile (method=method@entry=0x1d5c748, opts=opts@entry=374434303, domain=domain@entry=0x1aaaf20, flags=flags@entry=JIT_FLAG_RUN_CCTORS, parts=parts@entry=0, aot_method_index=aot_method_index@entry=-1) at mini.c:3467
#21 0x00007ff943d33742 in mono_jit_compile_method_inner (method=method@entry=0x1d5c748, target_domain=target_domain@entry=0x1aaaf20, opt=opt@entry=374434303, error=error@entry=0x7ff9386a8a90) at mini.c:4060
#22 0x00007ff943d36d4d in mono_jit_compile_method_with_opt (method=method@entry=0x1d5c748, opt=374434303, jit_only=jit_only@entry=0, error=error@entry=0x7ff9386a8a90) at mini-runtime.c:2447
#23 0x00007ff943d37c8c in mono_jit_compile_method (method=method@entry=0x1d5c748, error=error@entry=0x7ff9386a8a90) at mini-runtime.c:2497
#24 0x00007ff943dbee26 in common_call_trampoline (regs=regs@entry=0x7ff9386a8b58, code=code@entry=0x41afcbcb "3\300H\211\205\060\376\377\377H\211\205\070\376\377\377H\213\305H\005\060\376\377\377H\213\215\300\375\377\377H\211\215\350\376\377\377H\213\215\310\375\377\377H\211\215\360\376\377\377H\213\215\350\376\377\377H\211\215\060\376\377\377H\213\320H\301\352\tH\201\342\377\377\177", m=m@entry=0x1d5c748, vt=vt@entry=0x0, vtable_slot=<optimized out>, vtable_slot@entry=0x0, error=error@entry=0x7ff9386a8a90) at mini-trampolines.c:635
#25 0x00007ff943dbf910 in mono_magic_trampoline (regs=0x7ff9386a8b58, code=0x41afcbcb "3\300H\211\205\060\376\377\377H\211\205\070\376\377\377H\213\305H\005\060\376\377\377H\213\215\300\375\377\377H\211\215\350\376\377\377H\213\215\310\375\377\377H\211\215\360\376\377\377H\213\215\350\376\377\377H\211\215\060\376\377\377H\213\320H\301\352\tH\201\342\377\377\177", arg=0x1d5c748, tramp=<optimized out>) at mini-trampolines.c:773
#26 0x0000000041dcc393 in ?? ()
#27 0x00007ff910002585 in ?? ()
#28 0x0000000041af615b in ?? ()
#29 0x00007ff9386a8d20 in ?? ()
#30 0x00007ff9386a8b58 in ?? ()
#31 0x00007ff910001d20 in ?? ()
#32 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7ff9388ab700 (LWP 4595)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ff9456a4098 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x7ff9442ba2a0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:113
#2  0x00007ff943ecc7b4 in mono_os_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:105
#3  mono_coop_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-coop-mutex.h:57
#4  mono_loader_lock () at loader.c:144
#5  0x00007ff943e941c9 in mono_class_create_from_typedef (image=0x2190430, type_token=33554506, error=0x7ff90c0055e8) at class-init.c:438
#6  0x00007ff943e8f65d in mono_class_get_checked (image=image@entry=0x2190430, type_token=type_token@entry=33554506, error=error@entry=0x7ff90c0055e8) at class.c:2738
#7  0x00007ff943e8ec79 in mono_class_from_name_checked_aux (image=0x2190430, name_space=0x7ff9390cf788 "System.Net.Sockets", name=0x7ff9390d1d2d "SocketError", visited_images=0x7ff90c004d40, case_sensitive=1, error=0x7ff90c0055e8) at class.c:3253
#8  0x00007ff943e8f0a4 in mono_class_from_name_checked (image=0x2190430, name_space=name_space@entry=0x7ff9390cf788 "System.Net.Sockets", name=name@entry=0x7ff9390d1d2d "SocketError", error=error@entry=0x7ff90c0055e8) at class.c:3279
#9  0x00007ff943e8f327 in mono_class_from_typeref_checked (image=0x228ad80, type_token=16777307, error=0x7ff90c0055e8) at class.c:224
#10 0x00007ff943e8f66d in mono_class_get_checked (image=image@entry=0x228ad80, type_token=16777307, error=error@entry=0x7ff90c0055e8) at class.c:2741
#11 0x00007ff943ee8a16 in do_mono_metadata_parse_type (error=0x7ff90c0055e8, rptr=0x7ff9388a9578, ptr=<optimized out>, transient=1, container=0x0, m=0x228ad80, type=0x7ff9388a95a0) at metadata.c:3994
#12 mono_metadata_parse_type_internal (m=m@entry=0x228ad80, container=container@entry=0x0, opt_attrs=opt_attrs@entry=0, transient=transient@entry=1, ptr=<optimized out>, rptr=rptr@entry=0x7ff9388a9658, error=<optimized out>) at metadata.c:1884
#13 0x00007ff943ee9a69 in mono_metadata_parse_mh_full (m=<optimized out>, container=<optimized out>, ptr=<optimized out>, error=<optimized out>) at metadata.c:4394
#14 0x00007ff943ecf182 in mono_method_get_header_internal (method=<optimized out>, error=<optimized out>) at loader.c:2091
#15 0x00007ff943ecf068 in mono_method_get_header_checked (method=<optimized out>, error=<optimized out>) at loader.c:2099
#16 0x00007ff943d312a4 in mini_method_compile (method=method@entry=0x22d5228, opts=opts@entry=374434303, domain=domain@entry=0x1aaaf20, flags=flags@entry=JIT_FLAG_RUN_CCTORS, parts=parts@entry=0, aot_method_index=aot_method_index@entry=-1) at mini.c:3277
#17 0x00007ff943d33742 in mono_jit_compile_method_inner (method=method@entry=0x22d5228, target_domain=target_domain@entry=0x1aaaf20, opt=opt@entry=374434303, error=error@entry=0x7ff9388a99b0) at mini.c:4060
#18 0x00007ff943d36d4d in mono_jit_compile_method_with_opt (method=method@entry=0x22d5228, opt=374434303, jit_only=jit_only@entry=0, error=error@entry=0x7ff9388a99b0) at mini-runtime.c:2447
#19 0x00007ff943d37c8c in mono_jit_compile_method (method=method@entry=0x22d5228, error=error@entry=0x7ff9388a99b0) at mini-runtime.c:2497
#20 0x00007ff943dbee26 in common_call_trampoline (regs=regs@entry=0x7ff9388a9a78, code=code@entry=0x41b17bb0 "\311\303\350IF+", m=m@entry=0x22d5228, vt=vt@entry=0x0, vtable_slot=<optimized out>, vtable_slot@entry=0x0, error=error@entry=0x7ff9388a99b0) at mini-trampolines.c:635
#21 0x00007ff943dbf910 in mono_magic_trampoline (regs=0x7ff9388a9a78, code=0x41b17bb0 "\311\303\350IF+", arg=0x22d5228, tramp=<optimized out>) at mini-trampolines.c:773
#22 0x0000000041dcc393 in ?? ()
#23 0x00007ff90c002585 in ?? ()
#24 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7ff938aac700 (LWP 4594)):
#0  0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff938aab440, expected=0, futex_word=0x1aa7228) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7ff938aab4e0, mutex=0x1aa71d8, cond=0x1aa7200) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=cond@entry=0x1aa7200, mutex=mutex@entry=0x1aa71d8, abstime=abstime@entry=0x7ff938aab4e0) at pthread_cond_wait.c:667
#3  0x00007ff943fb8cfb in mono_os_cond_timedwait (cond=cond@entry=0x1aa7200, mutex=mutex@entry=0x1aa71d8, timeout_ms=timeout_ms@entry=20000) at mono-os-mutex.c:75
#4  0x00007ff943f2a87c in mono_coop_cond_timedwait (timeout_ms=20000, mutex=0x1aa71d8, cond=0x1aa7200) at ../../mono/utils/mono-coop-mutex.h:103
#5  mono_w32handle_timedwait_signal_naked (alerted=0x7ff938aab580, poll=0, timeout=20000, mutex=0x1aa71d8, cond=0x1aa7200) at w32handle.c:652
#6  mono_w32handle_timedwait_signal_handle (handle_data=0x1aa71c8, timeout=20000, alerted=alerted@entry=0x7ff938aab580, poll=0) at w32handle.c:767
#7  0x00007ff943f2bee9 in mono_w32handle_wait_one (handle=handle@entry=0x1aa71c8, timeout=timeout@entry=20000, alertable=alertable@entry=1) at w32handle.c:892
#8  0x00007ff943f60bbf in mono_monitor_wait (error=<optimized out>, allow_interruption=0 '\000', ms=20000, obj_handle=...) at monitor.c:1438
#9  ves_icall_System_Threading_Monitor_Monitor_wait (obj_handle=..., ms=ms@entry=20000, allow_interruption=allow_interruption@entry=0 '\000', error=error@entry=0x7ff938aab6b0) at monitor.c:1493
#10 0x00007ff943ec2341 in ves_icall_System_Threading_Monitor_Monitor_wait_raw (a0=<optimized out>, a1=20000, a2=<optimized out>) at ../../mono/metadata/icall-def-netcore.h:481
#11 0x0000000041a8f8f1 in ?? ()
#12 0x00007ff938aab7e0 in ?? ()
#13 0x00007ff9434753a8 in ?? ()
#14 0x00007ff918002580 in ?? ()
#15 0x00007ff938aab790 in ?? ()
#16 0x00007ff938aab740 in ?? ()
#17 0x00007ff9434643d0 in ?? ()
#18 0x0000000000000046 in ?? ()
#19 0x0000000000000038 in ?? ()
#20 0x00007ff943428900 in ?? ()
#21 0x0000000000004e20 in ?? ()
#22 0x00007ff938aab840 in ?? ()
#23 0x0000000041a8f278 in ?? ()
#24 0x00007ff938aab7f0 in ?? ()
#25 0x00007ff9434753a8 in ?? ()
#26 0x0000000000004e20 in ?? ()
#27 0x00007ff943428900 in ?? ()
#28 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7ff938cad700 (LWP 4591)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ff9456a4098 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x7ff9442ba2a0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:113
#2  0x00007ff943ecc7b4 in mono_os_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:105
#3  mono_coop_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-coop-mutex.h:57
#4  mono_loader_lock () at loader.c:144
#5  0x00007ff943efe224 in mono_vtable_build_imt_slot (vtable=vtable@entry=0x7ff92c1dac68, imt_slot=4) at object.c:1711
#6  0x00007ff943dbe892 in mini_resolve_imt_method (vt=vt@entry=0x7ff92c1dac68, vtable_slot=vtable_slot@entry=0x7ff92c1dabf0, imt_method=imt_method@entry=0x7ff92402af10, impl_method=impl_method@entry=0x7ff938cab8a0, out_aot_addr=out_aot_addr@entry=0x7ff938cab890, out_need_rgctx_tramp=out_need_rgctx_tramp@entry=0x7ff938cab88c, variant_iface=0x7ff938cab898, error=0x7ff938cab930) at mini-trampolines.c:220
#7  0x00007ff943dbef31 in common_call_trampoline (regs=regs@entry=0x7ff938cab9f8, code=code@entry=0x41af832d "H\213}\270H\213\307H\213", m=0x0, vt=vt@entry=0x7ff92c1dac68, vtable_slot=0x7ff92c1dabf0, error=error@entry=0x7ff938cab930) at mini-trampolines.c:474
#8  0x00007ff943dbfb8f in mono_vcall_trampoline (regs=0x7ff938cab9f8, code=0x41af832d "H\213}\270H\213\307H\213", slot=-15, tramp=<optimized out>) at mini-trampolines.c:856
#9  0x0000000041dcd293 in ?? ()
#10 0x00007ff9140027e5 in ?? ()
#11 0x00007ff9ffffffff in ?? ()
#12 0x00007ff938cabbc0 in ?? ()
#13 0x00007ff938cab9f8 in ?? ()
#14 0x00007ff914001f80 in ?? ()
#15 0x00007ff92c1dac68 in ?? ()
#16 0x00007ff94347b060 in ?? ()
#17 0x00007ff9426193f9 in ?? ()
#18 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7ff938eae700 (LWP 4587)):
#0  0x00007ff944887bb7 in epoll_wait (epfd=8, events=0x7ff92c1d5000, maxevents=1024, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1  0x00007ff94101d653 in SystemNative_WaitForSocketEvents () from /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/System.Native.so
#2  0x0000000041ae0b1f in ?? ()
#3  0x00007ff920000b20 in ?? ()
#4  0x00007ff94347ebe8 in ?? ()
#5  0x00007ff920002580 in ?? ()
#6  0x00007ff938ead970 in ?? ()
#7  0x00007ff938ead910 in ?? ()
#8  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7ff9390af700 (LWP 4586)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ff9456a4098 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x7ff9442ba2a0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:113
#2  0x00007ff943ecc7b4 in mono_os_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:105
#3  mono_coop_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-coop-mutex.h:57
#4  mono_loader_lock () at loader.c:144
#5  0x00007ff943dc6520 in mono_class_get_runtime_generic_context_template (klass=<optimized out>) at mini-generic-sharing.c:807
#6  0x00007ff943dc686e in class_get_rgctx_template_oti (klass=0x22dce78, type_argc=0, slot=slot@entry=0, temporary=temporary@entry=1, shared=shared@entry=1, do_free=0x7ff9390ae39c) at mini-generic-sharing.c:897
#7  0x00007ff943dcc2ca in fill_runtime_generic_context (rgctx=<optimized out>, rgctx@entry=0x7ff92c0bd808, slot=slot@entry=0, method_inst=method_inst@entry=0x0, is_mrgctx=is_mrgctx@entry=0, error=0x7ff9390ae450, class_vtable=<optimized out>, class_vtable=<optimized out>) at mini-generic-sharing.c:2913
#8  0x00007ff943dcc412 in mono_class_fill_runtime_generic_context (class_vtable=0x7ff92c1db4a8, slot=0, error=0x7ff9390ae450) at mini-generic-sharing.c:2975
#9  0x00007ff943dbe3ad in mono_rgctx_lazy_fetch_trampoline (regs=<optimized out>, code=<optimized out>, data=<optimized out>, tramp=<optimized out>) at mini-trampolines.c:1011
#10 0x0000000041dcc893 in ?? ()
#11 0x00007ff91c002585 in ?? ()
#12 0x00007ff943f12f9c in mono_thread_interruption_checkpoint_request (bypass_abort_protection=1128479088) at threads.c:5180
#13 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7ff93993e700 (LWP 4585)):
#0  0x00007ff9456ab384 in __libc_read (fd=5, buf=0x7ff93993debf, nbytes=1) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007ff94101edaf in ?? () from /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/System.Native.so
#2  0x00007ff9456a16db in start_thread (arg=0x7ff93993e700) at pthread_create.c:463
#3  0x00007ff94488788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7ff939b3f700 (LWP 4584)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ff9456a4098 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x7ff9442ba2a0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:113
#2  0x00007ff943ecc7b4 in mono_os_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:105
#3  mono_coop_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-coop-mutex.h:57
#4  mono_loader_lock () at loader.c:144
#5  0x00007ff943dc6520 in mono_class_get_runtime_generic_context_template (klass=<optimized out>) at mini-generic-sharing.c:807
#6  0x00007ff943dc686e in class_get_rgctx_template_oti (klass=0x22dce78, type_argc=0, slot=slot@entry=0, temporary=temporary@entry=1, shared=shared@entry=1, do_free=0x7ff939b3e39c) at mini-generic-sharing.c:897
#7  0x00007ff943dcc2ca in fill_runtime_generic_context (rgctx=<optimized out>, rgctx@entry=0x7ff92c0bd808, slot=slot@entry=0, method_inst=method_inst@entry=0x0, is_mrgctx=is_mrgctx@entry=0, error=0x7ff939b3e450, class_vtable=<optimized out>, class_vtable=<optimized out>) at mini-generic-sharing.c:2913
#8  0x00007ff943dcc412 in mono_class_fill_runtime_generic_context (class_vtable=0x7ff92c1db4a8, slot=0, error=0x7ff939b3e450) at mini-generic-sharing.c:2975
#9  0x00007ff943dbe3ad in mono_rgctx_lazy_fetch_trampoline (regs=<optimized out>, code=<optimized out>, data=<optimized out>, tramp=<optimized out>) at mini-trampolines.c:1011
#10 0x0000000041dcc893 in ?? ()
#11 0x00007ff924002585 in ?? ()
#12 0x00007ff943f12f9c in mono_thread_interruption_checkpoint_request (bypass_abort_protection=1128468808) at threads.c:5180
#13 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7ff939d40700 (LWP 4583)):
#0  0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff939d3f7f0, expected=0, futex_word=0x7ff9442cd0a8 <sleep_cond+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7ff939d3f890, mutex=0x7ff9442cd0c0 <sleep_mutex>, cond=0x7ff9442cd080 <sleep_cond>) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=cond@entry=0x7ff9442cd080 <sleep_cond>, mutex=mutex@entry=0x7ff9442cd0c0 <sleep_mutex>, abstime=abstime@entry=0x7ff939d3f890) at pthread_cond_wait.c:667
#3  0x00007ff943fb8cfb in mono_os_cond_timedwait (cond=cond@entry=0x7ff9442cd080 <sleep_cond>, mutex=mutex@entry=0x7ff9442cd0c0 <sleep_mutex>, timeout_ms=timeout_ms@entry=500) at mono-os-mutex.c:75
#4  0x00007ff943fc40c8 in mono_coop_cond_timedwait (cond=0x7ff9442cd080 <sleep_cond>, mutex=0x7ff9442cd0c0 <sleep_mutex>, timeout_ms=500) at ../../mono/utils/mono-coop-mutex.h:103
#5  sleep_interruptable (alerted=0x7ff939d3f984, ms=500) at mono-threads.c:1640
#6  mono_thread_info_sleep (ms=ms@entry=500, alerted=alerted@entry=0x7ff939d3f984) at mono-threads.c:1672
#7  0x00007ff943f16315 in mono_sleep_internal (error=0x7ff943428d48, allow_interruption=<optimized out>, ms=500) at threads.c:1807
#8  ves_icall_System_Threading_Thread_Sleep_internal (ms=ms@entry=500, allow_interruption=allow_interruption@entry=1 '\001', error=error@entry=0x7ff939d3fa00) at threads.c:1840
#9  0x00007ff943ec32b3 in ves_icall_System_Threading_Thread_Sleep_internal_raw (a0=500, a1=<optimized out>) at ../../mono/metadata/icall-def-netcore.h:507
#10 0x0000000041a82c96 in ?? ()
#11 0x00007ff930002580 in ?? ()
#12 0x00007ff939d3fad0 in ?? ()
#13 0x00007ff939d3fa90 in ?? ()
#14 0x00007ff943428cc8 in ?? ()
#15 0x0000000001d43330 in ?? ()
#16 0x00007ff939d3fe60 in ?? ()
#17 0x00007ff943428cc8 in ?? ()
#18 0x00000000000001f4 in ?? ()
#19 0x00007ff939d3fb10 in ?? ()
#20 0x0000000041a82b8c in ?? ()
#21 0x00007ff943428cc8 in ?? ()
#22 0x00007ff943428ca0 in ?? ()
#23 0x00007ff939d3fb10 in ?? ()
#24 0x0000000041a8210c in ?? ()
#25 0x00007ff943428cc8 in ?? ()
#26 0x00007ff943428d48 in ?? ()
#27 0x00007ff939d3fba0 in ?? ()
#28 0x0000000041a81adc in ?? ()
#29 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7ff939f41700 (LWP 4581)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ff9456a4098 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x7ff9442ba2a0 <loader_mutex>) at ../nptl/pthread_mutex_lock.c:113
#2  0x00007ff943ecc7b4 in mono_os_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-os-mutex.h:105
#3  mono_coop_mutex_lock (mutex=0x7ff9442ba2a0 <loader_mutex>) at ../../mono/utils/mono-coop-mutex.h:57
#4  mono_loader_lock () at loader.c:144
#5  0x00007ff943e941c9 in mono_class_create_from_typedef (image=0x1ab0570, type_token=33555637, error=0x7ff92c1a3ac8) at class-init.c:438
#6  0x00007ff943e8f65d in mono_class_get_checked (image=image@entry=0x1ab0570, type_token=type_token@entry=33555637, error=error@entry=0x7ff92c1a3ac8) at class.c:2738
#7  0x00007ff943e8ec79 in mono_class_from_name_checked_aux (image=0x1ab0570, name_space=0x7ff9390d029d "System.Collections.Generic", name=0x7ff9390d0166 "Dictionary`2", visited_images=0x7ff92c1b99d0, case_sensitive=1, error=0x7ff92c1a3ac8) at class.c:3253
#8  0x00007ff943e8ee25 in mono_class_from_name_checked_aux (image=0x1c30560, name_space=0x7ff9390d029d "System.Collections.Generic", name=0x7ff9390d0166 "Dictionary`2", visited_images=0x7ff92c1b99d0, case_sensitive=1, error=0x7ff92c1a3ac8) at class.c:3242
#9  0x00007ff943e8f0a4 in mono_class_from_name_checked (image=0x1c30560, name_space=name_space@entry=0x7ff9390d029d "System.Collections.Generic", name=name@entry=0x7ff9390d0166 "Dictionary`2", error=error@entry=0x7ff92c1a3ac8) at class.c:3279
#10 0x00007ff943e8f327 in mono_class_from_typeref_checked (image=0x228ad80, type_token=16777382, error=0x7ff92c1a3ac8) at class.c:224
#11 0x00007ff943e8f66d in mono_class_get_checked (image=image@entry=0x228ad80, type_token=16777382, error=error@entry=0x7ff92c1a3ac8) at class.c:2741
#12 0x00007ff943ee8a16 in do_mono_metadata_parse_type (error=0x7ff92c1a3ac8, rptr=0x7ff939f3e778, ptr=<optimized out>, transient=0, container=0x0, m=0x228ad80, type=0x7ff939f3e7a0) at metadata.c:3994
#13 mono_metadata_parse_type_internal (m=m@entry=0x228ad80, container=container@entry=0x0, opt_attrs=opt_attrs@entry=0, transient=transient@entry=0, ptr=<optimized out>, rptr=rptr@entry=0x7ff939f3e858, error=<optimized out>) at metadata.c:1884
#14 0x00007ff943ee8740 in mono_metadata_parse_type_checked (error=0x7ff92c1a3ac8, rptr=<optimized out>, ptr=<optimized out>, transient=0, opt_attrs=0, container=0x0, m=0x228ad80) at metadata.c:1938
#15 do_mono_metadata_parse_generic_class (type=0x7ff939f3e860, error=<optimized out>, rptr=<optimized out>, ptr=0x7ff9390e9381 "\022\202\231\002\021\201m\021\f\b\001", container=0x0, m=0x228ad80) at metadata.c:3616
#16 do_mono_metadata_parse_type (error=0x7ff92c1a3ac8, rptr=0x7ff939f3e838, ptr=<optimized out>, transient=1, container=0x0, m=0x228ad80, type=0x7ff939f3e860) at metadata.c:4047
#17 mono_metadata_parse_type_internal (m=m@entry=0x228ad80, container=container@entry=0x0, opt_attrs=opt_attrs@entry=0, transient=transient@entry=1, ptr=<optimized out>, rptr=rptr@entry=0x7ff939f3e8d8, error=<optimized out>) at metadata.c:1884
#18 0x00007ff943eea2aa in mono_metadata_parse_type_checked (error=0x7ff92c1a3ac8, rptr=0x7ff939f3e8d8, ptr=<optimized out>, transient=1, opt_attrs=0, container=0x0, m=0x228ad80) at metadata.c:1938
#19 mono_type_create_from_typespec_checked (image=0x228ad80, type_spec=<optimized out>, error=error@entry=0x7ff92c1a3ac8) at metadata.c:6438
#20 0x00007ff943e8f67d in mono_type_retrieve_from_typespec (error=0x7ff92c1a3ac8, did_inflate=<synthetic pointer>, context=0x0, type_spec=452984917, image=0x228ad80) at class.c:2099
#21 mono_class_create_from_typespec (context=0x0, error=0x7ff92c1a3ac8, type_spec=452984917, image=0x228ad80) at class.c:2132
#22 mono_class_get_checked (image=image@entry=0x228ad80, type_token=type_token@entry=452984917, error=error@entry=0x7ff92c1a3ac8) at class.c:2744
#23 0x00007ff943e8f78a in mono_class_get_and_inflate_typespec_checked (image=image@entry=0x228ad80, type_token=type_token@entry=452984917, context=context@entry=0x0, error=error@entry=0x7ff92c1a3ac8) at class.c:2703
#24 0x00007ff943ece460 in method_from_memberref (image=image@entry=0x228ad80, idx=<optimized out>, typespec_context=typespec_context@entry=0x0, used_context=used_context@entry=0x7ff939f3ea1c, error=error@entry=0x7ff92c1a3ac8) at loader.c:893
#25 0x00007ff943ece872 in mono_get_method_from_token (error=0x7ff92c1a3ac8, used_context=0x7ff939f3ea1c, context=0x0, klass=0x0, token=167772637, image=0x228ad80) at loader.c:1071
#26 mono_get_method_checked (image=0x228ad80, token=<optimized out>, klass=klass@entry=0x0, context=0x0, error=0x7ff92c1a3ac8) at loader.c:1218
#27 0x00007ff943d2088f in mini_get_method_allow_open (m=<optimized out>, token=<optimized out>, context=<optimized out>, error=<optimized out>, klass=0x0) at method-to-ir.c:4829
#28 0x00007ff943d208cf in mini_get_method (cfg=cfg@entry=0x7ff92c1a35e0, m=m@entry=0x22d52e0, token=token@entry=167772637, context=context@entry=0x0, klass=0x0) at method-to-ir.c:4839
#29 0x00007ff943d60184 in mono_method_to_ir (cfg=cfg@entry=0x7ff92c1a35e0, method=method@entry=0x22d52e0, start_bblock=<optimized out>, start_bblock@entry=0x0, end_bblock=<optimized out>, end_bblock@entry=0x0, return_var=return_var@entry=0x0, inline_args=inline_args@entry=0x0, inline_offset=<optimized out>, is_virtual_call=<optimized out>) at method-to-ir.c:8581
#30 0x00007ff943d31823 in mini_method_compile (method=method@entry=0x22d52e0, opts=opts@entry=374434303, domain=domain@entry=0x1aaaf20, flags=flags@entry=JIT_FLAG_RUN_CCTORS, parts=parts@entry=0, aot_method_index=aot_method_index@entry=-1) at mini.c:3467
#31 0x00007ff943d33742 in mono_jit_compile_method_inner (method=method@entry=0x22d52e0, target_domain=target_domain@entry=0x1aaaf20, opt=opt@entry=374434303, error=error@entry=0x7ff92c1a7458) at mini.c:4060
#32 0x00007ff943d36d4d in mono_jit_compile_method_with_opt (method=method@entry=0x22d52e0, opt=374434303, jit_only=jit_only@entry=1, error=error@entry=0x7ff92c1a7458) at mini-runtime.c:2447
#33 0x00007ff943d37cbf in mono_jit_compile_method_jit_only (method=method@entry=0x22d52e0, error=error@entry=0x7ff92c1a7458) at mini-runtime.c:2511
#34 0x00007ff943d386a7 in mono_jit_runtime_invoke (method=0x22d52e0, obj=<optimized out>, params=0x0, exc=0x7ff939f3f2e8, error=0x7ff92c1a7458) at mini-runtime.c:3053
#35 0x00007ff943efc4fc in do_runtime_invoke (method=0x22d52e0, obj=<optimized out>, params=<optimized out>, exc=<optimized out>, error=0x7ff92c1a7458) at object.c:3052
#36 0x00007ff943f03f2f in mono_runtime_class_init_full (vtable=vtable@entry=0x7ff92c0bd2e8, error=0x7ff92c1a7458) at object.c:551
#37 0x00007ff943d56758 in mono_method_to_ir (cfg=cfg@entry=0x7ff92c1a6f70, method=method@entry=0x22d5228, start_bblock=<optimized out>, start_bblock@entry=0x0, end_bblock=<optimized out>, end_bblock@entry=0x0, return_var=return_var@entry=0x0, inline_args=inline_args@entry=0x0, inline_offset=<optimized out>, is_virtual_call=<optimized out>) at method-to-ir.c:9509
#38 0x00007ff943d31823 in mini_method_compile (method=method@entry=0x22d5228, opts=opts@entry=374434303, domain=domain@entry=0x1aaaf20, flags=flags@entry=JIT_FLAG_RUN_CCTORS, parts=parts@entry=0, aot_method_index=aot_method_index@entry=-1) at mini.c:3467
#39 0x00007ff943d33742 in mono_jit_compile_method_inner (method=method@entry=0x22d5228, target_domain=target_domain@entry=0x1aaaf20, opt=opt@entry=374434303, error=error@entry=0x7ff939f3f9b0) at mini.c:4060
#40 0x00007ff943d36d4d in mono_jit_compile_method_with_opt (method=method@entry=0x22d5228, opt=374434303, jit_only=jit_only@entry=0, error=error@entry=0x7ff939f3f9b0) at mini-runtime.c:2447
#41 0x00007ff943d37c8c in mono_jit_compile_method (method=method@entry=0x22d5228, error=error@entry=0x7ff939f3f9b0) at mini-runtime.c:2497
#42 0x00007ff943dbee26 in common_call_trampoline (regs=regs@entry=0x7ff939f3fa78, code=code@entry=0x41b17bb0 "\311\303\350IF+", m=m@entry=0x22d5228, vt=vt@entry=0x0, vtable_slot=<optimized out>, vtable_slot@entry=0x0, error=error@entry=0x7ff939f3f9b0) at mini-trampolines.c:635
#43 0x00007ff943dbf910 in mono_magic_trampoline (regs=0x7ff939f3fa78, code=0x41b17bb0 "\311\303\350IF+", arg=0x22d5228, tramp=<optimized out>) at mini-trampolines.c:773
#44 0x0000000041dcc393 in ?? ()
#45 0x00007ff92c002585 in ?? ()
#46 0x97d5afc86acd8100 in ?? ()
#47 0x00007ff939f3fc40 in ?? ()
#48 0x00007ff939f3fa78 in ?? ()
#49 0x00007ff92c001d20 in ?? ()
#50 0x00007ff9442d2740 in ?? () from /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so
#51 0x00007ff943461d18 in ?? ()
#52 0x00007ff944042900 in ?? () from /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so
#53 0x00007ff9434678f0 in ?? ()
#54 0x00007ff939f3fc40 in ?? ()
#55 0x00007ff939f3fc50 in ?? ()
#56 0x00007ff944041800 in ?? () from /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so
#57 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff9405a4700 (LWP 4580)):
#0  0x00007ff9456a7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ff9405a30d0, expected=0, futex_word=0x1aa3cc8) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7ff9405a3170, mutex=0x1aa3c78, cond=0x1aa3ca0) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=cond@entry=0x1aa3ca0, mutex=mutex@entry=0x1aa3c78, abstime=abstime@entry=0x7ff9405a3170) at pthread_cond_wait.c:667
#3  0x00007ff943fb8cfb in mono_os_cond_timedwait (cond=cond@entry=0x1aa3ca0, mutex=mutex@entry=0x1aa3c78, timeout_ms=timeout_ms@entry=188) at mono-os-mutex.c:75
#4  0x00007ff943f2a87c in mono_coop_cond_timedwait (timeout_ms=188, mutex=0x1aa3c78, cond=0x1aa3ca0) at ../../mono/utils/mono-coop-mutex.h:103
#5  mono_w32handle_timedwait_signal_naked (alerted=0x7ff9405a3210, poll=0, timeout=188, mutex=0x1aa3c78, cond=0x1aa3ca0) at w32handle.c:652
#6  mono_w32handle_timedwait_signal_handle (handle_data=0x1aa3c68, timeout=188, alerted=alerted@entry=0x7ff9405a3210, poll=0) at w32handle.c:767
#7  0x00007ff943f2bee9 in mono_w32handle_wait_one (handle=<optimized out>, timeout=timeout@entry=188, alertable=alertable@entry=1) at w32handle.c:892
#8  0x00007ff943f2c580 in mono_w32handle_wait_multiple (handles=handles@entry=0x7ff9405a39d8, nhandles=nhandles@entry=1, waitall=waitall@entry=0, timeout=timeout@entry=188, alertable=alertable@entry=1, error=error@entry=0x7ff9405a38e0) at w32handle.c:1002
#9  0x00007ff943f1608d in ves_icall_System_Threading_WaitHandle_Wait_internal (handles=handles@entry=0x7ff9405a39d8, numhandles=numhandles@entry=1, waitall=waitall@entry=0 '\000', timeout=timeout@entry=188, error=error@entry=0x7ff9405a38e0) at threads.c:2314
#10 0x00007ff943ec35f3 in ves_icall_System_Threading_WaitHandle_Wait_internal_raw (a0=0x7ff9405a39d8, a1=1, a2=<optimized out>, a3=188) at ../../mono/metadata/icall-def-netcore.h:514
#11 0x0000000041a2ac4e in ?? ()
#12 0x00007ff934002580 in ?? ()
#13 0x00007ff9405a39c0 in ?? ()
#14 0x00007ff9405a3980 in ?? ()
#15 0x00007ff94340d150 in ?? ()
#16 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ff943a0f700 (LWP 4579)):
#0  0x00007ff9456aa6d6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x7ff9442bdd20 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1  do_futex_wait (sem=sem@entry=0x7ff9442bdd20 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:111
#2  0x00007ff9456aa7c8 in __new_sem_wait_slow (sem=sem@entry=0x7ff9442bdd20 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:181
#3  0x00007ff9456aa839 in __new_sem_wait (sem=sem@entry=0x7ff9442bdd20 <finalizer_sem>) at sem_wait.c:42
#4  0x00007ff943f5cb88 in mono_os_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0x7ff9442bdd20 <finalizer_sem>) at ../../mono/utils/mono-os-semaphore.h:203
#5  mono_coop_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0x7ff9442bdd20 <finalizer_sem>) at ../../mono/utils/mono-coop-semaphore.h:41
#6  finalizer_thread (unused=unused@entry=0x0) at gc.c:965
#7  0x00007ff943f18851 in start_wrapper_internal (stack_ptr=0x7ff943a10000, start_info=0x0) at threads.c:1232
#8  start_wrapper (data=0x1b085c0) at threads.c:1305
#9  0x00007ff9456a16db in start_thread (arg=0x7ff943a0f700) at pthread_create.c:463
#10 0x00007ff94488788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7ff9433ff700 (LWP 4578)):
#0  0x00007ff9456a79f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7ff9442cc5e8 <work_cond+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7ff9442cc600 <lock>, cond=0x7ff9442cc5c0 <work_cond>) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x7ff9442cc5c0 <work_cond>, mutex=mutex@entry=0x7ff9442cc600 <lock>) at pthread_cond_wait.c:655
#3  0x00007ff943fa841a in mono_os_cond_wait (mutex=0x7ff9442cc600 <lock>, cond=0x7ff9442cc5c0 <work_cond>) at ../../mono/utils/mono-os-mutex.h:219
#4  get_work (job=<synthetic pointer>, do_idle=<synthetic pointer>, work_context=<synthetic pointer>, worker_index=0) at sgen-thread-pool.c:165
#5  thread_func (data=<optimized out>) at sgen-thread-pool.c:196
#6  0x00007ff9456a16db in start_thread (arg=0x7ff9433ff700) at pthread_create.c:463
#7  0x00007ff94488788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ff945acf740 (LWP 4574)):
#0  0x00007ff9456a79f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1aa4198) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x1aa4148, cond=0x1aa4170) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x1aa4170, mutex=0x1aa4148) at pthread_cond_wait.c:655
#3  0x00007ff943fb8d5d in mono_os_cond_wait (mutex=<optimized out>, cond=<optimized out>) at mono-os-mutex.h:219
#4  mono_os_cond_timedwait (cond=cond@entry=0x1aa4170, mutex=mutex@entry=0x1aa4148, timeout_ms=timeout_ms@entry=4294967295) at mono-os-mutex.c:32
#5  0x00007ff943f2a87c in mono_coop_cond_timedwait (timeout_ms=4294967295, mutex=0x1aa4148, cond=0x1aa4170) at ../../mono/utils/mono-coop-mutex.h:103
#6  mono_w32handle_timedwait_signal_naked (alerted=0x7ffc76b4ef40, poll=0, timeout=4294967295, mutex=0x1aa4148, cond=0x1aa4170) at w32handle.c:652
#7  mono_w32handle_timedwait_signal_handle (handle_data=0x1aa4138, timeout=timeout@entry=4294967295, alerted=alerted@entry=0x7ffc76b4ef40, poll=0) at w32handle.c:767
#8  0x00007ff943f2be8f in mono_w32handle_wait_one (handle=handle@entry=0x1aa4138, timeout=timeout@entry=4294967295, alertable=alertable@entry=1) at w32handle.c:882
#9  0x00007ff943f60bbf in mono_monitor_wait (error=<optimized out>, allow_interruption=1 '\001', ms=4294967295, obj_handle=...) at monitor.c:1438
#10 ves_icall_System_Threading_Monitor_Monitor_wait (obj_handle=..., ms=ms@entry=4294967295, allow_interruption=allow_interruption@entry=1 '\001', error=error@entry=0x7ffc76b4f070) at monitor.c:1493
#11 0x00007ff943ec2341 in ves_icall_System_Threading_Monitor_Monitor_wait_raw (a0=<optimized out>, a1=4294967295, a2=<optimized out>) at ../../mono/metadata/icall-def-netcore.h:481
#12 0x0000000041a8f8f1 in ?? ()
#13 0x00007ffc76b4e0d0 in ?? ()
#14 0x00007ff943464f78 in ?? ()
#15 0x0000000001ae9cc0 in ?? ()
#16 0x00007ffc76b4f150 in ?? ()
#17 0x00007ffc76b4f100 in ?? ()
#18 0x00007ff943464f78 in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0x00007ff943464f78 in ?? ()
#21 0xffffffffffffffff in ?? ()
#22 0x00007ff943464f78 in ?? ()
#23 0x00007ffc76b4f180 in ?? ()
#24 0x0000000041adf2a0 in ?? ()
#25 0x0000000041adf22c in ?? ()
#26 0x00007ff943f15e90 in ?? () at threads.c:5212 from /home/yangfan/fanyang/mono_latest/mono/.dotnet/shared/Microsoft.NETCore.App/5.0.0-alpha1.19507.3/libcoreclr.so
#27 0x0000000000000000 in ?? ()

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7ff9447a4e97):0x7ff9447a4e87  d2 4c 89 ce bf 02 00 00 00 b8 0e 00 00 00 0f 05  .L..............
0x7ff9447a4e97  48 8b 8c 24 08 01 00 00 64 48 33 0c 25 28 00 00  H..$....dH3.%(..
0x7ff9447a4ea7  00 44 89 c0 75 1f 48 81 c4 18 01 00 00 c3 0f 1f  .D..u.H.........
0x7ff9447a4eb7  00 48 8b 15 a9 bf 3a 00 f7 d8 41 b8 ff ff ff ff  .H....:...A.....

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at <ProcessRequestsAsync>d__35:MoveNext <0x0026a>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000ea>
	  at PlatformBenchmarks.BenchmarkApplication:ProcessRequestsAsync <0x000e3>
	  at <ExecuteAsync>d__34:MoveNext <0x0009a>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000d2>
	  at PlatformBenchmarks.BenchmarkApplication:ExecuteAsync <0x000c7>
	  at PlatformBenchmarks.HttpApplication`1:ExecuteAsync <0x000ce>
	  at <ExecuteAsync>d__32:MoveNext <0x00238>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0010f>
	  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection:ExecuteAsync <0x000cb>
	  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection:System.Threading.IThreadPoolWorkItem.Execute <0x0002f>
	  at System.Threading.ThreadPoolWorkQueue:Dispatch <0x0033d>
	  at WorkerThread:WorkerThreadStart <0x0010b>
	  at System.Threading.Thread:StartCallback <0x000af>
	  at System.Object:runtime_invoke_void__this__ <0x00091>
=================================================================
@CoffeeFlux CoffeeFlux changed the title On ubuntu 18.04, encountered an assertion [metadata] Crash on Ubuntu, Assertion at class-init.c:3930 Dec 9, 2019
@CoffeeFlux
Copy link
Contributor

Have you run this benchmark setup before without this crash? Can it be reproduced on the last stable? I'm wondering if this is a recent regression or just a new bug.

@fanyang-mono
Copy link
Contributor Author

I was able to run it before. The latest run is the Thanksgiving week. I haven't tried the latest stable yet. How to find the latest stable? Do you know which commit hash it came from?

@CoffeeFlux
Copy link
Contributor

If you've been building off master I wouldn't worry about trying the latest stable. I would git bisect from the last known good commit and try to find the commit that broke this, since it sounds like it's a fairly recent regression.

@fanyang-mono
Copy link
Contributor Author

I take it back. I just tried the mono version I used for the past two sprint. I have been seeing them there too for some reason.

@CoffeeFlux
Copy link
Contributor

The relevant part of the stack trace is:

#14 0x00007ff943e97e60 in mono_class_layout_fields (klass=klass@entry=0x2230c08, base_instance_size=base_instance_size@entry=16, packing_size=0, explicit_size=<optimized out>, sre=sre@entry=0) at class-init.c:3930
#15 0x00007ff943e966c7 in mono_class_setup_fields (klass=klass@entry=0x2230c08) at class-init.c:369
#16 0x00007ff943e8ff46 in mono_class_get_field_idx (idx=57, klass=0x2230c08) at class.c:2232
#17 mono_class_get_field (klass=klass@entry=0x2230c08, field_token=field_token@entry=67108922) at class.c:2282
#18 0x00007ff943eccadc in mono_field_from_token_checked (image=image@entry=0x1aaef30, token=token@entry=67108922, retklass=retklass@entry=0x7ff9386a85d8, context=context@entry=0x0, error=0x7ff910002ae8) at loader.c:400
#19 0x00007ff943d548c3 in mono_method_to_ir (cfg=cfg@entry=0x7ff910002600, method=method@entry=0x1d5c748, start_bblock=<optimized out>, start_bblock@entry=0x0, end_bblock=<optimized out>, end_bblock@entry=0x0, return_var=return_var@entry=0x0, inline_args=inline_args@entry=0x0, inline_offset=<optimized out>, is_virtual_call=<optimized out>) at method-to-ir.c:9121
#20 0x00007ff943d31823 in mini_method_compile (method=method@entry=0x1d5c748, opts=opts@entry=374434303, domain=domain@entry=0x1aaaf20, flags=flags@entry=JIT_FLAG_RUN_CCTORS, parts=parts@entry=0, aot_method_index=aot_method_index@entry=-1) at mini.c:3467
#21 0x00007ff943d33742 in mono_jit_compile_method_inner (method=method@entry=0x1d5c748, target_domain=target_domain@entry=0x1aaaf20, opt=opt@entry=374434303, error=error@entry=0x7ff9386a8a90) at mini.c:4060
#22 0x00007ff943d36d4d in mono_jit_compile_method_with_opt (method=method@entry=0x1d5c748, opt=374434303, jit_only=jit_only@entry=0, error=error@entry=0x7ff9386a8a90) at mini-runtime.c:2447
#23 0x00007ff943d37c8c in mono_jit_compile_method (method=method@entry=0x1d5c748, error=error@entry=0x7ff9386a8a90) at mini-runtime.c:2497
#24 0x00007ff943dbee26 in common_call_trampoline (regs=regs@entry=0x7ff9386a8b58, code=code@entry=0x41afcbcb "3\300H\211\205\060\376\377\377H\211\205\070\376\377\377H\213\305H\005\060\376\377\377H\213\215\300\375\377\377H\211\215\350\376\377\377H\213\215\310\375\377\377H\211\215\360\376\377\377H\213\215\350\376\377\377H\211\215\060\376\377\377H\213\320H\301\352\tH\201\342\377\377\177", m=m@entry=0x1d5c748, vt=vt@entry=0x0, vtable_slot=<optimized out>, vtable_slot@entry=0x0, error=error@entry=0x7ff9386a8a90) at mini-trampolines.c:635
#25 0x00007ff943dbf910 in mono_magic_trampoline (regs=0x7ff9386a8b58, code=0x41afcbcb "3\300H\211\205\060\376\377\377H\211\205\070\376\377\377H\213\305H\005\060\376\377\377H\213\215\300\375\377\377H\211\215\350\376\377\377H\213\215\310\375\377\377H\211\215\360\376\377\377H\213\215\350\376\377\377H\211\215\060\376\377\377H\213\320H\301\352\tH\201\342\377\377\177", arg=0x1d5c748, tramp=<optimized out>) at mini-trampolines.c:773

@CoffeeFlux CoffeeFlux changed the title [metadata] Crash on Ubuntu, Assertion at class-init.c:3930 [metadata] Crash on Ubuntu, assertion at class-init.c:3930 Dec 9, 2019
@CoffeeFlux
Copy link
Contributor

I can't seem to repro this, having followed the instructions at the top :(
Tried with Mono master and a few recent AspNetCore versions, including master.

@fanyang-mono
Copy link
Contributor Author

I can't reproduce this anymore. It seems to be caused by some artifacts from my old local repository of the test app. I am closing this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants