{
struct worker* worker = (struct worker*)arg;
int port_num = 0;
- log_assert(worker->thr_id);
set_log_thread_id(worker, worker->daemon->cfg);
{
char name[16]; /* seems to be the safest size between
different OSes */
snprintf(name, sizeof(name), "unbound/%u", worker->thread_num);
- ub_thread_setname(worker->thr_id, name);
+ /* worker->thr_id can be written to after the thread was made
+ * by the creating thread, so this uses pthread_self. */
+ ub_thread_setname(ub_thread_self(), name);
}
ub_thread_blocksigs();
#ifdef THREADS_DISABLED
+28 May 2026: Wouter
+ - Fix #1457: race condition causes segfault when starting
+ threads.
+
27 May 2026: Wouter
- Fix for autotrust state-file line overflow, that can give
hold-down bypass. Thanks to Qifan Zhang, Palo Alto Networks,