Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 76cf123df3f14c61ab7e38409c58b8fba9fea518
Ticket: 1847044fffffffffffffffffffffffffffffffff
Crash under SetChannelFromAny
User & Date: patthoyts on 2007-12-08 23:24:12
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The Tk test suite is crashing today in send.test. Built with msvc6 on windows xp. A debugger shows this is coming from the bg::cleanup command and in C it flows from Tcl_Close to SetChannelFromAny. In this we try make the input objPtr into a channel ptr and call 
    if (objPtr->typePtr != NULL) {
      if (objPtr->bytes == NULL) {
         objPtr->typePtr->updateStringProc(objPtr);
      }
      TclFreeIntRep(objPtr);
    }
    At this point typePtr says we have a list object. This string rep is tclEmptyStringRep (and not null) and the internal rep is NULL. AFAICT this shouldnt happen. If we call Tcl_NewListObj(0, NULL); we get an object without the typePtr being set to list (ie: a string object). So we appear to have lost the internal rep somewhere.
    When we call TclFreeIntRep it accesses the internal rep, tries to read the count member and segfaults dereferencing NULL.
    
    I don't really know where the fault lies. But as its been trigged by the new channel object - Jeff can have it :)
    
  4. foundin changed to: "obsolete: 8.5b3"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "patthoyts"
  10. subsystem changed to: "10. Objects"
  11. title changed to: "Crash under SetChannelFromAny"
  12. type changed to: "Bug"