How to find out locking problem