Skip to content
Tcl Source Code History Of Ticket 7a9dc52b29a87985
Login

History Of Ticket 7a9dc52b29a87985

Artifacts Associated With Ticket 7a9dc52b29a87985

  1. Ticket change [d8577b2a3a] (rid 167614) by avl42 on 2018-11-20 16:37:39:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      testcase:
      % file normalize ~/~foo    ;#  tilde slash tilde something
      Segmentation Fault
      
      Same result on attempt to [open] a such-named file
      
      I noticed it in 8.6.3 and 8.6.5,  people on chat confirmed it for 8.6.8 and 8.7a2
      
      back in 8.4 and 8.5 it didn't crash, but return a wrong result ("~foo").
      
    5. foundin initialized to: "seen in 8.6.8 and 8.7a2"
    6. is_private initialized to: "0"
    7. login: "avl42"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "2287a4a5f84eadc47fdc912609f4f98319372d33"
    10. resolution initialized to: "None"
    11. severity initialized to: "Critical"
    12. status initialized to: "Open"
    13. submitter initialized to: "avl42"
    14. subsystem initialized to: "37. File System"
    15. title initialized to: "tclsh crashes with tilde chars in filenames"
    16. type initialized to: "Bug"
  2. Ticket change [9f2b2eb250] (rid 167615) by sebres on 2018-11-20 16:55:57:

    1. assignee changed to: "sebres"
    2. icomment:
      found the bug: `TclDecrRefCount(absolutePath)` releases absolutePath object that implicit releases the "fsPathPtr->normPathPtr" returned later.
      Possibly Tcl_FSConvertToPathType references objects a bit wrong (resp. misses a increment of refCount somewhere).
      WiP
      
    3. login: "sebres"
    4. mimetype: "text/plain"
    5. priority changed to: "7 High"
  3. Ticket change [6f8d56e8c0] (rid 167619) by sebres on 2018-11-20 18:15:23:

    1. icomment:
      Segfault is fixed in [10e9bd8b12], but...  working on the test-cases should cover that, I found strange behavior:
      <code><pre>% file normalize ~/~foo
      ~foo
      % file normalize ~/bar/~foo
      /home/sebres/bar/~foo
      </pre></code>
      I think the first is invalid, it should be similar to:
      <code><pre>% file normalize ~/foo
      /home/sebres/foo
      </pre></code>
      The same doing *nix platforms, e. g. `<code>cd ~/foo</code>` as well as `<code>cd ~/~foo</code>` just append second path-segment to current user home.
      
      I'm trying to find a proper solution here (and will provide then the covering test-cases).
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
  4. Ticket change [77c24fdcb2] (rid 167636) by sebres on 2018-11-20 20:33:15:

    1. assignee changed to: "nobody"
    2. foundin changed to: ">= 8.5"
    3. icomment:
      both things are fixed now in [./timeline?r=bug-7a9dc52b29|bug-7a9dc52b29] branch, the branch is tested on *nix/win and can be merged >= 8.5.
      
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Pending"
  5. Ticket change [7c6aecf1a4] (rid 167726) by sebres on 2018-11-22 14:35:00:

    1. closedate changed to: "2458445.10764074"
    2. closer changed to: "sebres"
    3. icomment:
      segfault & normalization bug fixed and merged to all branches (8.5...9.0).
      
      also note:
      `file normalize ~/~foo` results into `/<home/user>/~foo` now, in opposite to wrong normalization `~foo` as absolute path segment previously (as it still went in old versions).
      
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"