Skip to content
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

Unknown warning: in name section: index '1' is out of bounds for data #264

Open
mrchantey opened this issue Mar 17, 2024 · 4 comments
Open
Labels
question Further information is requested

Comments

@mrchantey
Copy link

Summary

I've started getting this warning from walrus, I've tracked it down here in the source but still cant work out what I'm doing to trigger the error. Everything is working fine, is there a way to clear it? I get it whether using wasm-pack calls or custom wasm-bindgen commands.

[2024-03-17T02:40:29Z WARN  walrus::module] in name section: index `0` is out of bounds for data
[2024-03-17T02:40:29Z WARN  walrus::module] in name section: index `1` is out of bounds for data
@mrchantey mrchantey added the question Further information is requested label Mar 17, 2024
@guybedford
Copy link
Collaborator

Perhaps try using wasm-tools shrink to reduce the test case here, to share further.

@mrchantey mrchantey changed the title Unknown warning: in name section: index 1 is out of bounds for data Unknown warning: in name section: index '1' is out of bounds for data Mar 26, 2024
@mrchantey mrchantey changed the title Unknown warning: in name section: index '1' is out of bounds for data Unknown warning: in name section: index '1' is out of bounds for data Mar 26, 2024
@mrchantey
Copy link
Author

Sorry I'm not familiar with wasm-tools, is the command something like wasm-tools shrink path/to/file.wasm?

@guybedford
Copy link
Collaborator

wasm-tools shrink --help gives a full end to end example demostrating how to create a predicate.sh script that can pass or fail on variations of the original wasm file.

Alternatively if you want to just share the full binary that can work too.

@mrchantey
Copy link
Author

Oh that would be awesome I'm not quite sure where to start 😅 heres the link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants