-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: CockroachDB crashes when running a certain query through drivers {pgx, npgsql} #94356
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Comments
dikshant
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
labels
Dec 28, 2022
dikshant
changed the title
sql: CockroachDB crashes when running a certain query through pgwire {pgx, npgsql}
sql: CockroachDB crashes when running a certain query through drivers {pgx, npgsql}
Dec 28, 2022
Also crashes on v22.2.0
|
This was referenced Dec 29, 2022
rafiss
added a commit
that referenced
this issue
Dec 29, 2022
rafiss
added a commit
that referenced
this issue
Dec 29, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Describe the problem
This query:
runs fine through the CockroachDB CLI:
To Reproduce
I ran that same query through pgx and npgsql. Both resulted in CockroachDB crashing. Originally I stumbled on this while running npgsql tests against CockroachDB, but when I tried it with pgx I was able to reproduce it there as well.
For reproducing via pgx see this snippet and run it locally:
For reproducing via npgsql follow these steps:
cd
into the repro directory and with CRDB running locally and executedotnet run
.Expected behavior
The database should not crash, and I should get the same result I get via the cockroach SQL Shell.
Stacktrace
This stack trace is from the official docker container for 22.2.1, but it happens on master as of 21226cf as well.
The stacktrace on master points to this:
https://github.com/cockroachdb/cockroach/blob/master/pkg/sql/pgwire/types.go#L705
Environment:
Jira issue: CRDB-22845
Epic CRDB-17785
The text was updated successfully, but these errors were encountered: