tidb icon indicating copy to clipboard operation
tidb copied to clipboard

TestFailBusyServerCop: runtime·lock: lock count

Open hawkingrei opened this issue 3 years ago • 0 comments

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

 === RUN   TestFailBusyServerCop
fatal error: runtime·lock: lock count
runtime stack:
runtime.throw({0x3ff197f?, 0x1552000?})
	GOROOT/src/runtime/panic.go:992 +0x71
runtime.lock2(0xc000003380?)
	GOROOT/src/runtime/lock_futex.go:54 +0x189
runtime.lockWithRank(...)
	GOROOT/src/runtime/lockrank_off.go:22
runtime.lock(...)
	GOROOT/src/runtime/lock_futex.go:47
runtime.goschedImpl(0xc000003380)
	GOROOT/src/runtime/proc.go:3347 +0x6e
runtime.gosched_m(0xc000003380?)
	GOROOT/src/runtime/proc.go:3359 +0x31
runtime.mcall()
	GOROOT/src/runtime/asm_amd64.s:425 +0x43
goroutine 1 [chan receive]:
testing.(*T).Run(0xc000c6c680, {0x3fe1099?, 0x17137a5?}, 0x40e5550)
	GOROOT/src/testing/testing.go:1487 +0x37a
testing.runTests.func1(0xc000984a80?)
	GOROOT/src/testing/testing.go:1839 +0x6e
testing.tRunner(0xc000c6c680, 0xc000d3fb68)
	GOROOT/src/testing/testing.go:1439 +0x102
testing.runTests(0xc000c63680?, {0x5e2b5c0, 0x7, 0x7}, {0x8451297b5a635eae?, 0x203000?, 0x0?})
	GOROOT/src/testing/testing.go:1837 +0x457
testing.(*M).Run(0xc000c63680)
	GOROOT/src/testing/testing.go:1719 +0x5d9
go.uber.org/goleak.VerifyTestMain({0x4548c60?, 0xc000c63680?}, {0xc000427e48, 0x3, 0x3})
	external/org_uber_go_goleak/testmain.go:53 +0x3d
github.com/pingcap/tidb/store/driver.TestMain(0x3b191c0?)
	store/driver/main_test.go:47 +0x1e5
main.main()
	bazel-out/k8-fastbuild/bin/store/driver/driver_test_/testmain.go:130 +0x495
goroutine 9 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0xc000454060?)
	external/com_github_golang_glog/glog.go:882 +0x6a
created by github.com/golang/glog.init.0
	external/com_github_golang_glog/glog.go:410 +0x1bf
goroutine 10 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc000799a80)
	external/io_opencensus_go/stats/view/worker.go:276 +0xad
created by go.opencensus.io/stats/view.init.0
	external/io_opencensus_go/stats/view/worker.go:34 +0x8d
goroutine 160 [runnable]:
github.com/pingcap/tidb/store/mockstore/unistore/tikv.newLatches(...)
	store/mockstore/unistore/tikv/region.go:84
github.com/pingcap/tidb/store/mockstore/unistore/tikv.NewMockRegionManager(0xc0007d80c0, 0x1, {{0x3fc72e9, 0xe}, {0x3fc72bf, 0xe}, 0x4000000})
	store/mockstore/unistore/tikv/mock_region.go:77 +0x1dd
github.com/pingcap/tidb/store/mockstore/unistore/server.NewMock(0xc000476a80, 0x21?)
	store/mockstore/unistore/server/server.go:52 +0x18f
github.com/pingcap/tidb/store/mockstore/unistore.New({0x0?, 0x0})
	store/mockstore/unistore/mock.go:55 +0x1be
github.com/pingcap/tidb/store/driver.createUnistore(0xc000aa4ea0)
	store/driver/main_test.go:87 +0x29
github.com/pingcap/tidb/store/driver.createTestStore(0x1713cc0?)
	store/driver/main_test.go:54 +0x36
