Skip to content
Tcl Source Code Artifact [0501051dde]
Login

Artifact [0501051dde]

Artifact 0501051dde78d5866af78846715510895cc55a24809032c57d1bb9077f9fe395:

Ticket change [0501051dde] - Closed ticket [8aa32fadb361b076|8aa32fadb3]: <i>Tcl_CreateFileHandler crash</i> plus 4 other changes by serhiy.storchaka on 2026-09-20 10:46:49.
D 2026-09-20T10:46:49.122
J icomment The\sfloat\swas\sconverted\sto\s59\sby\sPython\s(hence\sthe\sDeprecationWarning);\sthe\scrash\scomes\sfrom\sthe\sdescriptor:\s674664117164\swas\struncated\sto\sa\sC\sint\s(354251692)\sby\sPython\s2.6,\sand\sthe\sselect\snotifier\spasses\sany\sdescriptor\sto\s<tt>FD_SET()</tt>\swithout\schecking\sit\sagainst\sFD_SETSIZE,\sso\sit\swrites\soutside\sthe\s<tt>fd_set</tt>.\sThe\ssame\shappens\swith\sany\sdescriptor\s>=\sFD_SETSIZE\s(1024\son\sLinux),\svalid\sor\snot;\swith\s8.6.17\sand\sa\sfortified\sglibc:\s"bit\sout\sof\srange\s0\s-\sFD_SETSIZE\son\sfd_set".\sPython\s3\srejects\sthe\sdescriptor\sand\sthe\sfloat\smask\sof\sthis\sscript\s(OverflowError,\sTypeError),\sbut\s<tt>createfilehandler(5000,\s1,\scallback)</tt>\sor\sa\sreal\schannel\swith\sa\sdescriptor\s>=\sFD_SETSIZE\sstill\saborts.\sThe\sepoll\snotifier\s(default\son\sLinux\sin\s9.x)\sis\snot\saffected.\n\nThis\sis\s[c6897e6e6a],\swhich\shas\sthe\sanalysis\sand\sa\sproposed\sfix\s(note\sthat\srejecting\sdescriptors\swhen\schannels\sare\screated\sdoes\snot\sprotect\sTcl_CreateFileHandler()\scalled\sby\san\sapplication\swith\sits\sown\sdescriptors).
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
J resolution Duplicate
J status Closed
K 8aa32fadb361b076d66aa37d44b6eaa43eca078d
U serhiy.storchaka
Z 4ec6e7e6080fe296a1265dce66ba6b1f