这些goroutine显示: locked to thread, 但上网查找有回复说到, 这并不是一个真正的死锁, 而是正常的goroutine拿线程锁的过程. 可能调用了cgo或者runtime.LockOSThread. 这个问题可以忽略掉, 以防绕进死胡同.
1 2 3 4 5
That is not a deadlock, at least not a deadlock in the Go program. It is normal for a goroutine to be locked to a thread. It can happen because of cgo, or because the code called runtime.LockOSThread. It is not a problem. The problem is that the thread has not made any progress for 214 minutes; what that is depends on what it is doing.