-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Wasmtime rust application crashed when debug flag is enabled #10138
Comments
That function shouldn't be able to segfault. It literally does nothing but return. That function only exists for the debugger to set a breakpoint at and when the breakpoint gets hit have the debugger update it's cache of debuginfo for jitted functions. Can you show the actual crash message lldb shows? |
Here is some more data. I updated the versions of LLDB and codeLLDB used in the issue description and also enabled this flag When I launch the rust app which loads multiple modules as a graph, we get the following error when launched lldb via terminal.
|
|
Actually, going off of what @bjorn3 said above
Perhaps this is working as intended: lldb does, indeed, stop with a signal at that function. You're observing internal debugging plumbing in that case. Can you continue ( |
I tried this and the process exits after sometime. I tried to set breakpoint on exits and aborts to see what causes the exit but nothing hits the breakpoint on exit. so Not sure what is making the process to exit |
what can cause Call stack image updated |
In general, the |
Steps to Reproduce
Create a rust application with wasmtime engine and enable debug flag.
Note: Cannot share the complete code here want to understand why the sedfaults and crashes are occuring
Expected Results
Breakpoint with codeLLDB continues successfully instead of crashing of application
Actual Results
Segfault into
Versions and Environment
Wasmtime version or commit: 25.0.2
Operating system: Ubuntu
Architecture: x86_64
Code LLDB extension version : 1.11.3
lldb version with LLVM - 19.1.7
The text was updated successfully, but these errors were encountered: