Skip to content
Tcl Source Code Artifact [f7caeb8c52]
Login

Artifact [f7caeb8c52]

Artifact f7caeb8c520f7c911c67e84c011ac6a21ba2fb3fdec7cfd73549285e2a2447b2:

Ticket change [f7caeb8c52] - Ticket [1967630fffffffff|1967630fff] <i>tclLoadDl.c dlerror() is not thread safe</i> status still Open with 4 other changes by serhiy.storchaka on 2026-10-25 11:49:46.
D 2026-10-25T11:49:46.507
J foundin 9.1.0
J icomment Reproduced\son\sNetBSD\s10.1\sand\sOpenBSD\s7.9,\swhere\sthe\sdlerror()\sstate\sis\sprocess-wide:\sa\sfailing\s&#91;load&#93;\sconcurrent\swith\sa\ssuccessful\s&#91;load&#93;\sin\sanother\sthread\sgets\sthe\sother\sthread's\smessage\sor\sNULL,\sand\sNULL\scrashes\sin\sTcl_ObjPrintf().\sLinux,\sFreeBSD\sand\smacOS\skeep\sit\sper\sthread.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=unix-dlerror-mutex|unix-dlerror-mutex],\sbased\son\sthe\sattached\spatch:\sa\smutex\sfrom\sdlopen()/dlsym()\suntil\sdlerror()\shas\sbeen\sread,\sand\s"unknown"\sfor\sa\sNULL\smessage.\sIt\sonly\scovers\sTcl's\sown\scalls,\snot\sdlopen()\sby\sother\scode\sin\sthe\sprocess.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 1967630fffffffffffffffffffffffffffffffff
U serhiy.storchaka
Z 8a8bbacd7a6b6dc46701e140e06b47f5