Skip to content
Tcl Source Code Artifact [d2efd5b5fc]
Login

Artifact [d2efd5b5fc]

Artifact d2efd5b5fc4e00d86c31d07bbff8dd7478c0e925:

Ticket change [d2efd5b5fc] - Ticket [1865728fffffffff|1865728fff] <i>stack checking code isn&#39;t functional</i> status still Open with 6 other changes by msofer on 2008-01-07 16:51:13.
D 2008-01-07T16:51:13
J assignee msofer
J icomment Logged\sIn:\sYES\s\nuser_id=148712\nOriginator:\sNO\n\nPlease\sprovide\splatform\sdetails,\swhat\syou\smean\sby\s"nothing\sis\sworking\sbecause\sof\srunning\sin\sa\sloop",\sand\sas\smuch\sdebugging\shelp\sas\spossible.\sDo\syou\sget\san\sinfinite\sloop?\sA\ssegfault?\sAn\serror?\sAny\smessage?\sCan\syou\sprovide\sa\sscript\sthat\sshows\sthe\sbehaviour?\sA\ssimple\sone\sis\sbetter\sthan\sa\sbig\sone\s;)\n----\nThe\scode\sis\s*not*\s"comparing\sa\spointer\sreturned\sfrom\smalloc\swith\san\saddress\sfrom\sa\svariable\sin\sthe\scurrent\sstack".\sWhat\sis\scompared\sis\sa\spointer\sto\sa\svariable\sin\sthe\scurrent\sstack\s(&localint)\sto\san\saddress\sdetermined\sto\sbe\s"the\sstack\slimit"\sfor\sthe\scurrent\sinterp\s(iPtr->stackBound).\sThis\slimit\sis\sdetermined\sin\sUnix\sas\san\saddress\sin\sthe\sstack\splus/minus\s(the\sstack\ssize\sminus\sa\ssafety\sbuffer):\san\saddress\sin\sthe\sstack\snot\sin\sthe\sheap.\sThe\sstack\ssize\sitself\sis\sdetermined\sby\sthe\spthread\slibrary,\sexcept\sfor\sthe\sinitial\sstack\swhere\sit\sis\sdetermined\sby\srlimit.\sSee\sTclpGetCStackParams()\sand\sGetStackSize()\sin\stclUnixInit.c,\sTclpThreadGetStackSize\sin\stclUnixThrd.c.\n\nThe\scode\sdoes\swork\swith\sthreads,\sassuming\sthe\spthread\slibrary\sis\sdoing\sits\sthing.\sAs\sfar\sas\swe\sknow,\smodulo\s[Bug\s1850424]\sreferred\sto\sby\sthe\sprevious\scomment.\sAddress\srandomization\smight\showever\sbe\san\sissue?\sPlease\sprovide\sdetails.\n\nNote\sthat\sthe\scode\swill\spossibly\sfail\sif\syour\s(C,\snot\sscript)\scode:\n\s\s-\shas\sthe\smain\sTcl\sinterp\sin\sa\sthread\swhich\sis\snot\sthe\sinitial\sthread\n\s\s-\sa\sthread's\sstack\ssize\sis\schanged\safter\sthe\sfirst\scall\sto\sa\sTcl\scommand\sin\sit.\s\nOn\sthis\splease\ssee\sthe\scomments\sin\sTclpThreadGetStackSize().\sNote\sthat\sneither\stclsh\snor\sthe\sthread\sextension\sdo\sany\sof\sthis.\n\n
J login msofer
J mimetype text/plain
J subsystem 41.\sMemory\sAllocation
J username msofer
K 1865728fffffffffffffffffffffffffffffffff
U msofer
Z 9713b6ef66467a4a55744214209a0893