Skip to content
Tcl Source Code History Of Ticket 711232ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 711232ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 711232ffffffffffffffffffffffffffffffffff

  1. Ticket change [25058f2017] (rid 131209) by vasiljevic on 2003-03-28 08:42:15:

    1. assignee initialized to: "das"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The Tcl8.4.x uses the OS-call realpath() to figure-out the
      real physical path of the file on the filesystem, stripped 
      of all "./", "../", constructs, symlinks and alike. 
      
      This function on Darwin uses chdir/fchdir internally
      which changes the process current working directory
      for each invocation. It is called for just about
      *every* path you pass to the Tcl library! Of course, 
      this defeats *any* multithreading code. There is no
      single point like [cd] command which mingles with the
      current dir; *all* path arithmetics eventually call into
      the realpath() and it will swap the current dir under
      your feet. The man page says nothing about this
      important side-effect, though. This is not the case in 
      Solaris and/or Linux OS. It appears to me that it only
      happens on Mac OSX (aka Darwin). 
      
      First corrective measure is to define NO_REALPATH
      variable on compilation time. Of course, in one of my 
      previous threads.
      Better yet is to fix Darwin realpath() to behave better.
      
    4. foundin initialized to: "obsolete: 8.4.2"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "vasiljevic"
    9. subsystem initialized to: "36. Pathname Management"
    10. title initialized to: "Darwin realpath() and threads problem"
    11. type initialized to: "Bug"
  2. Ticket change [ab52dd770a] (rid 101084) by das on 2003-05-13 15:48:11:

    1. closedate changed to: "2003-05-13T08:48:11"
    2. closer changed to: "das"
    3. icomment:
      Logged In: YES 
      user_id=90580
      
      commited the workaround suggested above to core-8-4-branch 
      and HEAD: define NO_REALPATH  for threaded build on Mac 
      OS X, c.f. attached patch.
      
      A better fix would be to add a thread-safe realpath 
      implementation to tcl/compat and use this instead of the realpath 
      in libc.
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "das"
  3. Add attachment "tclUnixPort.diff" [46eb551c0c] (rid 99600) by das on 2003-05-13 15:48:12.

  4. Ticket change [30c9ff1eb4] (rid 93321) by das on 2003-05-13 15:48:13:

    1. icomment:
      
      
      File Added - 50236: tclUnixPort.diff
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"