Skip to content

Asyncify ignore & debug flag #11736

@stelcheck

Description

@stelcheck

Edit: for point two --profiling seems to be helping digging out the issue, but I'm still a bit confused as to why debugging flag would make things work.

I am currently working on a codebase where I ASYNCIFY_IGNORE_INDIRECT then ASYNC_ADD the functions/methods needed. This works as intended when -g3 or higher is set, but fails with:

(index):1 exception thrown: RuntimeError: function signature mismatch,RuntimeError: function signature mismatch
    at emscripten::internal::Invoker<void, unsigned int>::invoke(void (*)(unsigned int), unsigned int) (http://localhost:8000/byuu-web.wasm:wasm-function[3898]:0x23f8a5)
    at ret.<computed> (http://localhost:8000/byuu-web.js:9126:35)
    at Object.finishContextSwitch (http://localhost:8000/byuu-web.js:9309:11)
    at Object.trampoline (http://localhost:8000/byuu-web.js:9283:20)
    at Object.ret.<computed> [as dynCall_v] (http://localhost:8000/byuu-web.js:9138:30)
    at browserIterationFunc (http://localhost:8000/byuu-web.js:5492:30)
    at Object.runIter (http://localhost:8000/byuu-web.js:5605:13)
    at Browser_mainLoop_runner (http://localhost:8000/byuu-web.js:5544:26)

My questions are:

  1. Is it possible that Asyncify relies on debugging information?
  2. What would be the best method to go about to investigate these kind of issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions