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

Debug info support / method for debugging lightbeam needed #460

Closed
jlb6740 opened this issue Oct 27, 2019 · 2 comments
Closed

Debug info support / method for debugging lightbeam needed #460

jlb6740 opened this issue Oct 27, 2019 · 2 comments
Labels
lightbeam Issues related to the Lightbeam compiler

Comments

@jlb6740
Copy link
Contributor

jlb6740 commented Oct 27, 2019

Hi,

I was looking to debug a trap error while running a benchmark:

error: failed to process main module /home/jlb6740/wasm_files/wasmtime/shootout/strcat2.c.debug.wasm
caused by: Instantiation error: Trap occurred while invoking start function: wasm trap: call stack exhausted, source location: @rep-nop

In doing so I realized I would not be able to step through the code due to supported needed for generating_debug_info.

error: failed to process main module /home/jlb6740/wasm_files/wasmtime/shootout/strcat2.c.debug.wasm
caused by: WebAssembly compilation error: Debug info is not supported with this configuration

This issue is to track that issue, but also to solicit comments on alternative ways of tracking down the trap error I am seeing.

Thanks.

@yurydelendik
Copy link
Contributor

I would be nice to generate at least ModuleAddressMap data.

@jlb6740 did you try removing https://github.com/CraneStation/wasmtime/blob/a3dd4b91e1986d419a97ff708cb34f46a2e502b5/wasmtime-environ/src/lightbeam.rs#L39-L41 and let lightbeam to generate empty ModuleAddressMap ? I wonder if #267 can help here.

@alexcrichton alexcrichton added the lightbeam Issues related to the Lightbeam compiler label Feb 20, 2020
@alexcrichton
Copy link
Member

Lightbeam was removed in #3390 as explained in RFC 14, so I'm going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lightbeam Issues related to the Lightbeam compiler
Projects
None yet
Development

No branches or pull requests

3 participants