The following reply was made to PR lib/60215; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: lib/60215: ld.elf_so dlerror() state is not thread-local
Date: Wed, 29 Apr 2026 08:18:16 +0900
> ld.elf_so doesn't itself have any notion of threads, which makes it
> quite hard to make error messages thread-safe.
>From the application's point of view, this is not only about making
error messages thread-safe. If dlerror() state is process-global,
the usual dlerror()/dlsym()/dlerror() sequence can report an
unrelated error from another LWP and make the application take
the wrong error path.