Skip to content
Tcl Source Code Artifact [60272ca205]
Login

Artifact [60272ca205]

Artifact 60272ca205aa6bc5d1f54cbe981d5cf157498272f4acfb0fba51cf31fea1b1bc:

Ticket change [60272ca205] - Ticket [be38540b321769e5|be38540b32] <i>Deadlock during fork in TclpAlloc</i> status still Open with 4 other changes by serhiy.storchaka on 2026-10-13 16:15:15.
D 2026-10-13T16:15:15.293
J foundin 9.1.0
J icomment Still\shappens\swith\s9.1,\snow\sin\s<code>GetCache()</code>\sof\sthe\sthreaded\nallocator:\sif\sanother\sthread\sholds\sa\slock\sof\sthe\sallocator\swhen\n<code>fork()</code>\sis\scalled,\sthe\schild\sinherits\sthe\slock\sin\sthe\slocked\sstate,\nand\sits\sfirst\sallocation\sthat\sneeds\sit\snever\sreturns.\sWith\sthe\sattached\nforkhang.c,\swhere\sthreads\sallocate\sand\sexit\swhile\sanother\sthread\sforks,\s37\sof\n120000\schildren\shung.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=alloc-fork-deadlock|alloc-fork-deadlock]:\nhold\sall\sallocator\slocks\sacross\s<code>fork()</code>\swith\n<code>pthread_atfork()</code>.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K be38540b321769e53e36e8d03b1a867a1df4675f
U serhiy.storchaka
Z b175e61902b9a3299b71bad777b45f4e