gustavonihei commented on pull request #5921: URL: https://github.com/apache/incubator-nuttx/pull/5921#issuecomment-1085008785
> yes,is a ltp case,and i see https://pubs.opengroup.org/onlinepubs/000095399/functions/pthread_create.html ,it updating the ERRORS section to remove the mandatory [EINVAL] error (The value specified by attr is invalid"), and adding the optional [EINVAL] error (The attributes specified by attr are invalid"). The link refers to an outdated version of the standard, which has already been superseded by [Issue 7](https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_create.html) which states: ``` The [EINVAL] error for an uninitialized thread attributes object is removed; this condition results in undefined behavior. ``` We could add a `DEBUGASSERT` to prevent the undefined behavior during development, but returning `EINVAL` is not compliant to the latest version of the standard. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org