Skip to content

execbuilder: index out of range panic in mkFKCheckErr #117307

@michae2

Description

@michae2

@rgcase found this panic when running the snowflake-job test in the managed-service repro against v23.2.0-rc.1. This looks similar to, but not the same as #115377. Here's the stack trace:

E240103 20:38:52.440509 12063 9@sql/conn_executor.go:1181  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1130  a SQL panic has occurred while executing the following statement:
E240103 20:38:52.440509 12063 9@sql/conn_executor.go:1181  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1130 +INSERT INTO intrusion_crdb_clusters(auxiliary_service_region, aws_account_number, backup_region, ca_cert, centralized_monitoring_sink, cidr_range, cloud_provider_account_id, cloud_provider_keychain_account_identifier, cluster_type, cmek_status, cockroach_image_name, cockroach_versio
n, crdb_cluster_id, created_at, creator_id, custom_ca, deleted_at, destroy_backupper, dns, egress_traffic_policy, enable_runtime_scanning, environment, extra_env_vars, finalize_major_upgrade_at, fluent_bit_image, forward_prometheus_metrics, friendly_id, frozen, gcp_custom_network, id, in_situ_bucket_lifetime_days, in_situ_bucket_location, kube_state_metrics_image, last_repaved, locked_at, log_export_bucket_prefix, log_to_spl
unk, logging_config_map_tenant_version, logging_config_map_version, long_running_operation_status, max_ip_allowlist_entries, max_offset, name, no_cloud_prefixed_localities, organization_id, pint_enabled, pod_security_admission_control, prometheus_extra_args, prometheus_image, repaving_enabled, repaving_interval_days, restricted_egress, short_id, sla_type, splunk_host, sql_dns, sql_proxy_image, state, tenant_dir_image, ui_dns
, updated_at, version_deferral_interval_seconds) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62)
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131  a panic has occurred!
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +runtime error: index out of range [3] with length 3
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +(1) attached stack trace
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  -- stack trace:
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:952
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | [...repeated from below...]
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +Wraps: (2) while executing: INSERT INTO _(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _) VALUES ($1, $1, __more10_100__)
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +Wraps: (3) attached stack trace
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  -- stack trace:
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:952
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | runtime.gopanic
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     GOROOT/src/runtime/panic.go:914
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:58
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | runtime.gopanic
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     GOROOT/src/runtime/panic.go:914
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:58
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | runtime.gopanic
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     GOROOT/src/runtime/panic.go:914
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | runtime.goPanicIndex
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     GOROOT/src/runtime/panic.go:114
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/opt.(*Metadata).TableMeta
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/opt/metadata.go:751
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/opt/exec/execbuilder.mkFKCheckErr
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/opt/exec/execbuilder/mutation.go:911
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/opt/exec/execbuilder.(*Builder).tryBuildFastPathInsert.func2
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/opt/exec/execbuilder/mutation.go:287
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*insertFastPathCheck).errorForRow
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/insert_fast_path.go:151
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*insertFastPathNode).runFKChecks
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/insert_fast_path.go:344
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*insertFastPathNode).BatchedNext
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/insert_fast_path.go:503
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*rowCountNode).startExec
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/plan_batch.go:173
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.startExec.func2
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/plan.go:520
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*planVisitor).visitInternal.func1
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/walk.go:112
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*planVisitor).visitInternal
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/walk.go:299
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*planVisitor).visit
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/walk.go:79
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.walkPlan
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/walk.go:43
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.startExec
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/plan.go:523
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*planNodeToRowSource).Start
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/plan_node_to_row_source.go:175
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colexec.(*Columnarizer).Init
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colexec/columnarizer.go:183
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colflow.(*batchInfoCollector).init
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colflow/stats.go:94
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:92
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colflow.(*batchInfoCollector).Init
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colflow/stats.go:103
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).Run.(*BatchFlowCoordinator).init.func2
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:245
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:92
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).init
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:244
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).Run
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:278
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql/colflow.(*vectorizedFlow).Run
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/colflow/vectorized_flow.go:320
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).Run
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:906
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  | github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).PlanAndRun
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +  |     github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1946
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +Wraps: (4) runtime error: index out of range [3] with length 3
E240103 20:38:52.442190 12063 1@util/log/logcrash/crash_reporting.go:196  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1131 +Error types: (1) *withstack.withStack (2) *safedetails.withSafeDetails (3) *withstack.withStack (4) runtime.boundsError
E240103 20:38:52.450176 12063 util/log/logcrash/crash_reporting.go:398  [T1,Vsystem,n1,peer=127.0.0.1:56508,client=127.0.0.1:56508,hostnossl,user=root] 1132  Queued as error 58d22b8fd6ac4f87b0174b2b231921df

I'm able to reproduce the panic most of the time with go test ./cronjobs/snowflake-job -count=1. Still boiling this down into a concise repro.

Jira issue: CRDB-35112

Metadata

Metadata

Assignees

Labels

C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.GA-blockerT-sql-queriesSQL Queries Teambranch-release-23.2Used to mark GA and release blockers, technical advisories, and bugs for 23.2v23.2.1

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions