Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Assertion at mini-arm64.c:5519, condition `ji' not met? #14466

@srxqds

Description

@srxqds

Steps to Reproduce

1.load dll
2. use mono_runtime_invoke call c# static method

my code show below:

MonoClass* monoFooClass = mono_class_from_name(testImage, "Test", "Class");
MonoMethod* staticMethod = mono_class_get_method_from_name(monoFooClass, "Test", 0);
mono_runtime_invoke(staticMethod, NULL, NULL, NULL);

Current Behavior

reach the assert

Expected Behavior

call c# method corretly

On which platforms did you notice this

[ ] macOS
[ ] Linux
[ ] Windows
[x] ios

Version Used:
5.18.0.225
interpreter mode

Stacktrace

RunMonoOniOS was compiled with optimization - stepping may behave oddly; variables may not be available.

  • thread Please pull 250e8b93bfbfdd24d78413aac2478c8f2c39d3c1 #1, name = 'tid_303', queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001852092e0 libsystem_kernel.dylib__pthread_kill + 8 frame #1: 0x00000001853aa288 libsystem_pthread.dylibpthread_kill$VARIANT$mp + 376
    frame Bugfixes for System.Configuration/Settingsprovider #2: 0x0000000185177d0c libsystem_c.dylibabort + 140 frame #3: 0x00000001011df0f4 RunMonoOniOSmono_log_write_asl(log_domain=, level=, hdr=, message=) at mono-log-darwin.c:41 [opt]
    frame Fix for bug #641821 - Version tolerant serialization fails with primitive typed members #4: 0x00000001010205f4 RunMonoOniOSmonoeg_g_logv_nofree [inlined] monoeg_g_logstr(log_domain=0x0000000000000000, log_level=G_LOG_LEVEL_ERROR, msg=<unavailable>) at goutput.c:117 [opt] frame #5: 0x00000001010205c8 RunMonoOniOSmonoeg_g_logv_nofree(log_domain=0x0000000000000000, log_level=G_LOG_LEVEL_ERROR, format=, args=) at goutput.c:128 [opt]
    frame Fix for bugzilla's 643368 (tx.TransactionCompleted not firing) #6: 0x00000001010206d0 RunMonoOniOSmonoeg_assertion_message(format=<unavailable>) at goutput.c:163 [opt] frame #7: 0x000000010107ee68 RunMonoOniOSmono_arch_get_seq_point_info(domain=, code=) at mini-arm64.c:5519 [opt]
    frame Mono 2 8 - please merge the ucontext_t* changes from head. #8: 0x0000000101090290 RunMonoOniOSmono_resolve_patch_target(method=0x000000015685f658, domain=0x0000000155dba6f0, code="\375{\xb5\xa9\375�, patch_info=0x0000000156867a28, run_cctors=1, error=0x000000016ee05e28) at mini-runtime.c:1603 [opt] frame #9: 0x0000000101071c40 RunMonoOniOSinit_method(amodule=0x0000000156819e00, method_index=, method=0x000000015685f658, init_class=0x0000000000000000, context=0x0000000000000000, error=0x000000016ee05e28) at aot-runtime.c:4461 [opt]
    frame Don't disconnect an unconnected socket. Fixes #606809. #10: 0x000000010106a544 RunMonoOniOS`load_method(domain=0x0000000155db3120, amodule=0x0000000156819e00, image=, method=, token=, method_index=1, error=0x000000016ee05e28) at aot-runtime.c:4149 [opt]
    • frame Ensure that exceptions are propagated when embedding #11: 0x0000000101069b04 RunMonoOniOSmono_aot_get_method(domain=0x0000000155db3120, method=0x000000015685f658, error=0x000000016ee05e28) at aot-runtime.c:4862 [opt] frame #12: 0x0000000101090d00 RunMonoOniOSmono_jit_compile_method_with_opt(method=0x000000015685f658, opt=374417919, jit_only=, error=0x000000016ee05e28) at mini-runtime.c:2358 [opt]
      frame Allow socket code to work after appdomain reload. #13: 0x0000000101036f58 RunMonoOniOSinterp_create_method_pointer(method=<unavailable>, compile=<unavailable>, error=0x000000016ee05e28) at interp.c:2529 [opt] frame #14: 0x00000001010374c8 RunMonoOniOSinterp_delegate_ctor(this_obj=MonoObjectHandle @ x22, target=MonoObjectHandle @ x20, addr=0x00000001568672f0, error=0x000000016ee05e28) at interp.c:1310 [opt]
      frame Fix process scanning on OSX. #15: 0x000000010107b248 RunMonoOniOSves_icall_mono_delegate_ctor_interp(this_obj_raw=<unavailable>, target_raw=<unavailable>, addr=<unavailable>) at jit-icalls.c:1535 [opt] frame #16: 0x00000001010468f0 RunMonoOniOSdo_icall(context=0x0000000155e71660, sig=0x0000000155e83bb0, op=496, sp=, ptr=0x000000010107b1c4) at interp.c:1846 [opt]
      frame [API] Implemented DataTypeAttributes.IsValid(object) (simple one-line fix) #17: 0x000000010103878c RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee06aa0, context=0x0000000155e71660, start_with_ip=<unavailable>, filter_exception=<unavailable>, exit_at_finally=-1, base_frame=<unavailable>) at interp.c:2928 [opt] frame #18: 0x000000010103bed8 RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee06f50, context=0x0000000155e71660, start_with_ip=, filter_exception=, exit_at_finally=-1, base_frame=) at interp.c:4052 [opt]
      frame Don't enforce a minimum buffer size for zero-length buffers in FileStream (fix for 645193) #19: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee070e8, context=0x0000000155e71660, start_with_ip=<unavailable>, filter_exception=<unavailable>, exit_at_finally=-1, base_frame=<unavailable>) at interp.c:3041 [opt] frame #20: 0x00000001010371a0 RunMonoOniOSinterp_runtime_invoke(method=, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000000016ee07418, error=) at interp.c:1659 [opt]
      frame Fixed System.Resources.ResXResourceWriter losing comments of ResXNodes #21: 0x0000000101095958 RunMonoOniOSmono_jit_runtime_invoke(method=0x000000015685e000, obj=<unavailable>, params=0x0000000000000000, exc=<unavailable>, error=0x000000016ee07608) at mini-runtime.c:3136 [opt] frame #22: 0x000000010113bdd4 RunMonoOniOSmono_runtime_try_invoke [inlined] do_runtime_invoke(method=, obj=, params=, exc=, error=) at object.c:2960 [opt]
      frame Encoded mail headers fix (RCF2047 compliance) #23: 0x000000010113bd94 RunMonoOniOSmono_runtime_try_invoke(method=0x000000015685e000, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000000016ee07418, error=0x000000016ee07608) at object.c:3069 [opt] frame #24: 0x000000010113abd0 RunMonoOniOSmono_runtime_class_init_full(vtable=0x0000000156856310, error=0x000000016ee07608) at object.c:526 [opt]
      frame Add support for the CancelKeyPress event on Windows #25: 0x00000001010487b0 RunMonoOniOSmono_interp_transform_method(imethod=0x00000001568667d0, context=<unavailable>, error=0x000000016ee07608) at transform.c:5037 [opt] frame #26: 0x00000001010464b4 RunMonoOniOSdo_transform_method(frame=0x000000016ee081c0, context=0x0000000155e71660) at interp.c:2177 [opt]
      frame Add IDREFs only once when validating #27: 0x0000000101037e98 RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee081c0, context=0x0000000155e71660, start_with_ip=0x0000000000000000, filter_exception=0x0000000000000000, exit_at_finally=-1, base_frame=0x0000000000000000) at interp.c:2657 [opt] frame #28: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee08640, context=0x0000000155e71660, start_with_ip=, filter_exception=, exit_at_finally=-1, base_frame=) at interp.c:3041 [opt]
      frame Documentation for Mono.Cairo #29: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee08ab0, context=0x0000000155e71660, start_with_ip=<unavailable>, filter_exception=<unavailable>, exit_at_finally=-1, base_frame=<unavailable>) at interp.c:3041 [opt] frame #30: 0x000000010103bed8 RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee08f60, context=0x0000000155e71660, start_with_ip=, filter_exception=, exit_at_finally=-1, base_frame=) at interp.c:4052 [opt]
      frame Related to BNC 459338 #31: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee090f8, context=0x0000000155e71660, start_with_ip=<unavailable>, filter_exception=<unavailable>, exit_at_finally=-1, base_frame=<unavailable>) at interp.c:3041 [opt] frame #32: 0x00000001010371a0 RunMonoOniOSinterp_runtime_invoke(method=, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000000016ee09428, error=) at interp.c:1659 [opt]
      frame Mono 2 8 #33: 0x0000000101095958 RunMonoOniOSmono_jit_runtime_invoke(method=0x000000015685dc08, obj=<unavailable>, params=0x0000000000000000, exc=<unavailable>, error=0x000000016ee09618) at mini-runtime.c:3136 [opt] frame #34: 0x000000010113bdd4 RunMonoOniOSmono_runtime_try_invoke [inlined] do_runtime_invoke(method=, obj=, params=, exc=, error=) at object.c:2960 [opt]
      frame Fix bug in BlockingCollection<T>.TryTake #35: 0x000000010113bd94 RunMonoOniOSmono_runtime_try_invoke(method=0x000000015685dc08, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000000016ee09428, error=0x000000016ee09618) at object.c:3069 [opt] frame #36: 0x000000010113abd0 RunMonoOniOSmono_runtime_class_init_full(vtable=0x0000000156856178, error=0x000000016ee09618) at object.c:526 [opt]
      frame mdoc: display property getters before setters #37: 0x00000001010487b0 RunMonoOniOSmono_interp_transform_method(imethod=0x0000000156865ec8, context=<unavailable>, error=0x000000016ee09618) at transform.c:5037 [opt] frame #38: 0x00000001010464b4 RunMonoOniOSdo_transform_method(frame=0x000000016ee0a1f0, context=0x0000000155e71660) at interp.c:2177 [opt]
      frame Untitled #39: 0x0000000101037e98 RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee0a1f0, context=0x0000000155e71660, start_with_ip=0x0000000000000000, filter_exception=0x0000000000000000, exit_at_finally=-1, base_frame=0x0000000000000000) at interp.c:2657 [opt] frame #40: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee0a670, context=0x0000000155e71660, start_with_ip=, filter_exception=, exit_at_finally=-1, base_frame=) at interp.c:3041 [opt]
      frame Support FileStream.Length for block devices on Linux #41: 0x000000010103bed8 RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee0aaf0, context=0x0000000155e71660, start_with_ip=<unavailable>, filter_exception=<unavailable>, exit_at_finally=-1, base_frame=<unavailable>) at interp.c:4052 [opt] frame #42: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee0afa0, context=0x0000000155e71660, start_with_ip=, filter_exception=, exit_at_finally=-1, base_frame=) at interp.c:3041 [opt]
      frame Fix for bug 349053 (unable to serialize SortedDictionary) #43: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee0b138, context=0x0000000155e71660, start_with_ip=<unavailable>, filter_exception=<unavailable>, exit_at_finally=-1, base_frame=<unavailable>) at interp.c:3041 [opt] frame #44: 0x00000001010371a0 RunMonoOniOSinterp_runtime_invoke(method=, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000000016ee0b468, error=) at interp.c:1659 [opt]
      frame Refactoring and Performance Improvements #45: 0x0000000101095958 RunMonoOniOSmono_jit_runtime_invoke(method=0x000000015603d600, obj=<unavailable>, params=0x0000000000000000, exc=<unavailable>, error=0x000000016ee0b658) at mini-runtime.c:3136 [opt] frame #46: 0x000000010113bdd4 RunMonoOniOSmono_runtime_try_invoke [inlined] do_runtime_invoke(method=, obj=, params=, exc=, error=) at object.c:2960 [opt]
      frame Implements System.ComponentModel.DataAnnotations.RegularExpressionAttribute #47: 0x000000010113bd94 RunMonoOniOSmono_runtime_try_invoke(method=0x000000015603d600, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000000016ee0b468, error=0x000000016ee0b658) at object.c:3069 [opt] frame #48: 0x000000010113abd0 RunMonoOniOSmono_runtime_class_init_full(vtable=0x00000001568347e8, error=0x000000016ee0b658) at object.c:526 [opt]
      frame Gacutil fix v2 #49: 0x00000001010487b0 RunMonoOniOSmono_interp_transform_method(imethod=0x0000000156834850, context=<unavailable>, error=0x000000016ee0b658) at transform.c:5037 [opt] frame #50: 0x00000001010464b4 RunMonoOniOSdo_transform_method(frame=0x000000016ee0c210, context=0x0000000155e71660) at interp.c:2177 [opt]
      frame Allow deferred attaching in the soft debugger #51: 0x0000000101037e98 RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee0c210, context=0x0000000155e71660, start_with_ip=0x0000000000000000, filter_exception=0x0000000000000000, exit_at_finally=-1, base_frame=0x0000000000000000) at interp.c:2657 [opt] frame #52: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee0c6c0, context=0x0000000155e71660, start_with_ip=, filter_exception=, exit_at_finally=-1, base_frame=) at interp.c:3041 [opt]
      frame Windows debug helper #53: 0x0000000101038dcc RunMonoOniOSinterp_exec_method_full(frame=0x000000016ee0c858, context=0x0000000155e71660, start_with_ip=<unavailable>, filter_exception=<unavailable>, exit_at_finally=-1, base_frame=<unavailable>) at interp.c:3041 [opt] frame #54: 0x00000001010371a0 RunMonoOniOSinterp_runtime_invoke(method=, obj=0x0000000000000000, params=0x0000000000000000, exc=0x0000000000000000, error=) at interp.c:1659 [opt]
      frame Windows signal chaining #55: 0x0000000101095958 RunMonoOniOSmono_jit_runtime_invoke(method=0x0000000156832a08, obj=<unavailable>, params=0x0000000000000000, exc=<unavailable>, error=0x000000016ee0cb48) at mini-runtime.c:3136 [opt] frame #56: 0x000000010113a390 RunMonoOniOSmono_runtime_invoke_checked [inlined] do_runtime_invoke(method=0x0000000156832a08, obj=0x0000000000000000, params=0x0000000000000000, exc=, error=0x000000016ee0cb48) at object.c:2960 [opt]
      frame Mono on MIPS, backend fixes for mono-2-6 #57: 0x000000010113a350 RunMonoOniOSmono_runtime_invoke_checked(method=0x0000000156832a08, obj=0x0000000000000000, params=0x0000000000000000, error=0x000000016ee0cb48) at object.c:3128 [opt] frame #58: 0x000000010113dd00 RunMonoOniOSmono_runtime_invoke(method=0x0000000156832a08, obj=0x0000000000000000, params=0x0000000000000000, exc=0x0000000000000000) at object.c:3015 [opt]
      frame Add several new Cng related enumerations to System.Security.Cryptography #59: 0x00000001010159cc RunMonoOniOSmono_ios_runtime_init at runtime.m:487 frame #60: 0x00000001010140fc RunMonoOniOS-[ViewController viewDidLoad](self=0x0000000155e5e1f0, _cmd="viewDidLoad") at ViewController.m:35
      frame Darwin/static build fixes #61: 0x000000018f39de64 UIKit-[UIViewController loadViewIfRequired] + 1020 frame #62: 0x000000018f39da50 UIKit-[UIViewController view] + 28
      frame More Cng related classes to System.Security.Cryptography #63: 0x000000018f38ece4 UIKit-[UIWindow addRootViewControllerViewIfPossible] + 136 frame #64: 0x000000018f38db18 UIKit-[UIWindow _setHidden:forced:] + 272
      frame TextReader tweaks & new unit tests #65: 0x000000018f41b62c UIKit-[UIWindow makeKeyAndVisible] + 48 frame #66: 0x000000018f391274 UIKit-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3660
      frame Windows signal chaining try2 #67: 0x000000018f35e5e0 UIKit-[UIApplication _runWithMainScene:transitionContext:completion:] + 1680 frame #68: 0x000000018f98eb1c UIKit__111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 784
      frame Windows signalchaining onmono210 #69: 0x000000018f35ddd0 UIKit+[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160 frame #70: 0x000000018f35dc6c UIKit-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240
      frame split out mono_set_commandline_arguments() #71: 0x000000018f35cafc UIKit-[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 724 frame #72: 0x000000018fff284c UIKit__82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296
      frame add BinaryFormatter.DefaultSurrogateselector #73: 0x000000018f35c1ec UIKit-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432 frame #74: 0x000000018fdd7ac8 UIKit__125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
      frame Task/Future bugs #75: 0x000000018ff25bf8 UIKit_performActionsWithDelayForTransitionContext + 112 frame #76: 0x000000018f35bc0c UIKit-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248
      frame some documentation on DefaultSurrogateSelector #77: 0x000000018f35b5a8 UIKit-[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368 frame #78: 0x000000018f3585e0 UIKit-[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
      frame Mono 2 10 - a few system class implementations #79: 0x000000018f358330 UIKit-[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364 frame #80: 0x0000000187f84470 FrontBoardServices-[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364
      frame Use the sourceLevels parameter to the TraceSource constructor to initialize the trace source #81: 0x0000000187f8cd6c FrontBoardServices__56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224 frame #82: 0x000000010176919c libdispatch.dylib_dispatch_client_callout + 16
      frame Implemented IDisposable on System.Security.Cryptography.DeriveBytes #83: 0x00000001017757cc libdispatch.dylib_dispatch_block_invoke_direct + 232 frame #84: 0x0000000187fb8878 FrontBoardServicesFBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 36
      frame Make System.Xaml reference depend on NET_4_0 #85: 0x0000000187fb851c FrontBoardServices-[FBSSerialQueue _performNext] + 404 frame #86: 0x0000000187fb8ab8 FrontBoardServices-[FBSSerialQueue _performNextFromRunLoopSource] + 56
      frame Expose mono_class_is_generic and mono_class_is_inflated to embedders. #87: 0x000000018572b404 CoreFoundation__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 frame #88: 0x000000018572ac2c CoreFoundation__CFRunLoopDoSources0 + 276
      frame [FreeBSD] fix build with libiconv #89: 0x000000018572879c CoreFoundation__CFRunLoopRun + 1204 frame #90: 0x0000000185648da8 CoreFoundationCFRunLoopRunSpecific + 552
      frame Fix the build that I broke #91: 0x000000018762e020 GraphicsServicesGSEventRunModal + 100 frame #92: 0x000000018f668758 UIKitUIApplicationMain + 236
      frame [Fix] Fix for bug #677265 with DispatcherTimer. #93: 0x00000001010169d8 RunMonoOniOSmain(argc=1, argv=0x000000016ee0f968) at main.m:14 frame #94: 0x00000001850d9fc0 libdyld.dylibstart + 4
      (lldb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions