Stream: general

Topic: LLDB address mapping snafu


view this post on Zulip Gabor Greif (Aug 08 2020 at 11:51):

All,

I am debugging Wasm running in wasmtime using LLDB on the Mac. Recently (branch main) I am getting following warnings:

(lldb) r
Process 91548 launched: '/Users/ggreif/motoko/wasmtime/target/debug/wasmtime' (x86_64)
warning: (x86_64) /Users/ggreif/motoko/wasmtime/target/debug/wasmtime(0x0000000100000000) address 0x0000000100000000 maps to more than one section: wasmtime.__TEXT and wasmtime.__TEXT
warning: (x86_64) /Users/ggreif/motoko/wasmtime/target/debug/wasmtime(0x0000000100000000) address 0x0000000101636000 maps to more than one section: wasmtime.__DATA and wasmtime.__DATA
Process 91548 exited with status = 0 (0x00000000)

This takes quite some time and my breakpoints are not respected. A subsequent r may or may not have the same warning issued. Sometimes I need several attempts to get a clean run.

Is this a known problem? I am happy to raise an issue if not.

view this post on Zulip Yury Delendik (Aug 10 2020 at 17:13):

Yeah, I saw that on large code bases, but I cannot reproduce with a smaller test case. It is worth to open an issue and investigate that, yes.

view this post on Zulip Yury Delendik (Aug 10 2020 at 17:14):

Actually, it might be unrelated since yours looks intermittent (?)

view this post on Zulip Gabor Greif (Aug 11 2020 at 07:06):

Right, after a few false starts I can usually run. https://github.com/bytecodealliance/wasmtime/issues/2127

Recently I have started to get strange warnings from wasmtime (HEAD) when running programs using lldb. Below is a transcript. ../../llvm/bin/lldb -- target/debug/wasmtime -g sumsX.mo.wasm (lldb) ta...

view this post on Zulip Yury Delendik (Aug 11 2020 at 14:14):

thanks for the report


Last updated: Dec 23 2024 at 12:05 UTC