Skip to content
Tcl Source Code Artifact [8c9ade487a]
Login

Artifact [8c9ade487a]

Artifact 8c9ade487a16fbc803b244c71507a99eaaed693fbafd971bfa4755db6c26ff55:

Ticket change [8c9ade487a] - Ticket [578155d5a19b348d|578155d5a1] <i>Very rare bug (segfault) if set variable (with error case) using self-releasable object as new value</i> status still Closed with 4 other changes by pooryorick on 2023-03-31 15:27:04.
D 2023-03-31T15:27:04.632
J closedate 2460035.14380361
J icomment "nominal\scondition\sof\severy\sfunction\sin\serror\scase\s(here\svalue\sis\snot\sassigned\sto\svariable,\sdict\sor\swhatever)\sis\sdon't\stouch\sthe\svalue,"\r\n\r\n<blockquote>\r\nNo,\sa\sfunction\sthat\sreceives\sa\sTcl_Obj\smay\sincrement\sthe\sreference\scount\sand\sthen\sdecrement\sit\sagain.\s\sThe\scaller\scan\sprotect\sitself\sfrom\sthe\seffect\sby\sincrementing\sthe\sreference\scount\sbefore\scalling\sthe\sfunction,\sand\sdecrementing\sit\slater.\s\ssebres\sis\sconflating\sthe\sidea\sthat\sat\sthe\sscript-level\sa\svariable\svalue\snominally\sremains\suntouched\swith\sthe\sfalse\sidea\sthat\sa\sTcl_Obj\sreference\scount\salso\sremains\suntouched.\r\n</blockquote>
J login pooryorick
J mimetype text/x-fossil-wiki
K 578155d5a19b348dc1a9fe96cc2c067a59326a89
U pooryorick
Z b862fe5356f24589bb2228d643981e0e