github.com/pingcap/tidb/store/driver.TestFailBusyServerCop(0xc000aa4ea0)
	store/driver/sql_fail_test.go:29 +0x25
testing.tRunner(0xc000aa4ea0, 0x40e5550)
	GOROOT/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
	GOROOT/src/testing/testing.go:1486 +0x35f
goroutine 161 [select]:
github.com/pingcap/badger.(*DB).updateSize(0xc000c6cd00?, 0xc0008b90e0)
	external/com_github_pingcap_badger/db.go:1039 +0x105
created by github.com/pingcap/badger.Open
	external/com_github_pingcap_badger/db.go:328 +0xf5c
goroutine 162 [select]:
github.com/pingcap/badger/epoch.(*ResourceManager).collectLoop(0x0?, 0xc0008b9110)
	external/com_github_pingcap_badger/epoch/manager.go:101 +0xd3
created by github.com/pingcap/badger/epoch.NewResourceManager
	external/com_github_pingcap_badger/epoch/manager.go:79 +0xda
goroutine 77 [select]:
github.com/pingcap/badger.(*levelsController).runWorker(0xc00047a620, 0xc0003100d8, 0x0)
	external/com_github_pingcap_badger/levels.go:212 +0x1fb
created by github.com/pingcap/badger.(*levelsController).startCompact
	external/com_github_pingcap_badger/levels.go:180 +0x65
goroutine 76 [select]:
github.com/pingcap/badger.(*blobGCHandler).run(0xc000a48440, 0xc0003100a8)
	external/com_github_pingcap_badger/blob.go:468 +0xd6
created by github.com/pingcap/badger.(*blobManager).Open
	external/com_github_pingcap_badger/blob.go:292 +0x5b0
goroutine 163 [runnable]:
github.com/pingcap/badger/table/memtable.newArena(...)
	external/com_github_pingcap_badger/table/memtable/arena.go:49
github.com/pingcap/badger/table/memtable.newSkiplist(0xdccc80)
	external/com_github_pingcap_badger/table/memtable/skl.go:119 +0x45
github.com/pingcap/badger/table/memtable.New(...)
	external/com_github_pingcap_badger/table/memtable/table.go:31
github.com/pingcap/badger.Open.func4()
	external/com_github_pingcap_badger/db.go:343 +0xca
created by github.com/pingcap/badger.Open
	external/com_github_pingcap_badger/db.go:339 +0x11f8
goroutine 78 [chan receive]:
github.com/pingcap/badger.(*DB).runFlushMemTable(0xc000b97680, 0x0?)
	external/com_github_pingcap_badger/db.go:920 +0xdd
created by github.com/pingcap/badger.Open
	external/com_github_pingcap_badger/db.go:361 +0x158b
goroutine 180 [chan receive]:
github.com/pingcap/badger.(*writeWorker).runMergeLSM(0xc0007d8440?, 0xc000310348?)
	external/com_github_pingcap_badger/writer.go:154 +0x9b
created by github.com/pingcap/badger.startWriteWorker
	external/com_github_pingcap_badger/writer.go:66 +0x2a5
goroutine 179 [chan receive, locked to thread]:
github.com/pingcap/badger.(*writeWorker).runWriteLSM(0xc0007d88a0, 0x0?)
	external/com_github_pingcap_badger/writer.go:141 +0x15e
created by github.com/pingcap/badger.startWriteWorker
	external/com_github_pingcap_badger/writer.go:65 +0x24d
goroutine 178 [select]:
github.com/pingcap/badger.(*writeWorker).runWriteVLog(0xc0007d88a0, 0xc000310a68)
	external/com_github_pingcap_badger/writer.go:94 +0x137
created by github.com/pingcap/badger.startWriteWorker
	external/com_github_pingcap_badger/writer.go:64 +0x1f9
-- 

https://prow.pingcap.net/view/gs/pingcapprow/logs/bazel_test_tidb/1555493566984228864

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

hawkingrei avatar Aug 10 '22 08:08 hawkingrei