-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
twiggy crashes with mono binaries #151
Comments
Thanks for the bug report! Are there >= 2^32 - 1 elements entries in that wasm?? o_O That is quite an achievement! |
That sounds unlikely, it's a 6mb binary. |
On master I get a slightly different panic:
|
I have a fix locally, cleaning it up. Thanks again for the bug report @kumpera! |
Thank you so much for looking into this. |
We were previously assuming that all table elements were initialized to functions defined locally. If we encountered a table element initialized to an imported function, we attempted to subtract the number of imported functions from it, and that would cause a subtraction underflow. Fixes #151
Fix is over at #152
Great to hear this! I think the best thing you could do for now is just use twiggy as much as possible, file bugs when you hit them, request missing features that you end up needing, etc! There are a relatively small number of folks using twiggy right now, so more real world usage would be very helpful! :) |
We were previously assuming that all table elements were initialized to functions defined locally. If we encountered a table element initialized to an imported function, we attempted to subtract the number of imported functions from it, and that would cause a subtraction underflow. Fixes #151
Hello,
I'm trying to use twiggy 0.2.0 with mono's wasm port and hitting this crash on OSX:
To reproduce it. Download this file: https://jenkins.mono-project.com/job/test-mono-mainline-wasm/926/label=ubuntu-1804-amd64/Azure/processDownloadRequest/926/ubuntu-1804-amd64/sdks/wasm/mono-wasm-24c1f2a40c1.zip
Then run twiggy:
twiggy top debug/mono.wasm
The text was updated successfully, but these errors were encountered: