Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 64a8fb123d1dae3381bf073ba814249180575b13f6f26e98e032d84ed8fb60db
Ticket: 592a25a505a942c57ea6462057c8a70807d798ab
Tcl_PutEnv() crashes on Windows
User & Date: danckaert on 2021-07-15 15:57:36
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. comment changed to:
    A simple Tcl_PutEnv() call causes a segmentation fault on Windows, when no interpreters have been created yet at that point. Example:
    <pre>
        Tcl_FindExecutable(argv[0]);
        Tcl_PutEnv("TCL_LIBRARY=/some/path");
        Tcl_Interp* ip = Tcl_CreateInterp();
    </pre>
    The crash was first observed with this code to set TCL_LIBRARY before creating an interpreter, but actually it occurs with any environment variable.
    
  5. foundin changed to: "8.6.11"
  6. is_private changed to: "0"
  7. login: "danckaert"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "danckaert"
  13. subsystem changed to: "08. Environment Variables"
  14. title changed to: "Tcl_PutEnv() crashes on Windows"
  15. type changed to: "Bug"