Skip to content
Tcl Source Code History Of Ticket 1847064
Login

History Of Ticket 1847064

Artifacts Associated With Ticket 1847064

  1. Ticket change [92fff95689] (rid 105743) by dnew on 2007-12-09 00:01:39:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I had a bug in a program that created outgoing sockets and didn't close them when they failed. Basically
        set x [socket -async machine.next.door 12345]
        puts $x $somedata
        flush $x ; #This threw, caught by bgerror
        close $x
      
      Eventually, however, I wound up with a large number of socket channels that were open but disconnected.
      
      Now, here's the funny part: After a while, the process would go compute bound. Using the lovely advice from CLT, I could "strace -p $pid" and see what it's doing.
      
      It's stuck in a tight loop with select() throwing errors because the socket number is out of range. 
      
      I can't seem to reproduce it in a trivial program. The code I actually use does set and unset the blocking flag at different parts of the protocol, which may have something to do with it.
      
      I wrote a little program that just opens a new async socket every second with [after], and it worked fine up past 256 sockets, whereas the big code was bombing out after 32 or 64, so I'm not sure what's different there. It might be a little harder to find than I thought. 
      
      info patchlevel give 8.4.14, and this is SuSE Linux 10.2 running the penultimate kernel (blah blah.5) 
      
      Feel free to contact me if I can help track this further.
      
      
      
    4. foundin initialized to: "obsolete: 8.4.14"
    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: "dnew"
    10. subsystem initialized to: "02. Event Loops"
    11. title initialized to: "Event loop goes CPU bound when select() invalid fd"
    12. type initialized to: "Bug"
  2. Ticket change [62ae514ed9] (rid 92444) by hobbs on 2007-12-10 05:26:07:

    1. closedate changed to: "2007-12-09T22:26:07"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      2006-11-27  Kevin Kenny  <[email protected]>
      
      * unix/tclUnixChan.c (TclUnixWaitForFile):
      * tests/event.test (event-14.*): Corrected a bug where
      TclUnixWaitForFile would present select() with the wrong mask on an
      LP64 machine if a fd number exceeds 32. Thanks to Jean-Luc Fontaine
      for reporting and diagnosing [Bug 1602208]
      
      Please retest with head or latest 8.4.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Pending"
    8. username: "hobbs"
  3. Ticket change [2a9d73cdd8] (rid 118610) by sf-robot on 2007-12-24 10:20:04:

    1. closedate changed to: "2007-12-24T03:20:04"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"