Debugging mutex lock error

Hi, when using torch.autograd.Function, I am getting the following error:

python3: ../nptl/pthread_mutex_lock.c:117: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed.

Are there any suggested ways to debug this?

Hi,

Do you have a code sample that reproduces this please?