Skip to content
Tcl Source Code History Of Ticket 962519ffff
Login

History Of Ticket 962519ffff

Artifacts Associated With Ticket 962519ffff

  1. Ticket change [0b843c9cb4] (rid 114000) by dgp on 2004-05-28 23:47:02:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Two routines in tclIOUtil.c,
      FsListMounts() and
      TclFSNormalizeToUniquePath()
      do direct comparisons to the
      value &nativeFilesystemRecord.
      
      However, in a --enable-threads
      build of Tcl, those routines do not
      loop over a list containing that
      static record.  Instead they loop
      over a thread-specific copy of
      the original list.  Thus, these
      comparisions are either always
      true or always false when
      threads are enabled, destroying
      the logic intended.
      
      This bug will be automatically
      fixed if we stop using thread-specific
      copies of the filesystem records.
      That's also the best way to fix
      Bug 932314.
      
      Will develop a patch and submit
      when it is ready.
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "37. File System"
    10. title initialized to:
      nativeFilesystemRecord comparisions invalid with threads
      
    11. type initialized to: "Bug"
  2. Ticket change [4a4b8f690a] (rid 126516) by vasiljevic on 2004-06-09 20:55:22:

    1. assignee changed to: "vasiljevic"
  3. Ticket change [ffcdcb8152] (rid 108827) by vasiljevic on 2004-06-09 20:55:23:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      Hi Don!
      
      I'm the one to blame :) Sorry for not answering before
      but I was simply not able to.
      
      I will reassign this bug to myself instead of Vince.
      
      To be honest I do not really understand the point.
      The introduction of the per-thread private list was
      to get Tcl FS behave properly in therad-builds
      a) with mimumum possible lock contention
      b) w/o danger of passing Tcl_Objs between therads
      c) w/o excessive Tcl_Obj copying
      
      The code is there since 8.4 and I made it since 
      we experienced strange memory corruption when
      operating in threaded env (AOLserver project). 
      Since that change, all was fine so I'm little worried
      about abandoning the private per-thread list of 
      ergistered filesystems and per-therad copy of the
      current working dir.
      
      Now, I think you've seen that the static global
      list of registered filesystems is epoch-stamped
      and always checked against the private per-thread
      copy. This way it is assured that the private copy
      does not reflect stale data. 
      
      In case I'm missing some important part, I would
      be happy if you could elaborate little bit more on this
      topic so I can see what problems you're reffering to.
      
      Cheers,
      Zoran
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  4. Ticket change [cea36859e3] (rid 96091) by dgp on 2004-06-09 21:26:58:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Hi Zoran.
      
      Trouble is that the epoch checks
      are not working properly.  See
      Tcl Bug 932314 for a report on
      that problem.  The fact that this
      bug will also be corrected by
      a new approach is just an
      additional benefit.
      
      What I want to do is have all
      threads access a single copy
      of the filesystemList.  I agree
      that doing that with MutexLock
      protection leads to unacceptable
      lock contention.  So, I would
      migrate to concurrent-read,
      exclusive write locks on the
      resource.
      
      Access to filesystemList is
      read-mostly.  Only FS registration
      and mounting cause writes,
      and they are much rarer than
      consulting the list to resolve
      paths.  As long as the reads do
      not contend with one another
      for access, there should be little
      noticeable problem.
      
      I already have CREW locks in
      an implementation of my own
      filesystem, so I know they work,
      and it should not be too hard for
      me to work up a core patch. 
      Sorry, I haven't done it yet.
      Been distracted by a few other things.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  5. Ticket change [a441918a99] (rid 110182) by dgp on 2004-06-10 20:55:07:

    1. assignee changed to: "vasiljevic"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      handing this back to you too. 
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  6. Ticket change [2173d35e57] (rid 130584) by dgp on 2004-07-06 22:12:37:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I lost track.  Did this get fixed?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [25da021f44] (rid 88235) by vasiljevic on 2004-07-06 22:48:09:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      It did AFAIK. 
      This one is still open as a reminder if we get 
      any problems in this area in the future. 
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  8. Ticket change [f42d046fe2] (rid 129863) by dgp on 2005-07-05 23:58:11:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      been open a year now.
      
      do you still need a reminder
      about future problems, or
      is this ready for closing now?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [1a05d077a9] (rid 122903) by vasiljevic on 2005-07-06 00:07:10:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      Oh, please leave it open. I will very soon start to 
      hit this part with some stress testing since we 
      are about to adopt the TclVFS in our product.
      If I still feel comfortable after that, I'll close this one.
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  10. Ticket change [24e0a41610] (rid 131186) by dgp on 2007-09-05 23:13:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      status?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [3fd74d9960] (rid 259754) by serhiy.storchaka on 2026-10-21 10:03:39:

    1. icomment:
      Fixed in 8.4.13/8.5.0 by [b8ef0f05a3] ([bfa4344c2c] on 8.4): the loops over the thread-local filesystem list compare fsPtr with &tclNativeFilesystem instead of the static record. No problems were reported in this area since then, so closing.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  12. Ticket change [c91556ccd2] (rid 260042) by serhiy.storchaka on 2026-10-22 17:19:32:

    1. closedate changed to: "2461334.9192110184"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"