.
D 2000-10-26T01:05:17
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2110\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-05-20'\nLastModified:\s'2000-01-20'\nSeverity:\sLOW\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\sericm\nOS:\sAll\nFixedDate:\s'2000-01-20'\nFixedInVersion:\s8.3\nClosedDate:\s'2000-01-20'\n\n\nName:\nGreg\sOrchard\n\nReproducibleScript:\nproc\supdate\s{name\sindex\sop}\s{\n\s\s\s\s\s\s\s\sputs\s"name\s$name\sindex\s$index"\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\sproc\sgetUpdate\s{inVar}\s{\n\s\s\s\s\s\s\s\supvar\s$inVar\slocalVar\n\s\s\s\s\s\s\s\sset\slocalVar\s100\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\strace\svariable\ssomevar\sw\supdate\n\s\s\s\sgetUpdate\ssomevar(1)\n\nObservedBehavior:\nThe\soutput\sfrom\sthe\sabove\sis:\n\s\s\s\s\n\s\s\s\sname\slocalVar\sindex\n\nDesiredBehavior:\nI\swould\sexpect\sto\ssee:\n\s\s\s\s\n\s\s\s\sname\ssomevar\sindex\s1\n\s\s\s\s\n\s\s\s\ssince\s"somevar"\sis\sthe\sone\svariable\sbeing\straced.\n\n\n\nThis\sis\sactually\sthe\sdesigned\sbehaviour.\s\sWhile\sit\smay\sseem\sobivously\sincorrect,\sconsider\sthe\scase\sin\swhich\sthere\sare\stwo\slevels\sof\supvar,\sand\smultiple\straces:\n\nproc\supdate\s{name\sindex\sop}\s{\nputs\s"name\s$name\sindex\s$index"\n}\n\nproc\sgetUpdate\s{inVar}\s{\nupvar\s$inVar\slocalVar\ntrace\svariable\slocalVar\sw\supdate\ngetUpdate2\slocalVar\n}\n\nproc\sgetUpdate2\s{inVar}\s{\nupvar\s$inVar\slocalVar2\nset\slocalVar2\s100\n}\n\ntrace\svariable\ssomevar\sw\supdate\ngetUpdate\ssomevar\n\nNow\sit\sis\snot\sso\sclear\swhat\sthe\sbehaviour\sshould\sbe.\s\sWhich\strace\sshould\sfire?\s\swhat\sname\sshould\sit\sbe\sgiven?\s\sIf\sthere\sare\smany\slevels\sof\sindirection,\sit\scould\sbe\scostly\sto\stry\sand\sdetermine\swhich\strace\sshould\sbe\sfired\swith\swhich\svariable\sname.\s\sAnd\sbecause\sall\sof\sthe\svariable\snames\sactually\srefer\sto\sthe\ssame\sobject,\sit\sis\sleast\sconfusing\sto\sfire\sall\sof\sthe\straces\swith\sthe\sname\sused\sto\strigger\sthe\strace.\n\n-\seric\n\n--\s01/20/2000\sericm\n\n
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 07.\sVariables
J title trace\svariable\s/\supvar\sproblem
J type Bug
K 218782ffffffffffffffffffffffffffffffffff
U nobody
Z ca7d6a3f9d147c91ffc821dd7a2fa241