-
Notifications
You must be signed in to change notification settings - Fork 13.5k
lldb crash when print clang::ExprResult #63667
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
Labels
Comments
@llvm/issue-subscribers-lldb |
Can't repro with top-of-tree LLDB on my Mac. Looks like you're possibly using an LLDB from a couple of releases ago? If so, could you try with a more recent version? |
There are a numbers of similar bugs like this one #43604. |
Process 84323 stopped
* thread #1, name = 'clang++', stop reason = breakpoint 1.1
frame #0: 0x000055555de7e054 clang++`clang::Parser::ParseDoStatement(this=0x000055556a99ac50) at ParseStmt.cpp:1896:20
1893 SourceLocation Start = Tok.getLocation();
1894 ExprResult Cond = ParseExpression();
1895 // Correct the typos in condition before closing the scope.
-> 1896 if (Cond.isUsable())
1897 Cond = Actions.CorrectDelayedTyposInExpr(Cond);
1898 else {
1899 if (!Tok.isOneOf(tok::r_paren, tok::r_square, tok::r_brace))
(lldb) p Cond
(clang::ExprResult) (PtrWithInvalid = 93825349071016) Thanks, the lldb build from trunk no longer crash! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
main.cpp
The text was updated successfully, but these errors were encountered: