Skip to content
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

sentry: *barriers.barrierError catch.go:29: *withstack.withStack (top exception) *assert.withAssertionFailure #57792

Closed
cockroach-teamcity opened this issue Dec 10, 2020 · 1 comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report.

Comments

@cockroach-teamcity
Copy link
Member

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/2083987031/?referrer=webhooks_plugin

Panic message:

*barriers.barrierError
catch.go:29: *withstack.withStack (top exception)
*assert.withAssertionFailure

Stacktrace (expand for inline code snippets):

// get reported to Sentry.
err = errors.HandleAsAssertionFailure(err)
}
in pkg/util/errorutil.ShouldCatch
// manipulate locks.
if ok, e := errorutil.ShouldCatch(r); ok {
err = e
in pkg/sql/opt/norm.(*Factory).AssignPlaceholders.func1
/usr/local/go/src/runtime/panic.go#L678-L680 in runtime.gopanic
/usr/local/go/src/runtime/panic.go#L198-L200 in runtime.panicmem
/usr/local/go/src/runtime/signal_unix.go#L393-L395 in runtime.sigpanic
switch {
case desc.Dropped() && !flags.IncludeDropped:
return NewInactiveDescriptorError(ErrDescriptorDropped)
in pkg/sql/catalog.FilterDescriptorState
// OFFLINE if the relevant flag is set.
if err := catalog.FilterDescriptorState(desc, flags.CommonLookupFlags); err != nil {
if flags.Required {
in pkg/sql/catalog/catalogkv.UncachedPhysicalAccessor.GetObjectDesc
phyAccessor := catalogkv.UncachedPhysicalAccessor{}
return phyAccessor.GetObjectDesc(
ctx,
in pkg/sql/catalog/descs.(*Collection).getObjectVersion.func1
if shouldReadFromStore {
return readObjectFromStore()
}
in pkg/sql/catalog/descs.(*Collection).getObjectVersion
) (*tabledesc.Immutable, error) {
desc, err := tc.getObjectVersion(ctx, txn, tn, flags)
if err != nil {
in pkg/sql/catalog/descs.(*Collection).GetTableVersion
}
table, err := a.tc.GetTableVersion(ctx, txn, &a.tableName, flags)
if table == nil {
in pkg/sql/catalog/accessors.(*CachedPhysicalAccessor).GetObjectDesc
// Fallthrough.
return l.Accessor.GetObjectDesc(ctx, txn, settings, codec, db, schema, object, flags)
}
in pkg/sql/catalog/accessors.(*LogicalSchemaAccessor).GetObjectDesc
lookupFlags.CommonLookupFlags.AvoidCached = p.avoidCachedDescriptors
objDesc, err := sc.GetObjectDesc(ctx, p.txn, p.ExecCfg().Settings, p.ExecCfg().Codec, dbName, scName, tbName, lookupFlags)
in pkg/sql.(*planner).LookupObject
if found, objMeta, err := r.LookupObject(ctx, lookupFlags, curDb, scName, u.Object()); found || err != nil {
if err == nil {
in pkg/sql/sem/tree.ResolveExisting
) (res tree.NameResolutionResult, prefix tree.ObjectNamePrefix, err error) {
found, prefix, descI, err := tree.ResolveExisting(ctx, un, sc, lookupFlags, sc.CurrentDatabase(), sc.CurrentSearchPath())
if err != nil {
in pkg/sql/catalog/resolver.ResolveExistingObject
un := tn.ToUnresolvedObjectName()
desc, prefix, err := ResolveExistingObject(ctx, sc, un, lookupFlags)
if err != nil || desc == nil {
in pkg/sql/catalog/resolver.ResolveExistingTableObject
lflags := tree.ObjectLookupFlagsWithRequiredTableKind(tree.ResolveAnyTableKind)
desc, err := resolver.ResolveExistingTableObject(ctx, oc.planner, &oc.tn, lflags)
if err != nil {
in pkg/sql.(*optCatalog).ResolveDataSource
}
ds, resName, err := c.f.catalog.ResolveDataSource(c.f.evalCtx.Context, flags, tn)
if err != nil {
in pkg/sql/opt/norm.(*CustomFuncs).foldStringToRegclassCast
if typ.Oid() == types.RegClass.Oid() && input.DataType().Family() == types.StringFamily {
expr, err := c.foldStringToRegclassCast(input, typ)
if err == nil {
in pkg/sql/opt/norm.(*CustomFuncs).FoldCast
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L16501-L16503 in pkg/sql/opt/norm.(*Factory).ConstructCast
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L19868-L19870 in pkg/sql/opt/norm.(*Factory).CopyAndReplaceDefault
}
return f.CopyAndReplaceDefault(e, replaceFn)
}
in pkg/sql/opt/norm.(*Factory).AssignPlaceholders.func2
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L20368-L20370 in pkg/sql/opt/norm.(*Factory).invokeReplace
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L19869-L19871 in pkg/sql/opt/norm.(*Factory).CopyAndReplaceDefault
}
return f.CopyAndReplaceDefault(e, replaceFn)
}
in pkg/sql/opt/norm.(*Factory).AssignPlaceholders.func2
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L20368-L20370 in pkg/sql/opt/norm.(*Factory).invokeReplace
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L20357-L20359 in pkg/sql/opt/norm.(*Factory).copyAndReplaceDefaultScalarListExpr
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L19913-L19915 in pkg/sql/opt/norm.(*Factory).CopyAndReplaceDefault
}
return f.CopyAndReplaceDefault(e, replaceFn)
}
in pkg/sql/opt/norm.(*Factory).AssignPlaceholders.func2
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L20368-L20370 in pkg/sql/opt/norm.(*Factory).invokeReplace
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L20292-L20294 in pkg/sql/opt/norm.(*Factory).copyAndReplaceDefaultProjectionsExpr
https://github.com/cockroachdb/cockroach/blob/150c5918fb6e28e0ea5bfa4e8e94088986fbbf98/pkg/sql/opt/norm/factory.og.go#L19225-L19227 in pkg/sql/opt/norm.(*Factory).CopyAndReplaceDefault

pkg/util/errorutil/catch.go in pkg/util/errorutil.ShouldCatch at line 29
pkg/sql/opt/norm/factory.go in pkg/sql/opt/norm.(*Factory).AssignPlaceholders.func1 at line 235
/usr/local/go/src/runtime/panic.go in runtime.gopanic at line 679
/usr/local/go/src/runtime/panic.go in runtime.panicmem at line 199
/usr/local/go/src/runtime/signal_unix.go in runtime.sigpanic at line 394
pkg/sql/catalog/descriptor.go in pkg/sql/catalog.FilterDescriptorState at line 201
pkg/sql/catalog/catalogkv/physical_accessor.go in pkg/sql/catalog/catalogkv.UncachedPhysicalAccessor.GetObjectDesc at line 320
pkg/sql/catalog/descs/collection.go in pkg/sql/catalog/descs.(*Collection).getObjectVersion.func1 at line 783
pkg/sql/catalog/descs/collection.go in pkg/sql/catalog/descs.(*Collection).getObjectVersion at line 860
pkg/sql/catalog/descs/collection.go in pkg/sql/catalog/descs.(*Collection).GetTableVersion at line 760
pkg/sql/catalog/accessors/physical_schema_accessors.go in pkg/sql/catalog/accessors.(*CachedPhysicalAccessor).GetObjectDesc at line 132
pkg/sql/catalog/accessors/logical_schema_accessors.go in pkg/sql/catalog/accessors.(*LogicalSchemaAccessor).GetObjectDesc at line 136
pkg/sql/resolver.go in pkg/sql.(*planner).LookupObject at line 209
pkg/sql/sem/tree/name_resolution.go in pkg/sql/sem/tree.ResolveExisting at line 314
pkg/sql/catalog/resolver/resolver.go in pkg/sql/catalog/resolver.ResolveExistingObject at line 153
pkg/sql/catalog/resolver/resolver.go in pkg/sql/catalog/resolver.ResolveExistingTableObject at line 90
pkg/sql/opt_catalog.go in pkg/sql.(*optCatalog).ResolveDataSource at line 207
pkg/sql/opt/norm/fold_constants_funcs.go in pkg/sql/opt/norm.(*CustomFuncs).foldStringToRegclassCast at line 321
pkg/sql/opt/norm/fold_constants_funcs.go in pkg/sql/opt/norm.(*CustomFuncs).FoldCast at line 338
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).ConstructCast at line 16502
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).CopyAndReplaceDefault at line 19869
pkg/sql/opt/norm/factory.go in pkg/sql/opt/norm.(*Factory).AssignPlaceholders.func2 at line 254
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).invokeReplace at line 20369
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).CopyAndReplaceDefault at line 19870
pkg/sql/opt/norm/factory.go in pkg/sql/opt/norm.(*Factory).AssignPlaceholders.func2 at line 254
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).invokeReplace at line 20369
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).copyAndReplaceDefaultScalarListExpr at line 20358
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).CopyAndReplaceDefault at line 19914
pkg/sql/opt/norm/factory.go in pkg/sql/opt/norm.(*Factory).AssignPlaceholders.func2 at line 254
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).invokeReplace at line 20369
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).copyAndReplaceDefaultProjectionsExpr at line 20293
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).CopyAndReplaceDefault at line 19226
Tag Value
Cockroach Release v20.2.0
Cockroach SHA: 150c591
Platform linux amd64
Distribution CCL
Environment v20.2.0
Command server
Go Version ``
# of CPUs
# of Goroutines
@cockroach-teamcity cockroach-teamcity added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report. labels Dec 10, 2020
@yuzefovich
Copy link
Member

dup of #57639

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. O-sentry Originated from an in-the-wild panic report.
Projects
None yet
Development

No branches or pull requests

2 participants