Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3587fb6c53cc07a87352867065c8580edc1a197f
Ticket: 1602208fffffffffffffffffffffffffffffffff
select() on wrong fd
User & Date: jfontain on 2006-11-24 10:52:54
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I suspect a rather big problem in TclUnixWaitForFile() from tclUnixChan.c:
    
    ...
        int index, bit, numFound, result = 0;
    ...
        memset((void *) readyMasks, 0, 3*MASK_SIZE*sizeof(fd_mask));
        index = fd/(NBBY*sizeof(fd_mask));
        bit = 1 << (fd%(NBBY*sizeof(fd_mask)));
    ...
    
    I don't see how the code above can handle descriptors above 31, bit being a 32 bit integer. 
    
    This type of bug was fixed in tclUnixNotfy.c (see 1071807).
    Would you please notify me as soon as a patch becomes available so I can test it, as I suspect my HA monitoring daemon is sometimes hanging because of it.
    
  4. foundin changed to: "obsolete: 8.4.14"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "jfontain"
  10. subsystem changed to: "24. Channel Commands"
  11. title changed to: "select() on wrong fd"
  12. type changed to: "Bug"