Skip to content
Tcl Source Code Artifact [4a1768d3de]
Login

Artifact [4a1768d3de]

Artifact 4a1768d3deef3fb10f69485ff576b82c6f2dbc90949e3ad93de0a56d19f29370:

Ticket change [4a1768d3de] - New ticket [26f1328a86863216|26f1328a86] <i>sizeof(int) &lt; sizeof(void*) -&gt; Crash</i>. by anonymous on 2022-01-07 16:13:04.
D 2022-01-07T16:13:04.617
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment I'm\shaving\sfun\strying\sto\sport\sTcl\sto\sPlan\s9\sat\sthe\smoment.\r\n\r\nOne\searly\sproblem\swas\sthat\sTcl\scrashed\sas\ssoon\sas\sI\swas\sexecuting\r\nanything,\slike\s"parray\senv".\s\sDebugging\sthe\sproblem,\sit\sturns\sout\sthat\r\nthere\sis\sa\sproblem\sin\sthe\sbytecode\sinterpreter.\s\sThis\sis\squite\ssimilar\r\nto\s#2796438\son\sAIX,\sit\smight\sbe\sthe\ssame\sissue.\r\n\r\nThe\sbytecode\sinterpreter\suses\sthe\smacro\sTclGetInt1AtPtr\sto\sread\san\r\noffset\sfrom\sthe\sbytecode.\s\sThese\soffsets\scan\sbe\snegative\sProblem\sis\r\nthat\sthe\sresult\sof\sthat\smacro\sis\san\sunsigned\sint,\sdespite\sthe\sname.\r\nAdding\sa\shuge\sunsigned\snumber\sto\sa\spointer\sinstead\sof\sa\ssmall\snegative\r\nsigned\sis\sof\scourse\snot\shealthy\sunless\syou\scan\scount\son\swrap-around.\r\nBut\son\sPlan9/amd64,\ssizeof(int)\s==\s4\sand\ssizeof(void*)\s==\s8.\r\n\r\nThe\sattached\spath\sfixes\sthis.\s\sSorry\sthat\sthis\spatch\sis\smade\sagainst\r\nthe\sGit\smirror,\sI\shope\sthat\sis\sok.
J foundin 8.7a6
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 11198a4027193b80a694e66a04403b2c879b1f6f
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title sizeof(int)\s<\ssizeof(void*)\s->\sCrash
J type Bug
K 26f1328a86863216c8fae28f55ff0e09135d5d35
U anonymous
Z dc2da3c2daf56ef954fd4c78848508dc