Artifacts Associated With Ticket 7a9dc52b29a87985
Ticket change [d8577b2a3a] (rid 167614) by avl42 on 2018-11-20 16:37:39:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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"). - foundin initialized to: "seen in 8.6.8 and 8.7a2"
- is_private initialized to: "0"
- login: "avl42"
- priority initialized to: "5 Medium"
- private_contact initialized to: "2287a4a5f84eadc47fdc912609f4f98319372d33"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "avl42"
- subsystem initialized to: "37. File System"
- title initialized to: "tclsh crashes with tilde chars in filenames"
- type initialized to: "Bug"
Ticket change [9f2b2eb250] (rid 167615) by sebres on 2018-11-20 16:55:57:
- assignee changed to: "sebres"
- 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
- login: "sebres"
- mimetype: "text/plain"
- priority changed to: "7 High"
Ticket change [6f8d56e8c0] (rid 167619) by sebres on 2018-11-20 18:15:23:
- 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).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- icomment:
Ticket change [77c24fdcb2] (rid 167636) by sebres on 2018-11-20 20:33:15:
- assignee changed to: "nobody"
- foundin changed to: ">= 8.5"
- 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.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Pending"
Ticket change [7c6aecf1a4] (rid 167726) by sebres on 2018-11-22 14:35:00:
- closedate changed to: "2458445.10764074"
- closer changed to: "sebres"
- 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).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"