Skip to content
Tcl Source Code Artifact [f3c7fa973f]
Login

Artifact [f3c7fa973f]

Artifact f3c7fa973f96326f734fa9af0219096c251b1bb1:

Ticket change [f3c7fa973f] - New ticket [2939073fffffffff|2939073fff] <i>IPC via sockets and traces causes segfault</i>. by blacksqr on 2010-01-25 04:54:03.
D 2010-01-25T04:54:03
J assignee dgp
J cmimetype text/plain
J comment I\swrote\sa\ssimple\sapplication\sto\sgather\sTk\sevents\sand\spass\sthem\sfrom\sone\sinterpreter\sto\sanother\svia\stequila\s(http://wiki.tcl.tk/1243),\swhich\suses\straces\sand\ssocket\scommunication\sto\skeep\sarray\svalues\sin\ssync\sbetween\sTcl\sinterpreters.\n\nMy\sapplication\sdisplays\sa\scanvas,\sto\swhich\sa\s<Motion>\sevent\sis\sbound.\s\sThus\sas\sthe\scursor\sis\smoved\sover\sthe\scanvas\sa\ssteady\sstream\sof\sTk\sevents\sis\sgenerated;\sthe\sscripts\sassociated\swith\sthese\sevents\sare\scaptured\sand\swritten\sto\san\sarray,\swhich\stequila\sechoes\sto\san\sinterpreter\sin\sa\sseparate\sprocess.\s\s\n\nWhen\sI\sstart\sthis\sapplication\sand\smove\sthe\scursor\scontinually\sover\sthe\scanvas,\ssometime\sbetween\sfive\sand\ssixty\sseconds\slater\sone\sof\sthe\sinterpreters\ssegfaults\sand\scrashes.\n\nPlatform\sis\sUbuntu\sHardy,\swith\sActiveTcl\s8.5.5\sinstalled.\s\sI\sduplicated\sthe\sbug\susing\sPat\sThoyt's\stclkits\sversions\s8.5.8\s(http://www.patthoyts.tk/tclkit/linux-ix86/8.5.8/tclkit%2d8.5.8.gz)\sand\s8.6b1.1\s(http://www.patthoyts.tk/tclkit/linux-ix86/8.6%2dbeta/tclkit%2d8.6b1.1.gz).\n\nFor\sease\sof\sduplication\sI\screated\sa\sstarkit\scontaining\sall\srelevant\scode\scalled\sechoevent.kit\s(attached).\s\sTo\sduplicate:\n\n1.\sin\sa\sterminal\sconsole,\sexecute:\stclkit\sechoevent.kit\sserver\nThis\swill\sstart\sa\stequila\sserver.\n\n2.\sin\sa\sseparate\sterminal\sconsole,\sexecute:\stclkit\sechoevent.kit\smaster\nThis\swill\sstart\sa\ssimple\sTk\s"master"\sapplication\sthat\sdisplays\sa\scanvas.\s\sMoving\sthe\scursor\sacross\sthis\s"master"\scanvas\swill\scause\sthe\scommand\sassociated\swith\sthe\s<Motion>\sevent\sto\secho\srepeatedly\sto\sthe\sterminal\sconsole.\n\n3.\sin\sa\sthird\sterminal\sconsole,\sexecute:\stclkit\sechoevent.kit\sslave\nThis\swill\scause\san\sidentical\s"slave"\sTk\sapplication\sto\sappear,\sexcept\sevent\sprocessing\sfor\sthe\s"slave"\scanvas\sis\sdisabled.\s\sMoving\sthe\scursor\sacross\sthe\s"master"\scanvas\swill\scause\sthe\sevent\scommand\sto\secho\sto\sboth\sthe\s"master"\sconsole\sand\sthe\s"slave"\sconsole.\s\sThe\stequila\sserver\sis\spassing\sevent\sinformation\sfrom\sthe\smaster\sinterpreter\sto\sthe\sslave\sinterpreter.\n\n4.\smove\sthe\scursor\scontinually\sover\sthe\smaster\scanvas\sto\sgenerate\sa\sconstant\sstream\sof\s<Motion>\sevents\sto\sbe\sechoed\sto\sthe\sconsoles.\s\sEither\sthe\smaster\sor\sthe\sslave\sprocess\swill\scrash\swith\sa\ssegmentation\sfault\swithin\s60\sseconds.\n\s\s\s\s\s\s\s\s\s\s\s\s\nreport\scross-posted\sat:\shttp://bugs.activestate.com/show_bug.cgi?id=85927
J foundin obsolete:\s8.5.8
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter blacksqr
J subsystem 46.\sTraces
J title IPC\svia\ssockets\sand\straces\scauses\ssegfault
J type Bug
K 2939073fffffffffffffffffffffffffffffffff
U blacksqr
Z 97183eb1ab1fcff1bb666af793474c2b