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

add basic coredump generation #3626

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Conversation

xtuc
Copy link
Contributor

@xtuc xtuc commented Feb 24, 2023

This change adds a basic coredump generation after a WebAssembly trap was entered. The coredump includes rudimentary stack / process debugging information.

A new CLI argument is added to enable coredump generation:

wasmer --coredump-on-trap=/path/to/coredump/file module.wasm

Refs #3578

@syrusakbary
Copy link
Member

WOW. The PR ended being way simpler than I was imagining. I'll review it on Monday with @ptitSeb

@xtuc xtuc force-pushed the sven/basic-coredump branch 2 times, most recently from 38f573f to bc17c8f Compare February 24, 2023 21:21
@syrusakbary
Copy link
Member

Hey @xtuc, could you also add a documentation file on how to use wasm-coredump with wasmer? (end to end)

Thanks!

@xtuc
Copy link
Contributor Author

xtuc commented Feb 25, 2023

@syrusakbary yes sure. This is what I wrote for wasmtime: https://github.com/bytecodealliance/wasmtime/blob/db931d7a93208738b8106e8d8c1a4afc8efaca6d/docs/examples-coredump.md. Where's the best place to write such a documentation for wasmer?

@syrusakbary
Copy link
Member

Where's the best place to write such a documentation for wasmer?

Probably having that markdown doc inside the docs/en folder should be good enough!

This change adds a basic coredump generation after a WebAssembly trap
was entered. The coredump includes rudimentary stack / process debugging
information.

A new CLI argument is added to enable coredump generation:

```
wasmer --coredump-on-trap=/path/to/coredump/file module.wasm
```

See docs/en/examples-coredump.md.

Refs wasmerio#3578
@xtuc
Copy link
Contributor Author

xtuc commented Feb 27, 2023

@syrusakbary added some docs.

@syrusakbary
Copy link
Member

Looks great, merging.

@syrusakbary syrusakbary merged commit 6a95e83 into wasmerio:master Feb 28, 2023
@xtuc xtuc deleted the sven/basic-coredump branch February 28, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants