Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a6dfa023cbf9665c4d156041870b27e29c931ce9
Ticket: 1847044fffffffffffffffffffffffffffffffff
Crash under SetChannelFromAny
User & Date: hobbs on 2007-12-10 05:22:58
Changes

  1. closedate changed to: "2007-12-09T22:22:58"
  2. closer changed to: "hobbs"
  3. icomment:
    Logged In: YES 
    user_id=72656
    Originator: NO
    
    OK, this can be reduced to this simpler case:
    
        catch {chan close [lreplace [list a] 0 end]}
    
    and I've commited the patch to fix it.  What was happening is that I would update the string and free the internal rep *before* I'd validated the channel was valid.  Thus you could get tclListObj without any internal rep.  The free step has to occur after we've validated the channel (could also set the typePtr to NULL, but then we'd lose the other rep needlessly in some cases).
    
    Committed with tests.
    
    
  4. login: "hobbs"
  5. mimetype: "text/plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"
  8. username: "hobbs"