Skip to content
Tcl Source Code History Of Ticket 1818565
Login

History Of Ticket 1818565

Artifacts Associated With Ticket 1818565

  1. Ticket change [9262ec5a29] (rid 120756) by dgp on 2007-10-23 13:50:22:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      I see this background error often when starting
      tkchat 1.381 (packaged as a tkchat.kit).
      The relevant versions are:
         Tcl 8.4.15
         Tk  8.4.15
         http 2.5.3
      
      Might be a tkchat bug, but has at least
      some appearance of bugginess/lack of robustness
      in the http package.
      
      can't read "state(status)": no such variable
      can't read "state(status)": no such variable
          while executing
      "return $state(status)"
          (procedure "http::wait" line 10)
          invoked from within
      "http::wait $token"
          (procedure "http::geturl" line 253)
          invoked from within
      "http::geturl http://tclers.tk/~jabber/current.html -timeout 15000  -command [list [namespace origin fetchurldone]  [namespace origin CheckVersionDone]..."
          (procedure "CheckVersion" line 2)
          invoked from within
      "CheckVersion"
          (procedure "::tkchat::LoadHistory" line 15)
          invoked from within
      "::tkchat::LoadHistory"
          ("after" script)
      
      
    4. foundin initialized to: "None"
    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: "dgp"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to: "http::wait error"
    12. type initialized to: "Bug"
  2. Ticket change [bbc658b0dd] (rid 129547) by patthoyts on 2007-11-15 16:57:01:

    1. assignee changed to: "patthoyts"
    2. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      This error occurs when the token has been deleted already for some reason. You can see this if we pass in a bogus array name:
      % namespace eval xyz {}
      % http::status ::xyz::1
      can't read "state(status)": no such variable
      
      The tkchat code in question has a command procedure so we don't call http::wait from http::geturl for reading but we have a -timeout so we call this for connection setup. So in http::Connect we must be getting an [eof] or a socket error but this should set the state(status) to 'error'. However we then call Finish which calls the user provided -command procedure and the tkchat one will cleanup the token.
      
      I think whats going on is an error in connection sets an error status, calls the application command procedure which cleanup and then the vwait gets a chance to run and the http::wait finishes but with a deleted array.
      
      If this is correct I think you should be seeing a tk_messageBox with a "Fetch URL error: ..." message from the tkchat command procedure at around the same time.
      
      
    3. login: "patthoyts"
    4. mimetype: "text/plain"
    5. username: "patthoyts"
  3. Ticket change [ecc8da3985] (rid 103766) by dgp on 2007-11-15 22:04:42:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      that's sounding familiar.
      
      Any chance this is another
      appearance of 513385 ?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [4923ca6e69] (rid 100011) by patthoyts on 2008-01-08 21:18:16:

    1. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      tcllib bug #1860190 is another instance of this.
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  5. Ticket change [8b54ee68e0] (rid 127547) by patthoyts on 2008-01-08 21:19:03:

    1. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      Also tcllib bug #1835240 
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  6. Ticket change [4044c826da] (rid 121604) by dgp on 2008-01-08 23:32:14:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      There are other development tracks
      for an "http" package besides the
      one bundled with Tcl, right?
      
      Do those other(s) suffer the same problem?
      
      Do any of those others actually have maintainers?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [0a46f23556] (rid 113788) by patthoyts on 2008-02-22 17:57:30:

    1. closedate changed to: "2008-02-22T10:57:30"
    2. closer changed to: "patthoyts"
    3. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      Changed the status command to check for the existence of the token and to return "error" if it is not present. The [wait] command now calls [status] which avoids the problem we see in the stack trace here.
      
      
    4. login: "patthoyts"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "patthoyts"