.
D 2008-01-07T09:01:02
J assignee nobody
J cmimetype text/plain
J comment The\schecking\sstack\sin\stcl8.5.0\scausing\sinfinite\sloop\sin\sprogrammes\susing\stcl\sscripts.\sThe\sgood\sexample\sis\srun\sgame\s8Kingdoms\swith\stcl8.5\sand\snothing\sis\sworking,\sbecause\sof\srunning\sin\sa\sloop.\n\nThe\sproblem\swas\slocated\sin\schecking\sstack.\sHere\sis\scomparing\sa\spointer\sreturned\sfrom\smalloc\swith\san\saddress\sfrom\sa\svariable\sin\sthe\scurrent\sstack\sframe,\sassuming\nthat\sif\sstackaddress\s<\sheapaddress\s(on\sarchitectures\swhere\sthe\sstack\sgrows\sdown)\sthat\sthe\sstack\shas\sgrown\sinto\sthe\sheap.\s\n\nWith\susing\saddress\srandomization\sor\sthreads\s(multiple\sstacks\sin\sone\saddress\sspace)\sdoesn't\smake\ssense\sto\scheck\sit.\sOther\sthing\sare\sprotected\smode\sin\sOS,\syou\scan\sdisallow\sthe\sstack\sto\sgrow\sinto\salready\sallocated\smemory\sand\sthen\sis\schecking\sreally\suselles.\n\nI\ssolved\smy\sproblem\swith\soption\sCFLAGS=-DTCL_NO_STACK_CHECK=1\sand\sthat\sfix\smy\sproblems,\sbut\sI\sappreciated\sclean\scode.\sThank\syou.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter mmaslano
J subsystem None
J title stack\schecking\scode\sisn't\sfunctional
J type Bug
K 1865728fffffffffffffffffffffffffffffffff
U mmaslano
Z 16c2bf595d16b52c2d7073863f465ee5