Skip to content
Tcl Source Code Artifact [e92507d3ea]
Login

Artifact [e92507d3ea]

Artifact e92507d3ea9736b983208426aaa4ea448cff3221:

Ticket change [e92507d3ea] - New ticket [405769ffffffffff|405769ffff] <i>rare segfault at &quot;unset -nocomplain&quot;</i>. by msofer on 2001-03-04 03:46:48.
D 2001-03-04T03:46:48
J assignee dkf
J cmimetype text/plain
J comment The\scommand\n\s\s\sunset\s-nocomplain\n(with\sno\sfurther\sarguments)\scauses\sTcl_UnsetObjCmd\s(in\ntclVar.c)\sto\srequest\sthe\sstring\srepresentation\sof\san\nobject\swhich\swas\s*not*\spassed\sas\san\sargument.\s\n\nUnder\sspecial\scircumstances\s(which\sI\scouldn't\strigger\nin\scurrent\ssources)\sthis\scauses\sa\ssegfault.\sIn\sorder\sto\ncause\sa\ssegfault,\s\s\s\n\s\s\s\s*(stackPtr(stackTop+1)->bytes)\nmust\sbe\sin\sa\sforbidden\smemory\sregion\sat\sthe\smoment\sof\nthe\sinvocation\sof\s"unset\s-nocomplain".\n\nThe\scure\sseems\spretty\sharmless:\sremove\sthe\soffending\nline,\swhich\sis\sunused\sanyway.\sThe\soffending\sstatement\n(line\s2627\sin\stclVar.c)\sreads:\n\s\s\s\s\sname\s=\sTclGetString(objv[i]);\n\nThusly\scorrected\ssources\spass\sall\stcltests.\n\n
J foundin obsolete:\s8.4a2
J priority 7\sHigh
J resolution None
J status Open
J submitter msofer
J subsystem 07.\sVariables
J title rare\ssegfault\sat\s"unset\s-nocomplain"
J type Bug
K 405769ffffffffffffffffffffffffffffffffff
U msofer
Z 55ba8980486459b5caab91ecf3bd407a