-
Notifications
You must be signed in to change notification settings - Fork 261
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
Bug: The debug adapter has terminated abnormally. #635
Comments
I can independently reproduce this on my own tokio project as well. The only work around I can find is to keep the variables window minimized and use only the watch window. |
3221225725 = 0xc00000fd aka "stack overflow" |
@chamons thank you. same here. |
@vadimcn the same my project does not reproduce the issue when I build on: It happens on Windows. |
Hi! The issues doesn't reproduce on macOS for me, but it does on Windows. |
Same here but as a workaround I`m using
#635 (comment) does not worked for me. |
Does not work for me, I get: "Error processing launch options at field: program" |
I get the very same error:
Is this problem still being worked on, or should we just forget CodeLLDB on VScode under Windows, like delete that product version / platform forever ? Cheers, Peter |
Not directly. I do upgrade the bundled LLDB when a new version comes out, so bugs might get fixed eventually. Currently I am preparing a release based on LLDB v16, you can try it out here. |
Thanks for the feedback. Whilst still hopeful that this issue on Windows may get fixed one day, for now I decided to switch to Linux (Ubuntu 18.04). And there my debugging works fine; no problems encountered yet. Cheers, Peter |
@Peter-J-Jansen Would you mind checking if you still get a stack overflow on Windows with that build? |
OK, I'll try to do that the next few days. I've already downloaded "codelldb-x86_64-windows.vsix" (about 40 MB), but how do I go about and update what I current have on vscode ? So far I've only ever installed vscode extensions by clicking on the "install" button they all have. And if this ".vsix" makes things worse, how can I back out and revert to what I have right now ? Cheers, Peter |
Use "Extensions: Install from VSIX" command, pick the file you've downloaded.
Open the Extensions side panel, find CodeLLDB, click the gear button, choose "Install Another Version...". |
Thanks Vadim. The vsix install worked fine. But when trying to re-test the stack overflow, I now don't seem to be able to get even that far. The debug start (SDL-hyperion) uses an "attach", and that appears to work, except that then my breakpoints, marked by red dots, all disappear; they are replaced by white circles. If I hover over them, a message saying "Resolved locations : 0" appears. The breakpoints do not work however, they don't get triggered. I've left this pre-release CoreLDDB in place, perhaps you have suggestions. In the mean time I keep on using the regular CoreLLDB on Lubuntu 20.04, which seems to work fine. Cheers, Peter |
Minimal test case. #[cfg(test)]
mod test {
fn get_foo_fn() -> impl Fn() -> () {
let foo = 0;
move || {
// put a breakpoint here to trigger a stack overflow when starting debugging
let _a = foo;
}
}
#[test]
// as long as I'm present, I will bork debugging
fn bork_debugging() {
let _ = get_foo_fn();
}
#[test]
fn empty_test() {
// trying to debug me will trigger a stack overflow
}
} CodeLLDB: 1.9.0 TL;DR: Workaround is to not put breakpoints in capturing lambdas returned by functions. Or I guess just try to disable all your breakpoints and see if that helps. |
@johanhelsing -msvc target? Yeah, that's known to happen... |
If I use "launch" rerquest in launch.json instead of "cargo", the debugger always crashes like that? not sometimes.
|
Trying to debug some async rust code.
Cargo.toml
file:This would create this error:
The text was updated successfully, but these errors were encountered: