Skip to content
Tcl Source Code Artifact [f68ef88491]
Login

Artifact [f68ef88491]

Artifact f68ef8849131b15b6e09cafb832b6ce42d85da0112ef7b12fbec95f9d6eb0a65:

Ticket change [f68ef88491] - Ticket [79474c58800cdf94|79474c5880] <i>refchan segfault</i> status still Open with 4 other changes by apnadkarni on 2024-04-29 06:10:33.
D 2024-04-29T06:10:33.611
J icomment For\sthe\srecord,\sthis\sbug\sis\sstill\spresent\sin\sTcl\s9.0b2.\r\n\r\nLooking\sat\sthe\score\sdump,\sthe\sroot\scause\sseems\ssimilar\sto\sthat\sin\s[88aef05cd](https://core.tcl-lang.org/tcl/tktview/88aef05cda36aca8233a)\s-\sreentrancy\sinto\sTclInvokeMethod.\sA\scursory\sinspection\sof\sthe\scode\sshows\sthe\srefchan\sread\smethod\sin\sthe\stest\scalling\sclose\swhich\snests\sa\scall\sinto\sfinalize\sreleasing\svarious\sresources.\sAs\sthe\sstack\sunwinds\sat\sthe\stop\slevel\sTclInvokeMethod,\sfreed\smemory\sis\saccessed\sresulting\sin\sthe\scrash.\r\n\r\nFixing\swould\srequire\seither\r\n\r\n1.\sProtection\sof\sall\sdata\sstructures\sto\shandle\sreentrant\scalls\r\n\r\n2.\sForbid\sany\srecursive\scalls\sinto\srefchans\sfrom\sthe\sscript\slevel\srefchan\sas\ssuggested\sby\s@aku\sin\sthe\sabove\smentioned\sticket\sas\sone\sof\sthe\soptions.\r\n\r\nThe\sformer\sfeels\sa\sdaunting\stask\sfor\s9.0,\sthough\sI'm\snot\ssure\sexactly\show\smuch\swork\sis\srequired.\sThe\slatter\sis\slikely\ssimpler\s(though\snot\strivial)\sbut\swould\smean\sbackward\sincompatibility\s(implying\sit's\seither\sdone\sfor\s9.0\sor\shave\sto\swait\still\s10.0),\sloss\sof\sfunction,\sand\swould\srequire\sa\sTIP.
J login apnadkarni
J mimetype text/x-markdown
J severity Important
K 79474c58800cdf94559a2c01230b4536aa416016
U apnadkarni
Z 8b76f9fd2e125b811495caaed53595c9