.
D 2011-01-27T07:39:43
J assignee nobody
J cmimetype text/plain
J comment I've\sgot\s"out\sof\sstack\sspace"\serror\son\sAIX\swhen\srunning\s32bits-tclsh.\sNo\ssuch\serror\sof\s64bits-tclsh.\nI've\straced\sthe\scode\sof\stcl,\sI\sfound\sfollowing\sproblem:\n\n[1]\sstopped\sin\sTclpGetCStackParams\sat\sline\s1095\sin\sfile\s"/tellin/hjw/tcl8.5.9/unix/../unix/tclUnixInit.c"\s($t1)\n\s1095\s\s\s\s\s\s\s\s\s\s\s\s\s\s\stsdPtr->stackBound\s=\s(int\s*)\s((char\s*)tsdPtr->outerVarPtr\s-\n(dbx)\sn\nstopped\sin\sTclpGetCStackParams\sat\sline\s1097\sin\sfile\s"/tellin/hjw/tcl8.5.9/unix/../unix/tclUnixInit.c"\s($t1)\n\s1097\s\s\s\s\s\s\s\s\s\s\s}\selse\s{\n(dbx)\sp\stsdPtr->outerVarPtr\n0x2ff22460\n(dbx)\sp\sstackSize\n2147450878\n(dbx)\sprint\stsdPtr->stackBound\n0xaff2a462\n\nAccording\sto\sthe\smessage\sabove,\sthe\sstackSize\sis\sa\svery\sgreat\svalue,\salmost\s2G,\sand\stsdPtr->stackBound\sis\sa\soverflowed\snumber.\sThis\scause\sfollowing\scode\sreturns\sfalse:\n#define\sCheckCStack(iPtr,\slocalIntPtr)\s\\\n\s\s\s((localIntPtr)\s>\s(iPtr)->stackBound)\n(dbx)\sp\s&localInt\n0x2ff221a0\n(dbx)\sp\siPtr->stackBound\n0xaff2a462\n\nFor\s64bits-tclsh,\sthe\ssituation\sis\sas\sfollows:\n[1]\sstopped\sin\sTclpGetCStackParams\sat\sline\s1095\sin\sfile\s"/tellin/hjw/tcl8.5.9-64/unix/../unix/tclUnixInit.c"\s($t1)\n\s1095\s\s\s\s\s\s\s\s\s\s\s\s\s\s\stsdPtr->stackBound\s=\s(int\s*)\s((char\s*)tsdPtr->outerVarPtr\s-\n(dbx)\sn\nstopped\sin\sTclpGetCStackParams\sat\sline\s1097\sin\sfile\s"/tellin/hjw/tcl8.5.9-64/unix/../unix/tclUnixInit.c"\s($t1)\n\s1097\s\s\s\s\s\s\s\s\s\s\s}\selse\s{\n(dbx)\sprint\stsdPtr->outerVarPtr\n0x0ffffffffffff140\n(dbx)\sprint\sstackSize\n4294934528\n(dbx)\sprint\stsdPtr->stackBound\n0x0fffffff00007140\n\nThe\sstackSize\sis\samost\s4G,\sbut\stsdPtr->stackBound\sis\snot\soverflowed.\sSo\sthe\sCheckCStack\sreturns\strue.
J foundin obsolete:\s8.5.9
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter starwalker2000
J subsystem None
J title "out\sof\sstack\sspace"\son\sAIX
J type Bug
K 3166410fffffffffffffffffffffffffffffffff
U starwalker2000
Z 931601b49d3b1709e9ac6ebc03c726c7