You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: Loadable section ".wasmtime.engine" outside of ELF segments
in <in-memory@0x7f21a5259010>
warning: Loadable section ".wasmtime.bti" outside of ELF segments
in <in-memory@0x7f21a5259010>
warning: Loadable section ".eh_frame" outside of ELF segments
in <in-memory@0x7f21a5259010>
warning: Loadable section ".wasmtime.addrmap" outside of ELF segments
in <in-memory@0x7f21a5259010>
warning: Loadable section ".wasmtime.traps" outside of ELF segments
in <in-memory@0x7f21a5259010>
warning: Loadable section ".rodata.wasm" outside of ELF segments
in <in-memory@0x7f21a5259010>
warning: Loadable section ".name.wasm" outside of ELF segments
in <in-memory@0x7f21a5259010>
warning: Loadable section ".wasmtime.info" outside of ELF segments
in <in-memory@0x7f21a5259010>
Versions and Environment
Wasmtime version or commit: v25.0.0
Operating system: Linux
Architecture: x86_64
Extra Info
This can probably be fixed by either clearing the loadable flag of all these sections or adding them to actual segments in case they are meant to be used at runtime like in the case of .eh_frame and .rodata.wasm.
The text was updated successfully, but these errors were encountered:
bjorn3
added
the
bug
Incorrect behavior in the current implementation that needs fixing
label
Sep 24, 2024
I suspect the fix is that in this file our usage of SectionKind::ReadOnlyData is probably all wrong and it may want to be something like SectionKind::Metadata or similar. Wasmtime doesn't use these flags at all so the choice of kind here is basically arbitrary from Wasmtime's perspective, but it'd be great to remove these warnings and get a "more correct" elf file too! Would you be able to test out SectionKind::Metadata and see if gdb still emits these warnings?
Test Case
Any wasm module.
Steps to Reproduce
wasmtime run -Ddebug-info=y /path/to/wasm
gdb -p $(pidof wasmtime)
Expected Results
Gdb doesn't emit any warnings.
Actual Results
Gdb emits the following warnings:
Versions and Environment
Wasmtime version or commit: v25.0.0
Operating system: Linux
Architecture: x86_64
Extra Info
This can probably be fixed by either clearing the loadable flag of all these sections or adding them to actual segments in case they are meant to be used at runtime like in the case of
.eh_frame
and.rodata.wasm
.The text was updated successfully, but these errors were encountered: