Skip to content
Tcl Source Code History Of Ticket 878333ffffffffff
Login

History Of Ticket 878333ffffffffff

Artifacts Associated With Ticket 878333ffffffffff

  1. Ticket change [d77e3ee995] (rid 123997) by sussner on 2004-01-16 15:25:54:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This bug concerns only IRIX systems (6.5.19m) so far.
      
      Using a tclkit with included dynamic libraries results
      in the following
      error message when loading a second dynamic library
      from the vfs:
      
      > tclkit-irix
      % package require Itcl
      3.3
      % package require Tk
      couldn't find procedure Tk_Init
      %
      
      I tracked it down to the temporary filename create
      mkstemp() in
      TclpTempFileName() in tclUnixPipe.c. mkstemp() always
      uses the
      same filename, but keeps the content of the first file
      copied into
      it. I.e. a second call of TclCrossFilesystemCopy()
      means that the
      content of the first call is still present causing
      TclpFindSymbol() not
      to find the <EXT>_Init() procedure.
      Adding a counter to the temporary filename solves this
      problem. I
      submit a patch as well.
      
      hope that helps
      
      gerd
      
      ps: i just wonder whether i am the first one, using
      tclkits under IRIX.
      
    4. foundin initialized to: "obsolete: 8.4.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "sussner"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "workaround for buggy(??) mkstemp() on IRIX systems"
    11. type initialized to: "Bug"
  2. Ticket change [9db6c2bf51] (rid 96360) by sussner on 2004-01-16 22:25:55:

    1. icomment:
      
      
      File Added - 73709: tclUnixPipe.diff
      
      
      
    2. login: "sussner"
    3. mimetype: "text/plain"
    4. username: "sussner"
  3. Add attachment "tclUnixPipe.diff" [d0d105bb5a] (rid 113249) by sussner on 2004-01-16 22:25:55.

  4. Ticket change [6c70e2ad1d] (rid 128511) by vincentdarley on 2004-01-17 07:16:19:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      Assigned to someone who knows more about Unix ;-)
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  5. Ticket change [f3cad84627] (rid 129782) by dkf on 2004-01-17 08:10:07:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Assigning to myself because I've got access to IRIX systems
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  6. Ticket change [78c14e40c5] (rid 90018) by jenglish on 2004-02-21 06:10:37:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      This looks more like a bug in TclpTempFileName() -- it calls
      mkstemp() to generate a temporary file, but then deletes the
      file and closes the file descriptor.  So a subsequent call
      to mkstemp() can use the same filename, as it's still unique.
      
      As a matter of fact, TclpTempFileName() is Broken As
      Designed: there is no safe way to generate a temporary file
      name without creating the file at the same time; otherwise
      you suffer a race condition.
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  7. Ticket change [95748530d1] (rid 106159) by jenglish on 2004-02-21 06:24:19:

    1. assignee changed to: "vincentdarley"
  8. Ticket change [dd40a5e6c9] (rid 114638) by jenglish on 2004-02-21 06:24:20:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      It looks like Tcl_FSLoadFile() is the only caller of
      TclpTempFileName() in the core.  This should be fixed, and
      TclpTempFileName() removed.  Back to you, Vince!
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  9. Ticket change [da683e23a4] (rid 107779) by vincentdarley on 2004-02-23 18:11:46:

    1. assignee changed to: "jenglish"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      It looks as if Tcl_FSLoadFile doesn't mind if the return
      value of TclpTempFileName exists or not, so perhaps that
      function can be changed not to delete the file?  Or it
      should be changed to ensure it always creates a new empty
      name with an empty file?
      
      I don't quite understand what Joe is suggesting...  How can
      we get rid of TclpTempFileName()?  It's needed by
      Tcl_FSLoadFile...  I can understand that we might want to
      fix TclpTempFileName() and/or adjust how it is called, what
      it returns, but _remove_ it !?!?
      
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  10. Ticket change [2114f4c6ec] (rid 130523) by dkf on 2004-02-23 18:50:09:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      AIUI, what we need to do is to get the temporary file name
      back and at the same time have the temporary file open for
      modification (keeping it open stops some security-related
      race conditions).
      
      BTW, I think I do not agree with removing TclpTempFileName()
      (though altering its API sounds like a good thing) since it
      might well end up being useful elsewhere in the core in the
      future (e.g. for loading Win icons and cursors from starkits.)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  11. Ticket change [3f1b25dc8b] (rid 121394) by jenglish on 2004-02-24 02:28:49:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      Changing the API to return an open channel handle as well as
      the filename would also work (just that it's usually good
      practice to change the name of a function when you change
      its semantics).
      
      But TclpTempFileName() as currently specified cannot be
      implemented correctly and cannot be used safely.  
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  12. Ticket change [c52a21bb00] (rid 111950) by dgp on 2006-03-10 13:48:17:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      status?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Ticket change [eece56d98e] (rid 108882) by jenglish on 2006-03-11 00:49:56:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      Still not fixed.  The TIP#210 implementation will provide
      what's needed to solve the problem.
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  14. Ticket change [1eba43256a] (rid 91026) by r_zaumseil on 2007-03-05 16:31:15:

    1. icomment:
      Logged In: YES 
      user_id=1735474
      Originator: NO
      
      I had the same problems in creating and using tclkits under IRIX.
      To avoid this I had to manually patch the tcl sources.
      
      Why not add the patch for IRIX?
      
      rene
      [email protected]
      
      
      
    2. login: "r_zaumseil"
    3. mimetype: "text/plain"
    4. username: "r_zaumseil"
  15. Ticket change [ec1a842825] (rid 103651) by dkf on 2007-03-05 16:48:09:

    1. priority changed to: "7 High"
  16. Ticket change [2e5f1e2d63] (rid 119210) by dkf on 2008-12-07 03:23:03:

    1. assignee changed to: "dkf"
    2. priority changed to: "8"
    3. resolution changed to: "Remind"
  17. Ticket change [a82beda2e0] (rid 98932) by dkf on 2009-01-02 23:47:22:

    1. closedate changed to: "2009-01-02T16:47:22"
    2. closer changed to: "dkf"
    3. icomment:
      Now that we have compat/mkstemp.c, fix is trivial. Done for 8.6 release.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"