-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
YCQL: SIGBUS crash on invalid statement #2476
Comments
Parser log:
|
Root cause: invalid pointer cast from PTInsertValuesClause into PTDmlStmt:
|
Fix:
|
OlegLoginov
added a commit
that referenced
this issue
Oct 9, 2019
Summary: Fixed TS crash in the CQL parser. Root cause: invalid pointer cast from PTInsertValuesClause into PTDmlStmt: $1 = {yb::ql::PTInsertValuesClause * | 0x111a446e8} ``` | SelectStmt { if ($1 != nullptr) { parser_->SetBindVariables(static_cast<PTDmlStmt*>($1.get())); <<<<<<<<<<<<<<< } $$ = $1; } ``` Test Plan: ybd --cxx-test ql-parser-test --gtest_filter QLTestParser.TestQLParser Reviewers: timur, alex, neil Reviewed By: neil Subscribers: yql Differential Revision: https://phabricator.dev.yugabyte.com/D7356
Fixed by the commit above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce on a fresh local cluster:
From
tserver.err
:The text was updated successfully, but these errors were encountered: