Actions
Bug #14807
closed2.6.0-preview2 segfaults on OpenBSD due to missing pthread_condattr_init call
Description
r63238 refactored thread_pthread.c, and where there was previously a pthread_condattr_init call to initialize the pthread_condattr_t value, it removed the call and passed the pthread_condattr_t* directly to pthread_condattr_setclock without initializing the value by calling pthread_condattr_init first. On some operating systems that works, but it's not required to work, and it segfaults on OpenBSD because the pthread_condattr_t is not initialized.
The attached patch should fix the problem.
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0