D 2020-01-17T10:45:35.206 J assignee nobody J closer nobody J cmimetype text/plain J comment Builtin\slsort\scommand\sseg\sfaults\sfor\sa\slist\swith\slength\s>\s89,478,485\sin\sTcl8.6.6.\r\n\r\nThe\sproblem\soccurs\sdues\sto\sint\soverflow\sin\sthe\sallocation\sof\selementArray\son\sline\r\n3965\sof\stclCmdIL.c.\sThe\ssize\sparamater\sto\sTclStackAlloc\sis\san\sint:\r\n\s\s\s\s(int)\slength\s*\ssizeof(SortElement)\r\nwhich\swill\soverflow\sfor\sthe\slength\squoted\sabove.\s\r\n\r\nIt\sis\salso\sworth\snoting\sthat\sthe\ssame\sproblem\soccurs\sin\sTcl8.5\sbut\srequires\sa\s\r\nlist\stwice\sas\slong\s(i.e.\slength\s>\s178,956,970)\ssince\sin\s8.5\sthe\sallocation\r\nfunction\stakes\sunsigned\sint\sas\sa\sparameter\sand\sso\sneeds\sa\slarger\slist\sto\r\noverflow.\r\n\r\nI\sunderstand\sthe\s2G\sobject\ssize\slimit\sthat\sexists\sin\sTCL\sbut\sthis\sseg\sfault\sis\r\nunexpected\sas\sthe\slist\ssize\sneeded\sto\strigger\sit\sis\smuch\ssmaller\sthan\sexpected\r\ndue\sto\sthe\sincrease\sby\sfactor\ssizeof(SortElement)\s==\s24. J foundin 8.6 J is_private 0 J login mauricek J priority 5\sMedium J private_contact f4133a2c7edf126fe2f5e0da683dc0ce83c9e85d J resolution None J severity Severe J status Open J submitter mauricek J subsystem 14.\sList\sObject J title Seg\sfault\sin\slsort\sfor\slarge\slist\slength J type Bug K 5d989f9ba34bb5c3457bfee1737daeff565efa13 U mauricek Z 727b7453b6c999c9702791fc43498d7a