Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2c9dd1e1da75223c4a98e22269187690cef80c6e
Ticket: 451328ffffffffffffffffffffffffffffffffff
thread problem with Tcl_GetStringFromObj
User & Date: stevenashe on 2001-08-15 21:42:49
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hello.
    
    Might there is a problem with Tcl_GetString[FromObj]? 
    As the code [but not the man page :-( ] indicates, the
    result is transient, pending some other call that
    changes the internal representation in the object.
    
    In a preemptive threaded environment, that "other call"
    can happen
    asynchronously, meaning that the return value from
    Tcl_GetStringFromObj is guaranteed valid at NO time
    (!);
    there is no guarantee the user can even copy the data.
    
    Either I'm being stupid, or this would seem to be
    something of
    a problem.
    
    
  4. foundin changed to: "obsolete: 8.4a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "stevenashe"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "thread problem with Tcl_GetStringFromObj"
  11. type changed to: "Bug"