Skip to content

EMULATE_FUNCTION_POINTER_CASTS does not work EXIT_RUNTIME #15081

Open

Description

@sbc100

When EMULATE_FUNCTION_POINTER_CASTS the addresses passed to the JS atexit implementation cannot be called because they all have a signature which is not callable from JS:

- type[0] (i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64) -> i64
...
Elem[1]:
 - segment[0] flags=0 table=0 count=6 - init i32=1
  - elem[1] = func[59] <byn$fpcast-emu$__cxx_global_array_dtor>

This results in a crash during callRuntimeCallbacks because makeDynCall cannot be used to call such a function.

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