Skip to content
Tcl Source Code Artifact [7c3ec75f9a]
Login

Artifact [7c3ec75f9a]

Artifact 7c3ec75f9af18dc9baef246d09c2be367246cfaf5a81536e23a108425bc91e39:

Ticket change [7c3ec75f9a] - Ticket [f583715154c6f33d|f583715154] <i>Fileevent runs in the wrong thread</i> status still Open with 3 other changes by sebres on 2020-03-31 16:55:22.
D 2020-03-31T16:55:22.806
J icomment There\sare\sstill\sfew\snew\sfindings\sabout\sthis:\r\n\r\n1.\s8.5\sis\snot\saffected\sbecause\ssince\s8.6\sa\snew\s(*nix)\snotifier\sgot\sintroduced,\swhich\shandlers\sare\snot\saccurate\snow\srelated\sto\schannel\smanaged\sthread\sswitch.\r\nProposed\spatch\sdoes\snot\sreally\sfix\sthat\s(just\sretards),\sso\sone\swould\ssimply\sget\sa\ssegfault\sor\sa\spanic\slike\s"FlushChannel:\sdamaged\schannel\slist"\slater.\r\n\r\n2.\s8.7\sgot\salready\san\sattempt\s(by\spooryorick)\sto\sfix\ssimilar\sissue,\sbut\salso\sthis\shas\sa\ssame\sbehavior\shere,\sif\stest\scontinues\s(SF\sor\spanic\son\sNth\siteration\smostly\slarger\sthan\s500th).\r\n\r\n3.\sit\sis\shardly\spossible\sto\sfix\sthat\sproperly\swithout\ssome\sfixes\saddressed\sin\s[815e246806]\s(and\sothers),\sjust\sbecause\sif\stwo\sthreads\sare\sworking\son\ssame\schannel\sor\sstate\s(basically\sthey\sdo\sthat,\sas\smanaged\sthread\sswitches\sin\sthe\sinterim\sstate),\sit\swill\sbe\sblamed\sto\sfail\s(so\sjust\smatter\sof\stime\swhen\sit\sgets\sbroken)\s-\sas\sits\sref-counts,\s\sinternal\sdescriptors\sor\s"handlers"\sregistered\soutside\sof\stcl\sget\smisused\sby\sone\sor\sthe\sother\sthread.\r\n\r\n4.\sI\sunderstand\sthat\sthis\sis\sa\sbug\s(and\sshould\sbe\sfixed\sor\sat\sleast\sprohibit\sdetach\sduring\sasync-connect),\sbut\swithout\sthe\sfix\sa\scorrect\shandling\sbeing\sto\screate\sevent\sfirstly\sin\shelper\s(so\sfulfill\sthe\sasynchronous\sconnect\sprocess)\sand\sonly\sthen\stransmit\sit\sto\sthe\sother\sthread,\sbut\sit\swould\sbe\sthe\sproper\sway\sto\shandle\ssuch\sasync\soperations\s(not\sthe\scommon\sfix\sfor\sthe\sbug).
J login sebres
J mimetype text/x-fossil-wiki
K f583715154c6f33d621418e8c9f6dfae5cc5ebc4
U sebres
Z eefe7007cd27a42835b732b350de1507