binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

SIGSEGV (Address boundary error) in dumpDebugLoc(llvm::DWARFContext&, llvm::DWARFYAML::Data&) ()

Open Ddystopia opened this issue 1 year ago • 1 comments

Hello, when I'm trying this command

 wasm-opt -Oz iot-config-web-dx_bg.wasm --zero-filled-memory -o out.wasm

I'm getting this:

fish: Job 1, '~/code/binaryen/bin/wasm-opt -O…' terminated by signal SIGSEGV (Address boundary error)

It fails on version_118 and on latest master (e2ceaa58c10e9ee3e9eece42466243f5a8aff125)

binary.tar.gz

Ddystopia avatar Aug 28 '24 14:08 Ddystopia

Looks like a problem with our DWARF support, which is experimental. It is recommended to use source maps instead for debugging.

To avoid this problem you can strip debug info, by adding --strip-debug to that command.

kripken avatar Aug 28 '24 17:08 kripken