Open abrown opened 1 year ago
cc: @jlb6740, @bnjbvr
Thanks! I've just ran into that in our embedding too; will investigate quickly to find if there's anything obvious there.
@abrown so at the end of this short investigation:
notify_event
is called for new methods. That being said, I've just noticed the documentation of this method for ...METHOD_LOAD_FINISHED
says that the return value is undefined for this particular event type, while the high-level ittapi crate will check it's 1 to decide it's been successful, independently of the event. I've opened https://github.com/intel/ittapi/pull/82 to fix that.I can see that the shutdown results in a error, when trying with your test case; that being said, it only output to log, in my case, and doesn't crash. So I'm wondering if we're running into different issues, or if some of them are OS-specific ("I'm running ArchLinux, btw").
Made some comments over in https://github.com/intel/ittapi/pull/82.
Test Case
Steps to Reproduce
Expected Results
Adding the
--vtune
flag, which enables VTune profiling, should succeed regardless of the environment.Actual Results
A snippet of the backtrace:
Versions and Environment
Wasmtime version or commit:
main
Operating system: Fedora
Architecture: x86_64
Extra Info
I thought that perhaps the issue was that Wasmtime expected to be run by VTune. When I try the following, things seem to almost work:
I do see a worrying line in the output, though: "vtune: Error: Cannot load data file `/tmp/vtune-results/data.0/40123-40133.0.trace' (Data file is corrupted)." But I can replicate the original bug when I use a more complex WAT file: