From: SourceForge.net <no...@so...> - 2006-03-27 17:19:09
|
Bugs item #1276628, was opened at 2005-08-30 06:46 Message generated for change (Comment added) made by andreas_kupries You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1276628&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 27. Channel Types Group: development: 8.5a4 Status: Open Resolution: None Priority: 9 Submitted By: Don Porter (dgp) Assigned to: Andreas Kupries (andreas_kupries) Summary: TCL_CHANNEL_TYPE_4 inconsistent Initial Comment: Releases Tcl 8.4.10 and 8.4.11 included TCL_CHANNEL_TYPE_4 in the public header file, defining it to be a Tcl_ChannelType struct that includes and ends with a Tcl_DriverThreadActionProc field. (TIP 218) The HEAD (8.5a4) has added another field, Tcl_DriverTruncateProc (TIP 208), but has not created the TCL_CHANNEL_TYPE_5 to distinguish channels using that field from those that do not, and could be used in an 8.4.11 interp. ---------------------------------------------------------------------- >Comment By: Andreas Kupries (andreas_kupries) Date: 2006-03-27 09:19 Message: Logged In: YES user_id=75003 Looked over the relevant TIPs, i.e. #206/208, and #218. While both of them talk about going to version 4 for driver the context makes clear that the version number is incremented from whatever is maximum at the time the TIP goes final. #218 says in effect: Right now we known version 0 to 3, and we extend to 4. And from this I conclude that if version 4 is the actual maximum at time the TIP implementation is committed it should go to version 5. I will now change the HEAD to provide version 5, to make the internal drivers v5 (if they use thread states), etc. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2006-03-09 20:54 Message: Logged In: YES user_id=80530 The time to resolve this report is before 8.5a4 is released. If valid, the issue needs fixing, if invalid, it ought to be closed. ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2005-10-05 11:04 Message: Logged In: YES user_id=75003 Hm. In the current situation a TYPE_4 channel defining a truncateProc is perfectly usable in both 8.5. and 8.4. As 8.4 has no Tcl_TruncateChannel API it will simply never acess this element. It is no matter that the structure is actually larger than 8.4 believes it is. If we go TYPE_5 for the truncateProc the channel would be unusable in 8.4, because 8.4 is not able to recognize TYPE_5. Actually it will think that the channel is TYPE_1 and dereference the version number to get the blockmode proc, crashing the core. ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2005-08-30 11:11 Message: Logged In: YES user_id=75003 I dimly remember some discussion about this on tcl-core. It might have been about a related thing tough. I will have to dig this out. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1276628&group_id=10894 |