-
Notifications
You must be signed in to change notification settings - Fork 3.9k
vendor/language: v20.2.6: mysterious index out of bounds in golang.org/x/text/internal/language #63562
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
Comments
This seems like a Go issue that was fixed: golang/text@4482a91#diff-6c5a66b686c190b74f1faad2ed43c7eb3824eaa700d8e9fb81d818084ec1115c |
Yeah, this looks like the one that @RaduBerinde found. But there's another panic in this area fixed by golang/text@e3aa4ad, which we don't have yet. The panic gets caught so it doesn't crash the cockroach process (Do those still report to sentry?) |
Usually caught panics get wrapped in assertion errors which do get reported to sentry even if they don't crash the server. |
Where do you see this?
I agree that caught panics get reported to sentry, but only if they were converted to a crdb-style assertion error. If the conversion of panic to error occurs with e.g. |
The stacktrace shows it is caught at the optbuilder boundary. |
so do we want to fold this issue into #63559? |
Using a test case from golang/text@e3aa4ad as a collation:
Yes, I think so. |
cool thanks |
This issue was autofiled by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.
Sentry link: https://sentry.io/organizations/cockroach-labs/issues/2336852841/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/util/errorutil/catch.go
Lines 28 to 30 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 164 to 166 in 4da6dc3
/usr/local/go/src/runtime/panic.go#L678-L680 in runtime.gopanic
/usr/local/go/src/runtime/panic.go#L102-L104 in runtime.goPanicSliceB
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/internal/language/parse.go#L141-L143 in golang.org/x/text/internal/language.(*scanner).resizeRange
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/internal/language/parse.go#L150-L152 in golang.org/x/text/internal/language.(*scanner).replace
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/internal/language/parse.go#L295-L297 in golang.org/x/text/internal/language.parseTag
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/internal/language/parse.go#L551-L553 in golang.org/x/text/internal/language.parseExtension
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/internal/language/parse.go#L450-L452 in golang.org/x/text/internal/language.parseExtensions
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/internal/language/parse.go#L267-L269 in golang.org/x/text/internal/language.parse
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/internal/language/parse.go#L249-L251 in golang.org/x/text/internal/language.Parse
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/language/parse.go#L45-L47 in golang.org/x/text/language.CanonType.Parse
https://github.com/cockroachdb/cockroach/blob/4da6dc378d563472d59166167ce760756e76f893/vendor/golang.org/x/text/language/parse.go#L33-L35 in golang.org/x/text/language.Parse
cockroach/pkg/sql/sem/tree/type_check.go
Lines 569 to 571 in 4da6dc3
cockroach/pkg/sql/sem/tree/type_check.go
Lines 253 to 255 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/scope.go
Lines 438 to 440 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/project.go
Lines 153 to 155 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/project.go
Lines 87 to 89 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 1061 to 1063 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 998 to 1000 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 971 to 973 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/with.go
Lines 28 to 30 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 970 to 972 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 264 to 266 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 228 to 230 in 4da6dc3
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 199 to 201 in 4da6dc3
cockroach/pkg/sql/plan_opt.go
Lines 511 to 513 in 4da6dc3
cockroach/pkg/sql/plan_opt.go
Lines 194 to 196 in 4da6dc3
cockroach/pkg/sql/conn_executor_exec.go
Lines 900 to 902 in 4da6dc3
cockroach/pkg/sql/conn_executor_exec.go
Lines 779 to 781 in 4da6dc3
cockroach/pkg/sql/conn_executor_exec.go
Lines 638 to 640 in 4da6dc3
cockroach/pkg/sql/conn_executor_exec.go
Lines 113 to 115 in 4da6dc3
v20.2.6
The text was updated successfully, but these errors were encountered: