walrus icon indicating copy to clipboard operation
walrus copied to clipboard

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

Open mrchantey opened this issue 1 year ago • 4 comments

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 avatar Mar 17 '24 02:03 mrchantey

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

guybedford avatar Mar 25 '24 18:03 guybedford

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

mrchantey avatar Apr 03 '24 02:04 mrchantey

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.

guybedford avatar Apr 03 '24 21:04 guybedford

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

mrchantey avatar Apr 04 '24 06:04 mrchantey