Skip to content
Tcl Source Code Artifact [47c5be4fe4]
Login

Artifact [47c5be4fe4]

Artifact 47c5be4fe435c63cd733c0ae4258766397e5b8be:

Ticket change [47c5be4fe4] - Ticket [88aef05cda36aca8|88aef05cda] <i>Script level application bug in refchan causes Tcl crash</i> status still Open with 3 other changes by dgp on 2014-04-02 02:40:10.
D 2014-04-02T02:40:10.847
J icomment This\sone\sis\spretty\sugly.\r\n\r\nThe\sproblem\sarises\sbecause\sthe\sreflected\r\nchannel\sbuilds\sthe\scommand\sto\sbe\sevaluated\r\nin\san\sarray\swithin\sthe\sreflected\schannel\r\ndata\sstructure,\srcPtr->argv\s.\s\sThis\sis\spresumably\r\nso\sthat\sthe\scost\sof\sallocating\sa\snew\seval\sarray\r\ndoesn't\shave\sto\sbe\spaid\seach\stime.\r\n\r\nThe\sproblem\sis\sif\sthere\sis\sone\sargv\sarray\sper\r\nreflected\schannel,\sthen\sthere\scan\sonly\sbe\sone\r\nInvokeTclMethod()\scall\soperating\son\seach\r\nreflected\schannel\sat\sa\stime.\s\sAs\ssoon\sas\syou\s\r\ntry\sto\sdo\stwo\sconcurrently\s--\ssuch\sas\swhen\s\r\none\snests\sin\sthe\sother\s--\sthey\swill\sstomp\son\r\neach\sother's\sargument\swords,\sand\scrashing\sis\r\nabout\sthe\snicest\sthing\sto\sexpect.
J login dgp
J mimetype text/plain
K 88aef05cda36aca8233aaeaa1d8b41cb4b188192
U dgp
Z 5b3a7f2ee78125459abc490dbaf78294