Project

General

Profile

Bug #980

Updated by Dmitry Moskalchuk over 4 years ago

~~~ c <pre><code class="c"> 
 pthread_attr_t attr; 
 pthread_attr_init(&attr); 
 pthread_attr_destroy(&attr); 
 pthread_create(&tid, &attr, func, NULL); /* <= This line cause crash */ 
 ~~~ </code></pre> 

 This is wrong behavior; `pthread_create()` @pthread_create()@ should return `EINVAL` EINVAL rather than crash.

Back