Artifacts Associated With Ticket 218495
Ticket change [1ce8f5711c] (rid 90697) by nobody on 2000-10-26 01:01:19:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 714 Bug Version: 8.0.3 SubmitDate: '1998-10-13' LastModified: '1999-10-21' Severity: SER Status: Released Submitter: admin ChangedBy: hobbs OS: All OSVersion: NA Machine: NA FixedDate: '1999-10-21' FixedInVersion: 8.2.1 ClosedDate: '2000-10-25' > I've been fighting with a bug/feature of Tcl 8.0.3 until I read the solution > on comp.lang.tcl. The problem is that I've been using some Tcl channels > that I never register with an interpreter. I register a channel handler > which only works for one event under 8.0.3 whereas it worked without fail > under 8.0p2 and ealier. > > I understand that you've changed Tcl_CreateChannelHandler internally so > that it now requires you to have registered the channel or it will be closed > on the first event. Since this is a SIGNIFICANT CHANGE, I think this should > be noted somewhere as either a known bug or at least an incompatibility > introduced in the 8.0.3 release to save others the waste of time that I > experienced. Adding a call to Tcl_RegisterChannel is simple enough, but it > should be posted somewhere visisble, IMHO. :-) > > -- Mike Colin and Jacob made this fix. It seems there is a possibility that a channel structure can get garbage collected out from under Tcl_NotifyChannel if the channel is closed during the notify callback. In particular, a fileevent script that closes its handle seems to have triggered this bug in some plug-in context. The fix they made is just wrong, however, as it precludes the close from having any effect, so if you wanted to see error codes from the Tcl close command, they would be lost. I believe the fix is to use TclPreserve instead of Tcl_RegisterChannel. --Brent As of 8.2.1, Tcl_NotifyChannel uses Tcl_Preserve/Tcl_Release (fix made sometime before 8.2). -- 10/21/1999 hobbs
- foundin initialized to: "obsolete: 8.0.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "37. File System"
- title initialized to:
tcl 8.0.3 incompatibility in Tcl_CreateChannelHandler
- type initialized to: "Bug"
Ticket change [9863e62f91] (rid 110597) by welch on 2000-10-26 08:23:18:
- closedate changed to: "2000-10-26T01:23:18"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [16f4b7bb96] (rid 124803) by dgp on 2001-04-14 02:27:18:
- closedate changed to: "2001-04-13T19:27:18"
- closer changed to: "dgp"
- subsystem changed to: "25. Channel System"