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. |
|---|---|
| Timelines: | family | ancestors | descendants | both | unix-dlerror-mutex |
| Files: | files | file ages | folders |
| SHA3-256: |
1773409c7607bafb7fb868c40d0c2187 |
| User & Date: | serhiy.storchaka on 2026-10-25 09:50:17.433 |
| Other Links: | branch diff | manifest | tags |
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
Modified unix/tclLoadDl.c
from [750ddc1554]
to [e283487137].
[diff]