Skip to content

gh-95707: Fix function signature#95995

Merged
markshannon merged 1 commit into
python:mainfrom
tiran:gh-95707-fix
Aug 15, 2022
Merged

gh-95707: Fix function signature#95995
markshannon merged 1 commit into
python:mainfrom
tiran:gh-95707-fix

Conversation

@tiran
Copy link
Copy Markdown
Member

@tiran tiran commented Aug 15, 2022

@markshannon
Copy link
Copy Markdown
Member

Thanks for fixing this.

It's nice to have runtime type checking, but the error message is not very informative.

RuntimeError: null function or function signature mismatch

Is it null or not? What function?
Would it be possible to improve the error message, so those of us less familiar with web assembly can fix them?

@markshannon
Copy link
Copy Markdown
Member

@tiran Want to run the buildbots on this?
I'm happy to merge it, otherwise.

@markshannon
Copy link
Copy Markdown
Member

I'll take that as a "merge" then 🙂

@markshannon markshannon merged commit 8621e6d into python:main Aug 15, 2022
@tiran
Copy link
Copy Markdown
Member Author

tiran commented Aug 15, 2022

No need to run buildbots. I verified the patch locally.

It is a bit unfortunate that WASM runtimes and Emscripten do not provide more debug information. The error message is coming from NodeJS, probably from the V8 JavaScript engine itself. There is an outstanding feature request to improve the situation, emscripten-core/emscripten#16126 . -Wbad-function-cast -Wcast-function-type detects some mismatches, but it would not detect this mismatch.

@hoodmane has been looking into the problem, too.

@tiran tiran deleted the gh-95707-fix branch August 15, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants