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

Artifact [8efa4ae70f]

Artifact 8efa4ae70f476d103cc65a3f82826d62a90c03db5527cecce35055f8f46e7eaa:

Ticket change [8efa4ae70f] - Ticket [3592747fffffffff|3592747fff] <i>(tailcall|yieldto) failed to find the proper namespace Abort</i> status still Open with 7 other changes by pooryorick on 2018-06-23 17:00:22.
D 2018-06-23T17:00:22.908
J assignee aku
J closer nobody
J comment Under\ssome\scircumstances\sa\scoroutine\scan\sbe\sinvoked\svia\s::yieldto\swhile\sthe\snamespace\sin\swhich\sit\sresides\sis\sdying\s(nsPtr->flags&NS_DYING)\r\n\r\nThis\smay\soccur,\sand\sis\soccuring,\sfor\sexample,\swhen\sa\sTclOO\sobject\sis\sbeing\sdestroyed,\sand\sa\scoroutine\swithin\sit\sis\sinvoked\sby\san\sevent.\r\n\r\nThe\scall\sto\sTclGetNamespaceFromObj()\sat\stclBasic.c:8532\swill\sindicate\san\serror,\sbecause\sthe\scurrent\sframe's\snamespace\sis\snot\sconsidered\sto\smatch\sitself\sin\sthe\scase\sthat\sit\sis\sdying.\r\n\r\nI\sam\sunsure\swhat\sthe\spurpose\sof\sthe\stest\sis,\sor\sunder\swhat\scircumstances\sthe\stwo\snamespaces\smight\sdiffer,\sbut\sthis\sabort\soccurs\sas\sa\sresult\sof\sscript\sevaluation,\sand\shence\sshould\sbe\sconsidered\sa\sbug.
J icomment The\sfollowing\sscript\sreproduces\sthe\sissue:\r\n\r\n<code><verbatim>\r\nnamespace\seval\sns\s{\r\n\s\s\s\sproc\sp\sargs\s{\r\n\s\s\s\s\s\s\s\s::tailcall\s[namespace\scurrent]\s{*}$args\r\n\s\s\s\s}\r\n\s\s\s\snamespace\seval\s[namespace\scurrent]\s{\r\n\s\s\s\s\s\s\s\snamespace\sdelete\s[namespace\scurrent]\r\n\s\s\s\s\s\s\s\sp\r\n\s\s\s\s}\r\n}\r\n</verbatim></code>\r\n\r\n[https://core.tcl.tk/tips/doc/trunk/tip/498.md|TIP\s498]\sis\sone\ssolution\sto\sthis\r\nissue.
J login pooryorick
J mimetype text/x-fossil-wiki
J severity Minor
K 3592747fffffffffffffffffffffffffffffffff
U pooryorick
Z b2cd1a0a16cc655c8c97d2a142ec8b1f