Just caught the most stupid bug where I was properly creating & initializing a pthread_condattr, but not passing it to the pthread_cond_init() call.
And of course the compiler did not warn me, since the variable was "used" by all those pthread_condattr_whatever() calls.