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

Runtime error occurs when do sysbench #57528

Open
crazycs520 opened this issue Nov 20, 2024 · 1 comment
Open

Runtime error occurs when do sysbench #57528

crazycs520 opened this issue Nov 20, 2024 · 1 comment

Comments

@crazycs520
Copy link
Contributor

crazycs520 commented Nov 20, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

sysbench --config-file=sysbench.conf oltp_point_select --tables=16 --table-size=1000000 --threads=128 run

During running, execute following SQL in TiDB:

set global tidb_enable_stmt_summary=off;
set global tidb_enable_collect_execution_info=off;
set global tidb_max_chunk_size=128;

panic log:

[2024/11/20 03:23:22.528 +00:00] [INFO] [conn.go:1184] ["command dispatched failed"] [conn=2868903952] [session_alias=] [connInfo="id:2868903952, addr:10.202.0.103:37728 status:10, collation:utf8mb4_general_ci, user:root"] [command=Execute] [status="inTxn:0, autocommit:1"] [sql="SELECT c FROM sbtest11 WHERE id=? [arguments: 500555]"] [txn_mode=PESSIMISTIC] [timestamp=0] [err="runtime error: invalid memory address or nil pointer dereference
github.com/pingcap/errors.AddStack
	/home/transaction/go/pkg/mod/github.com/pingcap/[email protected]/errors.go:178
github.com/pingcap/errors.Trace
	/home/transaction/go/pkg/mod/github.com/pingcap/[email protected]/juju_adaptor.go:15
github.com/pingcap/tidb/pkg/util.GetRecoverError
	/home/transaction/tidb/pkg/util/util.go:288
github.com/pingcap/tidb/pkg/executor/internal/exec.Close.func1
	/home/transaction/tidb/pkg/executor/internal/exec/executor.go:473
runtime.gopanic
	/usr/local/go/src/runtime/panic.go:785
runtime.panicmem
	/usr/local/go/src/runtime/panic.go:262
runtime.sigpanic
	/usr/local/go/src/runtime/signal_unix.go:917
github.com/pingcap/tidb/pkg/util/execdetails.(*RuntimeStatsColl).RegisterStats
	/home/transaction/tidb/pkg/util/execdetails/execdetails.go:1476
github.com/pingcap/tidb/pkg/executor.(*PointGetExecutor).Close.func1
	/home/transaction/tidb/pkg/executor/point_get.go:257
github.com/pingcap/tidb/pkg/executor.(*PointGetExecutor).Close
	/home/transaction/tidb/pkg/executor/point_get.go:278
github.com/pingcap/tidb/pkg/executor/internal/exec.Close
	/home/transaction/tidb/pkg/executor/internal/exec/executor.go:480
github.com/pingcap/tidb/pkg/executor.(*recordSet).Finish.func1
	/home/transaction/tidb/pkg/executor/adapter.go:202
sync.(*Once).doSlow
	/usr/local/go/src/sync/once.go:76
sync.(*Once).Do
	/usr/local/go/src/sync/once.go:67
github.com/pingcap/tidb/pkg/executor.(*recordSet).Finish
	/home/transaction/tidb/pkg/executor/adapter.go:201
github.com/pingcap/tidb/pkg/server/internal/resultset.(*tidbResultSet).Finish
	/home/transaction/tidb/pkg/server/internal/resultset/resultset.go:79
github.com/pingcap/tidb/pkg/server.(*clientConn).writeChunks
	/home/transaction/tidb/pkg/server/conn.go:2375
github.com/pingcap/tidb/pkg/server.(*clientConn).writeResultSet
	/home/transaction/tidb/pkg/server/conn.go:2262
github.com/pingcap/tidb/pkg/server.(*clientConn).executePreparedStmtAndWriteResult
	/home/transaction/tidb/pkg/server/conn_stmt.go:342
github.com/pingcap/tidb/pkg/server.(*clientConn).executePlanCacheStmt
	/home/transaction/tidb/pkg/server/conn_stmt.go:234
github.com/pingcap/tidb/pkg/server.(*clientConn).handleStmtExecute
	/home/transaction/tidb/pkg/server/conn_stmt.go:225
github.com/pingcap/tidb/pkg/server.(*clientConn).dispatch
	/home/transaction/tidb/pkg/server/conn.go:1405
github.com/pingcap/tidb/pkg/server.(*clientConn).Run
	/home/transaction/tidb/pkg/server/conn.go:1147
github.com/pingcap/tidb/pkg/server.(*Server).onConn
	/home/transaction/tidb/pkg/server/server.go:741
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1700
SELECT c FROM sbtest11 WHERE id=? [arguments: 500555]"]

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

> select tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v8.5.0-alpha-164-g9530fdc238
Edition: Community
Git Commit Hash: 9530fdc2388d025af86eb6fce5e617972c361000
Git Branch: master
UTC Build Time: 2024-11-20 03:18:44
GoVersion: go1.23.3
Race Enabled: false
Check Table Before Drop: false
Store: tikv
@crazycs520 crazycs520 added the type/bug The issue is confirmed as a bug. label Nov 20, 2024
@crazycs520
Copy link
Contributor Author

@yibin87 PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants