Overview
| Artifact ID: | 6ced392b32fdc0b0df746fc7140da87a65fe739210f13a415a174c7ee92d8bfd |
|---|---|
| Ticket: | c35e347c6fb8df66917b1ab6974b3638925b4aa2
Concurrent Tcl_Init calls race in Unix locale initialization, causing crashes on OpenBSD |
| User & Date: | serhiy.storchaka on 2026-10-13 19:37:12 |
Changes
- foundin changed to: "9.1.0"
- icomment:
Reproduced on OpenBSD 7.9 amd64 with the current main: the parallel mode of the attached script crashed in 5 of 5 runs (double free in <code>free()</code>), the serialized mode did not. With the attached patch it ran without a crash in 10 of 10 runs and in a run with 500 rounds. No caller of <code>Tcl_GetEncodingNameFromEnvironment()</code> holds the initialization lock, so the patch cannot deadlock. The patch is in branch [/timeline?r=unix-locale-init-lock|unix-locale-init-lock].
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"