Artifacts Associated With Ticket 010d8f38
Ticket change [b209585ece] (rid 235627) by stevel on 2024-12-01 23:42:44:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
The tclEpollNotfy PlatformEventsControl function panics if the TclOSfstat call returns -1, which occurs when using a websocket to a browser and the browser page is refreshed. Jan suggested changing the Panic call to LIST_REMOVE(filePtr, readyNode) to remove the filePtr from the hash table as that is more appropriate during the deletion of the handle, but that changes the behavior from a panic to a SIGSEGV. Tested on Ubuntu 22.04.4 LTS. Doesn't affect 8.6 since that doesn't have ePoll support on Linux.
- foundin initialized to: "8.7+"
- is_private initialized to: "0"
- login: "stevel"
- priority initialized to: "5 Medium"
- private_contact initialized to: "dbd9f1f971bee45e7989f7c0304044ff7e772893"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "stevel"
- subsystem initialized to: "25. Channel System"
- title initialized to:
tclEpollNotfy PlatformEventsControl panics if websocket disconnected
- type initialized to: "Bug"
Ticket change [e9b8c2c510] (rid 235628) by stevel on 2024-12-01 23:43:12:
- assignee changed to: "jan.nijtmans"
- login: "stevel"
- mimetype: "text/plain"
Ticket change [c339bb1253] (rid 235662) by dkf on 2024-12-02 14:13:55:
- icomment:
At the moment, it seems that the fstat call isn't doing anything useful. In particular, the contents of the statbuf aren't examined afterwards on success; at best, it changes what message we panic with.
- login: "dkf"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [e695923f47] (rid 235679) by stevel on 2024-12-02 23:59:41:
- icomment:
I've confirmed that just returning from PlatformEventsControl rather than a panic does avoid the crash. So that's a workaround albeit at the cost of a memory leak. Is that sufficient or should we keep looking for a better solution?
- login: "stevel"
- mimetype: "text/plain"
- icomment:
Add attachment "tcl.patch" [86a089eb41] (rid 237824) by stevel on 2025-02-25 08:55:27.
Ticket change [f013df1d93] (rid 238619) by oehhar on 2025-03-24 10:16:18:
- icomment:
Dear Steve, dear Donal, thanks for this great action. Is the current source code comment sufficiant? Would it feasable to mention this ticket in a source code comment? I am wondering, why this ticket is shown as "new wiki page" in fossil timeline. Is it me? Thanks for all, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [258f41b71b] (rid 238625) by stevel on 2025-03-24 11:38:45:
- icomment: "Comments added, link fixed"
- login: "stevel"
- mimetype: "text/plain"
Ticket change [0a636fb7a1] (rid 238912) by stevel on 2025-04-07 04:20:45:
- closedate changed to: "2460772.68108373"
- closer changed to: "stevel"
- login: "stevel"
- mimetype: "text/plain"
- status changed to: "Closed"
Ticket change [5be40c2137] (rid 251920) by jan.nijtmans on 2026-03-06 09:31:11:
- closedate changed to: "2461105.8966575926"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed [e3ffca215ef8cf8a|here]. No problems with it reported. If this change causes newly found problems (which is not expected), please re-open this ticket
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"