Repository navigation
Closed
mono/mono
#20740Closed
Copy link
Labels
Description
* Assertion at /Users/runner/work/1/s/src/mono/mono/mini/../../mono/utils/refcount.h:69, condition `refcount' 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.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0x10c017ab6 - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : mono_dump_native_crash_info
0x10bfbbf3e - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : mono_handle_native_crash
0x10c016f4f - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : sigabrt_signal_handler
0x7fff6d6c6b5d - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x10c0df000 - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : stack_type
0x7fff6d5806a6 - /usr/lib/system/libsystem_c.dylib : abort
0x10bd81a78 - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : monoeg_assert_abort
0x10be875d8 - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : mono_log_write_logfile
0x10bd81fe2 - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : monoeg_g_logv_nofree
0x10bd8215f - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : monoeg_assertion_message
0x10bd8219a - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : mono_assertion_message
0x10be2a79e - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : ves_icall_System_Threading_InternalThread_Thread_free_internal
0x10bde0b84 - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : ves_icall_System_Threading_InternalThread_Thread_free_internal_raw
0x1104b5cf8 - Unknown
0x1104b489c - Unknown
0x10be5b2eb - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : mono_gc_run_finalize
0x10beb1b25 - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : sgen_gc_invoke_finalizers
0x10be5d113 - /private/tmp/helix/working/AC9509B3/p/shared/Microsoft.NETCore.App/6.0.0/libcoreclr.dylib : finalizer_thread
Activity
jkotas commentedon Dec 24, 2020
Likely introduced by #46244
Partial rollback of #46244 to workaround #46389 (#46390)
jkotas commentedon Dec 25, 2020
I have rolled back Mono specific part of #46244 in #46390.
@vargaz Could you or somebody on Mono team please investigate the intermittent crash and revert the rollback?
https://dev.azure.com/dnceng/public/_build/results?buildId=931250&view=ms.vss-test-web.build-test-results-tab&runId=29500472&resultId=178884&paneView=attachments is example of the crash.
lambdageek commentedon Jan 13, 2021
Ok, I think I understand what's happening: some of the constructors used to delegate to the
Thread()parameterless constructor, but now they callInitialize().The problem is that previously they used to call the parameterless constructor first, and then check for arguments and throw.
Now they they only call
Initializeif they don't throw.So not all the native fields get initialized (in particular
longlivedis still null, which we don't expect inves_icall_System_Threading_InternalThread_Thread_free_internal)Revert "Partial rollback of dotnet#46244 to workaround dotnet#46389 (d…
Mono: use shared StartHelper object
Mono: use shared StartHelper object (#46896)
Mono: use shared StartHelper object (#20740)