Tcl Source Code

Artifact [7482ba2d80]
Login

Artifact 7482ba2d8051e688a490990686c745d56b540985:

Ticket change [7482ba2d80] - Closed ticket [99c02b9520]: iocmd-21.21 segfault demo & more plus 8 other changes by dgp 2014-04-21 18:56:20.
D 2014-04-21T18:56:20.381
J assignee dgp
J closedate 2456769.28912478
J closer dgp
J comment New\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 icomment Fixed\sin\s8.5\sbranch.
J login dgp
J mimetype text/plain
J resolution Fixed
J status Closed
K 99c02b9520069c3ecd4bc55ae3c5137488dcf15e
U dgp
Z 72c3c9d1051054d184958f3420f7e4a9