.
D 2000-10-26T01:04:07
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1734\sRFE\nVersion:\s8.1b2\nSubmitDate:\s'1999-04-06'\nLastModified:\s'2000-02-01'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\sericm\nOS:\sAll\nFixedDate:\s'2000-02-01'\nFixedInVersion:\s8.3\nClosedDate:\s'2000-10-25'\n\n\nName:\n\nDon\sPorter\n\n\n\nComments:\n\nThe\ssame\smis-feature\sis\spresent\sin\sthe\s8.0.x\ssources.\s\sIf\sthis\spatch\sis\n\n\s\s\s\sadopted,\splease\sapply\sit\sto\sboth\sdevelopment\sbranches.\n\n\n\nDesiredBehavior:\n\nWhen\san\serror\soccurs\sin\sthe\sauto-loading\sof\sa\scommand,\s[unknown]\n\n\s\s\s\scatches\sand\sre-raises\sthe\serror.\s\sIn\sthe\sprocess,\sall\sdetails\sof\n\n\s\s\s\sthe\scalling\sstack\strace\sare\slost.\s\sThis\scan\smake\sit\sdifficult\sto\n\n\s\s\s\slocate\sthe\scause\sof\sthe\serror\swhen\sdebugging\sauto-load\sscripts.\n\n\s\s\s\s\n\n\s\s\s\s[unknown]\salso\sprepends\sthe\sstring\s"error\swhile\sautoloading\s\\"$name\\":\n\n\s\s\s\s"\n\n\s\s\s\sto\sthe\serror\smessage.\s\sThis\sinformation\ssays\ssomething\sabout\sthe\n\n\s\s\s\scontext\n\n\s\s\s\sin\swhich\sthe\serror\swas\sraised,\snothing\sabout\sthe\serror\sitself.\s\sThe\n\n\s\s\s\sproper\n\n\s\s\s\splace\sto\srecord\scontext\sinformation\sabout\san\serror\sis\sin\sthe\sglobal\n\n\s\s\s\serrorInfo\svariable.\s\sWhen\sseveral\sauto-loads\sget\snested,\sthe\sprepended\n\n\s\s\s\sstrings\sadd\sup\sto\screate\sa\slong\sconfusing\sline\sbefore\sgetting\sto\sthe\n\n\s\s\s\spoint\s:\swhat\sthe\serror\sis.\n\n\s\s\s\s\n\n\s\s\s\sThe\ssimple\spatch\sprovided\scorrects\sboth\sproblems\sby\spreserving\n\n\s\s\s\s$errorInfo\n\n\s\s\s\swhen\sre-raising\sthe\serror,\sand\sappending\sto\serrorInfo\sthe\scontextual\n\n\s\s\s\sinformation\sthat\sthe\serror\soccured\swhile\sautoloading.\n\n\n\nPatch:\n\nIndex:\sinit.tcl\n\n===================================================================\n\nRCS\sfile:\s/cvsroot/tcl/library/init.tcl,v\n\nretrieving\srevision\s1.1.2.7\n\ndiff\s-c\s-r1.1.2.7\sinit.tcl\n\n***\sinit.tcl\s\s\s\s1999/03/13\s23:49:48\s\s\s\s\s1.1.2.7\n\n---\sinit.tcl\s\s\s\s1999/04/06\s15:50:08\n\n***************\n\n***\s183,190\s****\n\n\s\s\s\s\s\s\s\sset\sret\s[catch\s{auto_load\s$name\s[uplevel\s1\s{namespace\scurrent}]}\smsg]\n\n\s\s\s\s\s\s\s\sunset\sunknown_pending($name);\n\n\s\s\s\s\s\s\s\sif\s{$ret\s!=\s0}\s{\n\n!\s\s\s\s\s\s\s\s\s\s\sreturn\s-code\s$ret\s-errorcode\s$errorCode\s\\\n\n!\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s"error\swhile\sautoloading\s\\"$name\\":\s$msg"\n\n\s\s\s\s\s\s\s\s}\n\n\s\s\s\s\s\s\s\sif\s{![array\ssize\sunknown_pending]}\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\sunset\sunknown_pending\n\n---\s183,190\s----\n\n\s\s\s\s\s\s\s\sset\sret\s[catch\s{auto_load\s$name\s[uplevel\s1\s{namespace\scurrent}]}\smsg]\n\n\s\s\s\s\s\s\s\sunset\sunknown_pending($name);\n\n\s\s\s\s\s\s\s\sif\s{$ret\s!=\s0}\s{\n\n!\s\s\s\s\s\s\s\s\s\s\sappend\serrorInfo\s"\\n\s\s\s\s(autoloading\s\\"$name\\")"\n\n!\s\s\s\s\s\s\s\s\s\s\sreturn\s-code\s$ret\s-errorcode\s$errorCode\s-errorinfo\s$errorInfo\s$msg\n\n\s\s\s\s\s\s\s\s}\n\n\s\s\s\s\s\s\s\sif\s{![array\ssize\sunknown_pending]}\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\sunset\sunknown_pending\n\n\n\nPatchFiles:\n\ninit.tcl\n\n\n\n\n\nI\sapplied\sthis\spatch\sto\sthe\s8.3\sfinal\ssources.\s\sThanks.\n\n-\seric\n\s\n--\s02/01/2000\sericm
J foundin obsolete:\s8.1b2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 56.\sLibTomMath
J title auto_load\serrors:\sdon't\sprune\serrorInfo
J type Bug
K 218685ffffffffffffffffffffffffffffffffff
U nobody
Z 35b4b9d90250ba26e35f724764cf4c32