我执行索引报错:ALTER TABLE os_center.main_bill_review_detail
ADD INDEX idx_outside_bill_id (outside_bill_id) USING BTREE;
1105 - runtime error: invalid memory address or nil pointer dereference
时间: 3.019s
TiDB:8.5.6;国产ARM架构
这是tidb对应的log
[2026/05/28 17:35:28.651 +08:00] [INFO] [domain.go:352] [“diff load InfoSchema success”] [isV2=true] [currentSchemaVersion=6340] [neededSchemaVersion=6341] [“elapsed time”=1.794935ms] [gotSchemaVersion=6341] [phyTblIDs=“[8828]”] [actionTypes=“[7]”] [diffTypes=“["add index"]”]
[2026/05/28 17:35:28.656 +08:00] [INFO] [domain.go:1104] [“mdl gets lock, update self version to owner”] [jobID=11907] [version=6341]
[2026/05/28 17:35:28.679 +08:00] [INFO] [domain.go:352] [“diff load InfoSchema success”] [isV2=true] [currentSchemaVersion=6341] [neededSchemaVersion=6342] [“elapsed time”=1.399473ms] [gotSchemaVersion=6342] [phyTblIDs=“[8828]”] [actionTypes=“[7]”] [diffTypes=“["add index"]”]
[2026/05/28 17:35:28.683 +08:00] [INFO] [domain.go:1104] [“mdl gets lock, update self version to owner”] [jobID=11907] [version=6342]
[2026/05/28 17:35:28.706 +08:00] [INFO] [domain.go:352] [“diff load InfoSchema success”] [isV2=true] [currentSchemaVersion=6342] [neededSchemaVersion=6343] [“elapsed time”=1.437115ms] [gotSchemaVersion=6343] [phyTblIDs=“[8828]”] [actionTypes=“[7]”] [diffTypes=“["add index"]”]
[2026/05/28 17:35:28.712 +08:00] [INFO] [domain.go:1104] [“mdl gets lock, update self version to owner”] [jobID=11907] [version=6343]
[2026/05/28 17:35:29.499 +08:00] [INFO] [manager.go:366] [“task executor started”] [task-id=81] [type=backfill] [concurrency=4] [remaining-slots=28]
[2026/05/28 17:35:29.804 +08:00] [INFO] [backfilling_read_index.go:105] [“read index executor init subtask exec env”] [category=ddl]
[2026/05/28 17:35:29.804 +08:00] [INFO] [env.go:116] [“the ingest sorted directory”] [category=ddl-ingest] [“data path”=/tmp/tidb/tmp_ddl-4000]
[2026/05/28 17:35:29.804 +08:00] [ERROR] [task_executor.go:230] [“run task panicked, fail the task”] [task-id=81] [task-type=backfill] [recover=“runtime error: invalid memory address or nil pointer dereference”] [stack=“github.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*BaseTaskExecutor).Run.func1\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/task_executor.go:230\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:783\nruntime.panicmem\n\t/usr/local/go/src/runtime/panic.go:262\nruntime.sigpanic\n\t/usr/local/go/src/runtime/signal_unix.go:925\ngithub.com/pingcap/tidb/pkg/ddl/ingest.tryAggressiveMemory\n\t/workspace/source/tidb/pkg/ddl/ingest/config.go:178\ngithub.com/pingcap/tidb/pkg/ddl/ingest.adjustImportMemory\n\t/workspace/source/tidb/pkg/ddl/ingest/config.go:145\ngithub.com/pingcap/tidb/pkg/ddl/ingest.genConfig\n\t/workspace/source/tidb/pkg/ddl/ingest/config.go:80\ngithub.com/pingcap/tidb/pkg/ddl/ingest.CreateLocalBackend\n\t/workspace/source/tidb/pkg/ddl/ingest/backend_mgr.go:161\ngithub.com/pingcap/tidb/pkg/ddl.(*readIndexStepExecutor).Init\n\t/workspace/source/tidb/pkg/ddl/backfilling_read_index.go:108\ngithub.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*BaseTaskExecutor).createStepExecutor\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/task_executor.go:365\ngithub.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*BaseTaskExecutor).Run\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/task_executor.go:327\ngithub.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*Manager).startTaskExecutor.func2\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/manager.go:377\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).RunWithLog.func1\n\t/workspace/source/tidb/pkg/util/wait_group_wrapper.go:171”]
[2026/05/28 17:35:29.810 +08:00] [INFO] [manager.go:371] [“task executor exit”] [task-id=81] [type=backfill]
[2026/05/28 17:35:30.045 +08:00] [INFO] [domain.go:3310] [“refreshServerIDTTL succeed”] [serverID=1815] [“lease id”=51259dd1f004d396]
[2026/05/28 17:35:30.877 +08:00] [INFO] [domain.go:352] [“diff load InfoSchema success”] [isV2=true] [currentSchemaVersion=6343] [neededSchemaVersion=6344] [“elapsed time”=1.3465ms] [gotSchemaVersion=6344] [phyTblIDs=“[8828]”] [actionTypes=“[7]”] [diffTypes=“["add index"]”]
[2026/05/28 17:35:30.882 +08:00] [INFO] [domain.go:1104] [“mdl gets lock, update self version to owner”] [jobID=11907] [version=6344]
[2026/05/28 17:35:30.904 +08:00] [INFO] [domain.go:352] [“diff load InfoSchema success”] [isV2=true] [currentSchemaVersion=6344] [neededSchemaVersion=6345] [“elapsed time”=1.181042ms] [gotSchemaVersion=6345] [phyTblIDs=“[8828]”] [actionTypes=“[7]”] [diffTypes=“["add index"]”]
[2026/05/28 17:35:30.908 +08:00] [INFO] [domain.go:1104] [“mdl gets lock, update self version to owner”] [jobID=11907] [version=6345]
[2026/05/28 17:35:30.932 +08:00] [INFO] [domain.go:352] [“diff load InfoSchema success”] [isV2=true] [currentSchemaVersion=6345] [neededSchemaVersion=6346] [“elapsed time”=1.172641ms] [gotSchemaVersion=6346] [phyTblIDs=“[8828]”] [actionTypes=“[7]”] [diffTypes=“["add index"]”]
[2026/05/28 17:35:30.936 +08:00] [INFO] [domain.go:1104] [“mdl gets lock, update self version to owner”] [jobID=11907] [version=6346]
[2026/05/28 17:35:31.521 +08:00] [INFO] [coprocessor.go:1473] [“[TIME_COP_PROCESS] resp_time:308.639092ms txnStartTS:466606078339579905 region_id:128697 store_addr:10.101.204.26:20160 stats:Cop:{num_rpc:1, total_time:308.6ms} kv_process_ms:226 kv_wait_ms:73 kv_read_ms:300 processed_versions:5670 total_versions:11365 rocksdb_delete_skipped_count:0 rocksdb_key_skipped_count:5695 rocksdb_cache_hit_count:102060 rocksdb_read_count:0 rocksdb_read_byte:0”] [conn=3806854252] [session_alias=]
【TiDB 使用环境】生产环境 /测试环境
【TiDB 版本】
【部署方式】云上部署(什么云)/机器部署
【操作系统/CPU 架构/芯片详情】
【机器部署详情】CPU大小/内存大小/磁盘大小
【集群数据量】
【集群节点数】
【问题复现路径】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面
【复制黏贴 ERROR 报错的日志】
【其他附件:截图/日志/监控】
