Tcl Source Code

Check-in [1773409c76]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [1967630fff]: tclLoadDl.c dlerror() is not thread safe. On NetBSD and OpenBSD the dlerror() state is process-wide, so a failing [load] in one thread could get the error message of another thread, or NULL, which crashed in Tcl_ObjPrintf(). Hold a mutex from dlopen()/dlsym() until the matching dlerror() has been read, and use "unknown" if dlerror() returns NULL. Based on the patch by George Peter Staplin attached to the ticket.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | unix-dlerror-mutex
Files: files | file ages | folders
SHA3-256: 1773409c7607bafb7fb868c40d0c21875c3d29bbace99caf09b5c8de8db59d69
User & Date: serhiy.storchaka 2026-10-25 09:50:17.433
Context
2026-10-28
13:56
Fix [1967630fff]: tclLoadDl.c dlerror() is not thread safe check-in: e0e0341124 user: jan.nijtmans tags: trunk, main
2026-10-25
09:50
Fix [1967630fff]: tclLoadDl.c dlerror() is not thread safe. On NetBSD and OpenBSD the dlerror() stat... closed check-in: 1773409c76 user: serhiy.storchaka tags: unix-dlerror-mutex
2026-10-24
15:07
More marking of default switch branches as unreachable check-in: d6dd6d0f71 user: dkf tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to unix/tclLoadDl.c.