Skip to content

ctor_evaller crashes with wasm64 input #5017

Description

@sbc100

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

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