binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

ctor_evaller crashes with wasm64 input

Open sbc100 opened this issue 3 years ago • 0 comments

From the emscripten test suite:

$ ./test/runner wasm64.test_eval_ctors_no_main --skip-slow   
Test suites:
['test_core']
Running test_core: (1 tests)
(checking sanity from test runner)
shared:INFO: (Emscripten: Running sanity checks)
test_eval_ctors_no_main (test_core.wasm64) ... building:INFO: ctor_evaller: trying to eval global ctors (--ctors=__wasm_call_ctors)
expected i64, seeing i32 from
(i32.const 0)
wasm-ctor-eval: /usr/local/google/home/sbc/dev/wasm/binaryen/src/wasm-interpreter.h:209: wasm::Flow wasm::ExpressionRunner<(anonymous namespace)::EvallingModuleRunner>::visit(wasm::Expression *) [SubType = (anonymous namespace)::EvallingModuleRunner]: Assertion `Type::isSubType(type, curr->type)' failed.
em++: error: '/usr/local/google/home/sbc/dev/wasm/binaryen-out/bin/wasm-ctor-eval --ctors=__wasm_call_ctors test_ctors_no_main.wasm -o test_ctors_no_main.wasm -g --mvp-features --enable-memory64' failed (received SIGABRT (-6))
None
None
FAIL

sbc100 avatar Sep 06 '22 11:09 sbc100