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

aot: xtensa xip triggers llvm assertion failure #3422

Closed
yamt opened this issue May 13, 2024 · 0 comments · Fixed by #3423
Closed

aot: xtensa xip triggers llvm assertion failure #3422

yamt opened this issue May 13, 2024 · 0 comments · Fixed by #3423

Comments

@yamt
Copy link
Collaborator

yamt commented May 13, 2024

* thread #1, queue = 'com.apple.main-thread', stop reason = hit program assert
    frame #4: 0x0000000100a027d5 wamrc`llvm::CallInst::init(this=0x00006000035671e0, FTy=0x000000011b0176d8, Func=0x000060000a604440, Args=ArrayRef<llvm::Value *> @ 0x00007ff7bfef5840, Bundles=ArrayRef<llvm::OperandBundleDefT<llvm::Value *> > @ 0x00007ff7bfef5860, NameStr=0x00007ff7bfef5a70) at Instructions.cpp:652:5
   649           "Calling a function with bad signature!");
   650 
   651    for (unsigned i = 0; i != Args.size(); ++i)
-> 652      assert((i >= FTy->getNumParams() ||
   653              FTy->getParamType(i) == Args[i]->getType()) &&
   654             "Calling a function with a bad signature!");
   655  #endif

it seems like an integer/float mismatch in compile_op_float_min_max.

    frame #9: 0x0000000100890b56 wamrc`::LLVMBuildCall2(B=0x00006000030002d0, Ty=0x000000011b0176d8, Fn=0x000060000a604440, Args=0x0000600000020000, NumArgs=2, Name="call") at Core.cpp:3876:26
    frame #10: 0x000000010025a178 wamrc`__call_llvm_intrinsic(comp_ctx=0x0000000119025a00, func_ctx=0x000000011981af30, name="i64.or", ret_type=0x0000000119038c60, param_types=0x00007ff7bfef6410, param_count=2, param_values=0x0000600000020000) at aot_llvm.c:3758:17
    frame #11: 0x0000000100259cc5 wamrc`aot_call_llvm_intrinsic(comp_ctx=0x0000000119025a00, func_ctx=0x000000011981af30, intrinsic="i64.or", ret_type=0x0000000119038c60, param_types=0x00007ff7bfef6410, param_count=2) at aot_llvm.c:3792:11
    frame #12: 0x00000001001e4a54 wamrc`compile_op_float_min_max(comp_ctx=0x0000000119025a00, func_ctx=0x000000011981af30, is_f32=false, left=0x000060000a604140, right=0x000060000a6041a0, is_min=true) at aot_emit_numberic.c:293:9
    frame #13: 0x00000001001cba92 wamrc`compile_op_float_arithmetic(comp_ctx=0x0000000119025a00, func_ctx=0x000000011981af30, arith_op=FLOAT_MIN, is_f32=false) at aot_emit_numberic.c:994:13
    frame #14: 0x00000001001cfd05 wamrc`aot_compile_op_f64_arithmetic(comp_ctx=0x0000000119025a00, func_ctx=0x000000011981af30, arith_op=FLOAT_MIN) at aot_emit_numberic.c:1237:12
    frame #15: 0x0000000100029b8c wamrc`aot_compile_func(comp_ctx=0x0000000119025a00, func_index=280) at aot_compiler.c:2228:22
    frame #16: 0x00000001000200a5 wamrc`aot_compile_wasm(comp_ctx=0x0000000119025a00) at aot_compiler.c:3925:14
    frame #17: 0x0000000100008903 wamrc`main(argc=1, argv=0x00007ff7bfeff5b0) at main.c:677:10
    frame #18: 0x000000011636552e dyld`start + 462
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant