Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
int timer_create(clockid_t clock_id, sigevent* evp, timer_t* timer_id) {
...
char name[32];
snprintf(name, sizeof(name), "POSIX interval timer %d", to_kernel_timer_id(timer));
pthread_setname_np(timer->callback_thread, name);
The problem is that pthread_setname_np() returns ERANGE if the name is longer than 16 chars (including the NULL terminator) and the string that is constructed here is always longer than that. So these threads never have a useful thread name.