Stream: wasmtime

Topic: debugging the .NET extension


view this post on Zulip Alex Crichton (Mar 26 2020 at 22:45):

ok so I know I've asked this before, but @Peter Huene can you remind me how to debug the .NET extension?

view this post on Zulip Alex Crichton (Mar 26 2020 at 22:45):

https://github.com/bytecodealliance/wasmtime/pull/1415 is hitting a ton of concurrent panics and then a segfault in dotnet test on Linux for me

This is a pretty huge PR which refactors and rewrites a large part of the C API's internals. The goals from this PR are: Fill out more C API surface area Organize the C API Rust source code t...

view this post on Zulip Alex Crichton (Mar 26 2020 at 22:46):

so I'm basically trying to get things serialized so there's no concurrency, and then get a backtrace of where the panic happens

view this post on Zulip Alex Crichton (Mar 26 2020 at 22:46):

I forget where to start though in terms of debugging :(

view this post on Zulip Alex Crichton (Mar 26 2020 at 23:05):

Ok I figured out the source of the error (rebase conflict meant header differed from Rust implementation

view this post on Zulip Alex Crichton (Mar 26 2020 at 23:06):

although knowing how to debug would probably still be good :D

view this post on Zulip Peter Huene (Mar 26 2020 at 23:09):

I use the SOS extension on macOS and Linux: https://github.com/dotnet/diagnostics/blob/master/documentation/sos.md

This repository contains the source code for various .NET Core runtime diagnostic tools and documents. - dotnet/diagnostics

view this post on Zulip Peter Huene (Mar 26 2020 at 23:10):

specifically these instructions: https://github.com/dotnet/diagnostics/blob/master/documentation/installing-sos-instructions.md

This repository contains the source code for various .NET Core runtime diagnostic tools and documents. - dotnet/diagnostics

view this post on Zulip Peter Huene (Mar 26 2020 at 23:11):

the clrstack command will display a "mixed mode" stack to resolve the .NET JIT frames to their symbolic names

view this post on Zulip Peter Huene (Mar 26 2020 at 23:26):

I'm reviewing the C API refactoring changes now.

view this post on Zulip Alex Crichton (Mar 26 2020 at 23:37):

ok cool thanks! I'll hopefully remember this for next time


Last updated: Nov 22 2024 at 16:03 UTC