Skip to content
Tcl Source Code History Of Ticket 2333466
Login

History Of Ticket 2333466

Artifacts Associated With Ticket 2333466

  1. Ticket change [6df6e1a278] (rid 128796) by gneumann on 2008-11-23 15:56:31:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl_IsChannelExisting() broken in versions at least from 8.4.14 until 8.5.5 + head version.
      
      If there exists e.g. a channel named "file76", a test for channel "sock7" will report, 
      that "sock7" exists already. Similarly, when there exists a channel named "sock182", 
      a test for "sock18" will be incorrect.
      
      The bug is pretty obvious in Tcl_IsChannelExisting() in tcl/generic/tclIO.c
      
      if ((*chanName == *name) &&
      (memcmp(name, chanName, (size_t) chanNameLen) == 0)) {
          return 1;
      }
      
      This comparison just tests, whether there exists a channel having the same first characters 
      as the queried channel,  but not, if the name existing channel and the queried channel have the
      same length. 
      
      There are many possible fixes; the fastest fix is most likely to increase chanNameLen
      by 1, or to compare the string lengths to make the test more explicit.
      
    4. foundin initialized to: "obsolete: 8.5.5"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "gneumann"
    10. subsystem initialized to: "25. Channel System"
    11. title initialized to: "Tcl_IsChannelExisting() broken"
    12. type initialized to: "Bug"
  2. Ticket change [08f6d23414] (rid 89647) by ferrieux on 2008-11-24 01:09:10:

    1. closedate changed to: "2008-11-23T18:09:10"
    2. closer changed to: "ferrieux"
    3. icomment:
      You are right about the +1, since both compared strings are null-terminated by construction.
      Fixed in HEAD.
      Please tell if you need a backport.
      (Notice this bug cannot harm the core alone, since there is no client of Tcl_IsChannelExisting; so it is only of concern for extensions/embedders).
      
      
      
      
    4. login: "ferrieux"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "ferrieux"
  3. Ticket change [55755da5a0] (rid 94138) by gneumann on 2008-11-24 01:28:47:

    1. icomment:
      A backport to 8.4.* would be nice (not sure if backport is the appropriate name), 
      since the problem showed up on busy sites using aolserver and libthread, where 
      libthread is using Tcl_IsChannelExisting() in ::thread::transfer. If i remember
      correctly, there is however no intention from the Tcl team to release another 
      8.4 version. Most aolserver/OpenACS/DotLRN sites are still using Tcl 8.4
      
      I have no problem to fix this on our sites, but it is painful to tell other people
      to fix this on their systems as well...
      
      Many thanks!
      
      -gustaf
      
      
      
    2. login: "gneumann"
    3. mimetype: "text/plain"
    4. username: "gneumann"
  4. Ticket change [16cc9e9ed3] (rid 124777) by ferrieux on 2008-11-24 03:20:31:

    1. icomment:
      You will be pleased to know that Andreas has just committed it to 8.5 *and* 8.4, and that you may expect an AS version of 8.4 (possibly through the teacup) with it.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  5. Ticket change [de95e503de] (rid 114877) by gneumann on 2008-11-24 03:57:32:

    1. icomment:
      i am pleased! Many thanks to you and Andreas!
      
      
    2. login: "gneumann"
    3. mimetype: "text/plain"
    4. username: "gneumann"
  6. Ticket change [cf34455f17] (rid 112928) by ferrieux on 2008-11-24 04:00:12:

    1. icomment:
      You will be pleased to know that Andreas has just committed it to 8.5 *and* 8.4, and that you may expect an AS version of 8.4 (possibly through the teacup) with it.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [e5b905e505] (rid 104177) by ferrieux on 2008-11-24 04:01:20:

    1. icomment:
      Sorry, duplicated comment due to a reload in browser :-}
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  8. Ticket change [7986758d7e] (rid 90144) by andreas_kupries on 2008-11-24 04:33:03:

    1. icomment:
      To clarify in this game of telephone. I said that I backported because AS has customers which are based on 8.4. I did not say that a new release of an ActiveTcl 8.4 is forthcoming, which is partially implied by Alexandre's comment. He is right that the fix will go into the core pieces which are in the teapot, which are our basekits. The regular Tclsh/Wish are not distributed through the teapot.
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"