Skip to content
Tcl Source Code History Of Ticket 717848
Login

History Of Ticket 717848

Artifacts Associated With Ticket 717848

  1. Ticket change [efd6b4196a] (rid 109071) by andreas_kupries on 2003-04-08 22:20:28:

    1. assignee initialized to: "davygrvy"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When running the attached "main.tcl" script the sub 
      process started by it ("sub.tcl") will cease processing 
      any type of event [x].
      
      Deactivation of the "fileevent readable" command 
      in "sub.tcl" causes the problem to disappear.
      
      [x] The problem was initially caught in the testsuite for 
      the pop3 module/package in tcllib. The command [info 
      hostname] was called in the 'accept' command of a 
      listening socket locked up and did not return. Trying to 
      defer the offending code via [after] failed. The after was 
      executed, but did not trigger anymore (despite the fact 
      the application was in an eventloop). Executing [info 
      hostname] before the 'fileevent readable' causes the 
      lockup to disappear too.
      
      Theories:
      * [info hostname] is ok before [fileevent], caches the 
      result and therefore fine afterward.
      * [fileevent readable] messes up the notifier so bad that 
      not even "after" events are processed anymore.
      
      
    4. foundin initialized to: "obsolete: 8.4.2"
    5. priority initialized to: "8"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "andreas_kupries"
    9. subsystem initialized to: "01. Notifier"
    10. title initialized to: "Notifier lock in sub-process on windows"
    11. type initialized to: "Bug"
  2. Ticket change [7a0a2eb207] (rid 90238) by andreas_kupries on 2003-04-09 05:20:28:

    1. icomment:
      
      
      File Added - 47167: main.tcl
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  3. Add attachment "main.tcl" [aabe68c315] (rid 100979) by andreas_kupries on 2003-04-09 05:20:28.

  4. Add attachment "sub.tcl" [fa40b54c6f] (rid 91837) by andreas_kupries on 2003-04-09 05:21:22.

  5. Ticket change [fbd30eeab4] (rid 108128) by andreas_kupries on 2003-04-09 05:21:22:

    1. icomment:
      
      
      File Added - 47169: sub.tcl
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [6cae5cd182] (rid 128559) by davygrvy on 2003-04-09 15:05:56:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      Yup, happens here too.  Needs investigating.  It locks-up 
      rather stiffly.
      
      One comment on the example, though.  Just because [open] 
      came back doesn't mean the server in the sub-process is up 
      yet.  I don't think there is a guarentee of that, even though it 
      looks to be happening.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  7. Ticket change [dde235b282] (rid 114754) by andreas_kupries on 2003-04-09 23:38:58:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Good, second person to replicate this lockup, so definitely a 
      reproducible bug (First was Jeff, after I was able to create this 
      condensed version of the problem).
      
      
      Right, immediately after open the server doesn't have to be 
      up. We could insert a delay, say one second, in main.tcl to 
      make this race unlikely (or loop the socket command until 
      there is no connect error). ... In the original code the port of 
      the listening socket was written back over the pipe, telling the 
      main process when it was up. 
      
      My rewrite of the testsuite makes now use of a special 
      microserver which uses a second socket for the control 
      connection, and the sub process connects back to the 
      spawning process. This works around the lock. It also means 
      that I know exactly when the process is up (= connect back 
      has been done), and when it is has started to listen (= port 
      number came back over the control connection).
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [ca6f8dfb35] (rid 95348) by bsdfan3 on 2003-08-12 22:15:52:

    1. icomment:
      Logged In: YES 
      user_id=604556
      
      How about sending a SIGCHLD (er, the windoze equivalent)to 
      the parent process when the child is ready?
      
      
    2. login: "bsdfan3"
    3. mimetype: "text/plain"
    4. username: "bsdfan3"
  9. Ticket change [61b0c4ec67] (rid 92282) by davygrvy on 2004-05-06 04:17:12:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      If I change sub.tcl according to the attachment, it doesn't 
      lock up with 8.4.6.  Theory: fileevent readable stdin done, 
      and proc done is not closing itself and tcl is forever calling 
      [done] trying to close stdin eating all the CPU.
      
      I'll leave this bug open, as I don't know what to do next 
      about this.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. resolution changed to: "Works For Me"
    5. username: "davygrvy"
  10. Add attachment "sub.tcl" [7158efba65] (rid 100658) by davygrvy on 2004-05-06 04:17:13.

  11. Ticket change [adf7614553] (rid 101548) by davygrvy on 2004-05-06 04:17:13:

    1. icomment:
      
      
      File Added - 86203: sub.tcl
      
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  12. Ticket change [fabf0ebe79] (rid 91934) by davygrvy on 2004-10-27 03:49:48:

    1. priority changed to: "4"
  13. Ticket change [a9fece1bbf] (rid 99248) by davygrvy on 2005-11-04 04:56:03:

    1. assignee changed to: "patthoyts"