execution: UNRESOLVED pthread_rwlock_destroy on rwlock with waiters! main: attempt write lock main: acquired write lock thread: attempt timed write lock, 2 seconds main: fire SIGUSR1 to thread sig_handler: signal is handled by thread sig_handler: sleeping for 4 seconds main: unlock write lock thread: correctly acquired write lock Error at pthread_destroy()