Skip to content
Tcl Source Code Artifact [614c66b5c2]
Login

Artifact [614c66b5c2]

Artifact 614c66b5c206498f57ee1be35c900c174b55e60e:

Ticket change [614c66b5c2] - Ticket [990453ffffffffff|990453ffff] <i>leaking mutexes on Unix</i> status still Closed with 4 other changes by dossy on 2004-08-25 18:44:38.
D 2004-08-25T18:44:38
J icomment Logged\sIn:\sYES\s\nuser_id=21885\n\nThe\sdangerous\sthing\sabout\sthis\sis\sthat\spthread_mutex_destroy\n()\son\ssome\splatforms\swill\scause\sa\scrash\sif\sthe\smutex\sis\s\nlocked.\s\sSo,\sdestroying\smutexes\sintroduces\sa\skind\sof\s"race\s\ncondition"\s--\sthe\sthread\sthat\swants\sto\sdestroy\sthe\smutex\s\ncannot\sguarantee\sthat\sanother\sthread\sdoesn't\shave\sthe\s\nmutex\slocked\swithout\slocking\sthe\smutex\sitself,\sbut\sonce\sit's\s\nlocked\sthe\smutex,\sit\scannot\sdestroy\sit\sbecause\snow\sthe\s\nmutex\sis\slocked.\n\nSee\sAOLserver\sBug\s#810799\sfor\sa\sdiscussion\son\sthis.\s\s\nDestroying\sa\slocked\smutex\sdefinitely\scrashes\sLinux\s(not\ssure\sif\s\nit's\sLinuxThreads\sor\sNPTL\sor\sboth)\sbut\sdoesn't\sseem\sto\scrash\s\non\sSolaris,\sbut\sthe\smanpages\sfor\sboth\sindicate\sthat\sa\smutex\s\nshould\sbe\sunlocked\sbefore\sexecuting\spthread_mutex_destroy\n().\n
J login dossy
J mimetype text/plain
J username dossy
K 990453ffffffffffffffffffffffffffffffffff
U dossy
Z b5e8cc864dd2b3c8808e117234f6ea18