Tcl Source Code

Artifact [5c8914c5bc]
Login

Artifact 5c8914c5bcc3b0a1803eb1dd38ec0252b468cf0e:

Ticket change [5c8914c5bc] - New ticket [99c02b9520] iocmd-21.21 segfault demo & more. by dgp 2014-04-21 15:54:41.
D 2014-04-21T15:54:41.864
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment \r\nNew\stest\siocmd-21.21\sdemonstrates\sa\ssegfault.\r\n\r\nIt's\sworse\sthan\sthat\sthough.\r\n\r\nIt\sdemonstrates\sthat\sreflected\schannels\sexpose\r\n(create?)\sthe\sability\sto\sclose\sa\schannel\sin\sthe\r\nmidst\sof\soperations\son\sit.\s\sThis\smeans\sthings\scan\r\ndisappear,\sdeallocate,\sinvalidate,\sand\sgo\saway,\r\nwhen\severything\sin\sprogress\sis\sassuming\sthat\swill\r\nnot\shappen.\r\n\r\nOne\sparticular\sproblem\sis\sthe\sroutine\r\n\r\nReflectInput(...,\schar\s*buf,\sint\stoRead,\sint\s*errorCodePtr);\r\n\r\nThe\sbuf\spointer\svalue\spassed\sin\sis\swhere\sRI()\sis\smeant\sto\r\nwrite\sthe\sbytes\sit\sreads.\s\sHowever\sthe\sInvokeTclMethod()\scall\r\ninside\sRI()\shas\sthe\spower\sto\sfree\sthat\smemory.\s\siocmd-21.21\r\ndemonstrates\sthis\s(and\sother\sproblems),\sand\svalgrind\swill\sindeed\r\nreport\sthe\s"Invalid\swrite"\sattempt.\r\n\r\nA\snumber\sof\spotential\ssolutions\scan\sbe\simagined,\sbut\sthey\sall\r\nseem\sunpleasant.\sComments?
J foundin 8.5+
J is_private 0
J login dgp
J priority 5\sMedium
J resolution None
J severity Severe
J status Open
J submitter dgp
J subsystem 25.\sChannel\sSystem
J title iocmd-21.21\ssegfault\sdemo\s&\smore
J type Bug
K 99c02b9520069c3ecd4bc55ae3c5137488dcf15e
U dgp
Z ee52c169b759e901066a66369dbb55ef