Artifacts Associated With Ticket 875701ffffffffff
Ticket change [1e4b30acb0] (rid 90944) by davygrvy on 2004-01-12 21:56:00:
- assignee initialized to: "davygrvy"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Initial patch.. work in progress, aiming for inclusion in 8.5.0
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "davygrvy"
- subsystem initialized to: "25. Channel System"
- title initialized to:
ver 4 update for Tcl_ChannelType to support cut/splice
- type initialized to: "Patch"
Ticket change [41628016b0] (rid 116183) by davygrvy on 2004-01-13 04:56:01:
- icomment:
File Added - 73183: patch.txt
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [7d0c530526] (rid 97178) by davygrvy on 2004-01-13 07:45:23:
- icomment:
Logged In: YES user_id=7549 Only tested on Win2K. All tests pass for rev#2 !!!
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [fc2e047002] (rid 108184) by davygrvy on 2004-01-13 07:45:24:
- icomment:
File Added - 73204: patch.txt
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [a0b96cb5c4] (rid 96862) by davygrvy on 2004-01-13 07:46:02:
- icomment:
File Deleted - 73183:
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [3402924c33] (rid 106691) by davygrvy on 2004-01-13 07:47:07:
- icomment:
Logged In: YES user_id=7549 Untested on unix and mac, but those area where touched by the patch and needs testers.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [5d9866f23a] (rid 115495) by davygrvy on 2004-01-13 07:48:24:
- icomment:
Logged In: YES user_id=7549 Note to self: add Tcl_DriverCutProc and Tcl_DriverSpliceProc to the Tcl_Channel man page.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [093ddde74b] (rid 89687) by davygrvy on 2004-01-13 16:58:39:
- assignee changed to: "andreas_kupries"
- closedate changed to: "2004-01-13T09:58:39"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 Andreas, Could you have a look at this? Am I on-track? It looks complete to me ('cept for docs). How does it look to you? - login: "davygrvy"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "davygrvy"
Ticket change [1358b3facf] (rid 124199) by dkf on 2004-01-13 17:16:46:
- icomment:
Logged In: YES user_id=79902 David, please don't set Status to Pending since it means that it is Pending Deletion if further information is not supplied. Which is not what you meant at all!
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dkf"
- icomment:
Ticket change [2db17a593e] (rid 119105) by davygrvy on 2004-01-14 04:58:56:
- icomment:
Logged In: YES user_id=7549 rev #3 patch ready.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [5c6f01c628] (rid 115298) by davygrvy on 2004-01-14 04:58:57:
- icomment:
File Deleted - 73204: File Added - 73335: patch.txt
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [5773851d0c] (rid 94488) by davygrvy on 2004-01-14 10:13:19:
- icomment:
File Added - 73366: patch.txt Logged In: YES user_id=7549 Final patch ready that includes doc changes. Things to note: 1) transformChannelType of generic/tclIOGT.c had the version set to 2, not 3. It is setting a wideSeekProc. Is 3 or 2 the correct version? 2) *ALL* channel drivers that maintain any tsd data are all now at version 4. This includes every win channel type, now. Not just restricted to file and socket. 3) HaveVersion() should be fine, re. email note. 4) All internal channel types are at or greater than v2. Even the mac/ ones that no longer are maintained by anyone. 5) Do a 'make genstubs' after applying patch. 6) all tests pass for a threaded build of Tcl. Does testthread do a transfer test and are there test cases? I haven't looked yet.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Add attachment "patch.txt" [1178c9649f] (rid 95148) by davygrvy on 2004-01-14 10:13:19.
Ticket change [66c46fa9e5] (rid 102778) by davygrvy on 2004-01-14 10:14:22:
- icomment:
File Deleted - 73335:
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [47c841eff5] (rid 99763) by davygrvy on 2004-01-17 03:00:52:
- icomment:
Logged In: YES user_id=7549 Just discovered something interesting. If I create a v4 driver in an extension and load it into 8.4, Tcl_ChannelVersion incorrectly returns TCL_CHANNEL_VERSION_1 rather than TCL_CHANNEL_VERSION_3 The proper logic, I think would be to add a ceiling expecting more revisions in the future. Example: Tcl_ChannelTypeVersion Tcl_ChannelVersion(chanTypePtr) Tcl_ChannelType *chanTypePtr;/* Pointer to channel type. */ { if (chanTypePtr->version == TCL_CHANNEL_VERSION_2) { return TCL_CHANNEL_VERSION_2; } else if (chanTypePtr->version == TCL_CHANNEL_VERSION_3) { return TCL_CHANNEL_VERSION_3; } else if (chanTypePtr->version == TCL_CHANNEL_VERSION_4) { return TCL_CHANNEL_VERSION_4; /* reserve this space for future revisions. */ } else if (chanTypePtr->version < 15) { return TCL_CHANNEL_VERSION_4; } else { /* * In <v2 channel versions, the version field is occupied * by the Tcl_DriverBlockModeProc */ return TCL_CHANNEL_VERSION_1; } } - login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [4085117f7e] (rid 121639) by davygrvy on 2004-01-17 03:03:41:
- icomment:
Logged In: YES user_id=7549 Your note about checking HaveVersion was right. It will work in the forward direction, a v3 loaded into a core that understands up to v4, but not the other way.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [e9c015f7b4] (rid 104863) by davygrvy on 2004-01-23 11:40:32:
- icomment:
Logged In: YES user_id=7549 This patch is not safe to use in its current form. I've found a bug i'm re-evaluating, a watchmask issue I need to solve.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [47b1358b82] (rid 99743) by andreas_kupries on 2004-09-10 03:37:44:
- icomment:
Logged In: YES user_id=75003 > 1) transformChannelType of generic/tclIOGT.c > had the version set to 2, not 3. It is setting > a wideSeekProc. Is 3 or 2 the correct version? 3 is the correct version.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "threadaction.tar.gz" [c04b4b96e5] (rid 102381) by andreas_kupries on 2004-09-10 05:55:44.
Ticket change [028e2656c0] (rid 119671) by andreas_kupries on 2004-09-10 05:55:44:
- icomment:
File Added - 100954: threadaction.tar.gz Logged In: YES user_id=75003 The patch had three components. (a) Bugs & Nits (b) v4 channel driver code. (c) Conversion of core drivers to v4. (a) can go into the core without TIP. (b) requires a TIP (c) is based on (b). Now enclosing a tarball for 8.4 and 8.5 implementing (b). The only thing missing are testcases for the new functionality. It does compile, and it does pass the unextended testsuite. I am ignoring (c) for now, until we get the TIP approved.
- login: "andreas_kupries"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "andreas_kupries"
- icomment:
Ticket change [f4708a6061] (rid 129916) by andreas_kupries on 2004-09-10 05:58:07:
- icomment:
File Added - 100955: channel_transfer.tip Logged In: YES user_id=75003 Attaching the TIP draft as well.
- login: "andreas_kupries"
- mimetype: "text/plain"
- title changed to: "TIP #... (Tcl Channel Driver Thread State Actions)"
- username: "andreas_kupries"
- icomment:
Ticket change [36759ed2ca] (rid 107105) by dkf on 2004-09-10 15:47:12:
- foundin changed to: "TIP Implementation"
- title changed to: "TIP#218 (Tcl Channel Driver Thread State Actions)"
Ticket change [9c46e72fbe] (rid 96121) by andreas_kupries on 2004-09-11 03:05:45:
- icomment:
File Deleted - 100955: Logged In: YES user_id=75003 The TIP is in the official repository, with official formatting and such. Removing the draft. The (a) class patches (bugfixes not requiring a TIP) are now committed to HEAD (8.5 dev) and 8.4 branch head.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [28b311b031] (rid 88744) by andreas_kupries on 2004-09-11 03:07:19:
- icomment:
Logged In: YES user_id=75003 The TIP can be found at http://tip.tcl.tk/218
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [38d89e17c8] (rid 112283) by andreas_kupries on 2004-10-09 03:07:33:
- icomment:
Logged In: YES user_id=75003 Adding an updated ref. ipmlementation of the basics. The use of the thread actions when opening a channel means that existing code to add the instance data to a thread-global list is obsolete now, actually bogus, i.e. we get a damaged list. The updated diffs make the minimal changes necessary for the core to be ok again. This is not the convrsion of the existing drivers. This is enough for external channel drivers to use the API.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "threadaction-v2.tar.gz" [3102a5b548] (rid 93350) by andreas_kupries on 2004-10-09 03:07:34.
Ticket change [ebffd02e7e] (rid 103636) by andreas_kupries on 2004-10-09 03:07:34:
- icomment:
File Added - 104396: threadaction-v2.tar.gz
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [a8533a9753] (rid 98961) by davygrvy on 2004-10-09 03:15:10:
- icomment:
Logged In: YES user_id=7549 I'll modify my extensions to experiment on this.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [b173de6713] (rid 98147) by davygrvy on 2004-10-09 03:36:36:
- icomment:
Logged In: YES user_id=7549 Interesting.. I see TclpSpliceFileChannel(chan); and TclpSpliceSockChannel(chan); still there.. If this patch is step#2, we'll save removing those for step#3 when we convert all the channel types to v4, yes?
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [253db35abd] (rid 88138) by andreas_kupries on 2004-10-09 03:45:59:
- icomment:
Logged In: YES user_id=75003 Yes, the removal of the Tclp{Cut,Splice}... from the old hackish fix will happen as part of the conversion of all internal drivers to v4. For this patch I just wanted to get the API completely implemented, and the core running flawlessly, without touching the core drivers and their hardwired threadactions. I had to touch the hardwired socket splice, or cut, because of a bug regarding "socketList" and "socketListLock". Wherever I did that I added commentary about the removed code, as explanation. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [1ebe870d66] (rid 91032) by andreas_kupries on 2004-10-15 04:00:04:
- icomment:
File Added - 105145: driverconv_v1.tar.gz Logged In: YES user_id=75003 And here is the first patch for the conversions of all in-core channel drivers to v4. Even if it was just something like changing the version number and adding NULLs to the structure. The patches passed compilation and testsuite of Tcl, on linux and windows, for regular and threaded build. _Not_ tested yet is that these changes actually work when a channel for their is truly transfered. Because (I believe) this is not tested by the in-core testsuite. The thread extension might test this. Investigation will start on that. Still, others are welcome to play with this now.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "driverconv_v1.tar.gz" [a5b0b735c1] (rid 110417) by andreas_kupries on 2004-10-15 04:00:04.
Ticket change [7186118b6a] (rid 100692) by andreas_kupries on 2004-10-15 04:23:46:
- icomment:
Logged In: YES user_id=75003 Seems that the thread extension does some basic tests of 'transfer', but only for files, in essence. It seems that I will have to extend this to cover all in-core drivers in some way or other. Uh, tests which are interdependent (18.1, .2, .3 for example). Nevertheless. This can be used for a basic first test.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [8968a160b1] (rid 132020) by andreas_kupries on 2004-10-21 04:26:24:
- icomment:
Logged In: YES user_id=75003 I added some more tests. I have now run tests against 8.5 head, and 8.4 head, pristine, with base patch, and base+driver patch (= 6 configs). I am unable to crash 8.5 with my tests, patches or not. 8.4 crashes the extended tests without patches, or only the base patch applied. It is ok if both base and driver patch are applied. This is for sockets. For pipes I was unable to crash my tests anywhere. It should however be possible to either crash transfered pipe channels, or to stop them from working (no events, due misdirected thread-alerts). I have found a limitation regarding transfered pipe channels and linux: Closing a transfered pipe channel in a different thread than it was created by causes an error, child lost. That seems to be a limitation in linux thread impl., and its interaction with waitpid. It is not a crash, just an error message about a lost child which is bogus. cleanup and all that seems to be ok however.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [a0e0eee617] (rid 96884) by andreas_kupries on 2004-10-22 03:50:43:
- icomment:
File Added - 105992: refimpl_218.tar.gz
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "refimpl_218.tar.gz" [aaa58bd5fa] (rid 100961) by andreas_kupries on 2004-10-22 03:50:43.
Ticket change [922825f5e0] (rid 120730) by andreas_kupries on 2004-10-22 03:54:56:
- icomment:
Logged In: YES user_id=75003 I have merged the base patch and driver conversion together, and updated them both to apply to the current 8.[45] CVS head. This patch has been called the "Full Ref. Implementation V1". I was able to create tests for fileevents for pipes which fail under windows for an unpatched core, and are ok for the patched core. These tests are 17.11[ab] in the package Thread, and were committed today as well. I consider this patch good enough for wider testing. I believe that this patch is ok.
- login: "andreas_kupries"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "andreas_kupries"
- icomment:
Ticket change [4574568eca] (rid 99355) by andreas_kupries on 2004-10-27 02:48:28:
- icomment:
Logged In: YES user_id=75003 See also the bug report http://sourceforge.net/tracker/index.php?func=detail&aid=1021078&group_id=10894&atid=110894
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [761ec7fc9f] (rid 105515) by davygrvy on 2004-11-24 05:51:55:
- icomment:
Logged In: YES user_id=7549 Andreas, trying patch today with my iocpsock extension. I'll post progress notes here later.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [2c387f908b] (rid 118865) by andreas_kupries on 2004-11-24 07:05:35:
- icomment:
Logged In: YES user_id=75003 Very good, thanks.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [7a8160d3ed] (rid 90334) by davygrvy on 2004-11-24 08:40:01:
- icomment:
Logged In: YES user_id=7549 looks good so far will be testing over the next few days
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [bdd4c90f3b] (rid 101977) by andreas_kupries on 2005-01-27 05:33:25:
- resolution changed to: "Accepted"
Ticket change [7596d40317] (rid 105417) by andreas_kupries on 2005-01-27 05:33:26:
- icomment:
Logged In: YES user_id=75003 The TIP has been accepted (6 yes, 0 no, 0 present). Updated the 8.5 patch with correct numbers for the new stub slots.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [86efbea7f5] (rid 131604) by andreas_kupries on 2005-01-27 05:33:29:
- icomment:
File Added - 117284: tcl8.5_all_002.diff
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "tcl8.5_all_003.diff" [4208f5c7f8] (rid 116296) by andreas_kupries on 2005-01-27 06:43:32.
Ticket change [84edf3f4f1] (rid 117645) by andreas_kupries on 2005-01-27 06:43:33:
- icomment:
File Deleted - 117284: File Added - 117297: tcl8.5_all_003.diff
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [a9bd0c33ac] (rid 99200) by andreas_kupries on 2005-01-27 06:44:35:
- icomment:
Logged In: YES user_id=75003 Reupload, found one small problem on windows, a new change by Mo used the old Cut function and I was not aware of it yet. Found it when the link failed.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "tcl8.4_all_002.diff" [cee411575d] (rid 112863) by andreas_kupries on 2005-01-28 05:51:23.
Ticket change [03d95427f4] (rid 119897) by andreas_kupries on 2005-01-28 05:51:23:
- icomment:
File Added - 117453: tcl8.4_all_002.diff Logged In: YES user_id=75003 Upload of 8.4 final patch.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [8969722a2a] (rid 132022) by andreas_kupries on 2005-01-28 05:54:15:
- closedate changed to: "2005-01-27T22:54:15"
- closer changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=75003 Both final patches have been committed to 8.4 branch head and 8.5 head respectively.
- login: "andreas_kupries"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "andreas_kupries"