Artifacts Associated With Ticket 1752124
Ticket change [7a02ba11a0] (rid 90231) by dgp on 2007-07-11 17:52:52:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The most recent commit to tclPathObj.c, 1.62 -> 1.63, causes a crash in the trofs test suite (test trofs-12.8). Examining...
- foundin initialized to: "obsolete: 8.5a7"
- is_private initialized to: "0"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "37. File System"
- title initialized to: "new tclPathObj.c crash"
- type initialized to: "Bug"
Ticket change [5c322545b3] (rid 115256) by dgp on 2007-07-12 01:22:55:
- assignee changed to: "dgp"
- closedate changed to: "2007-07-11T18:22:55"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: YES Looking like this is really a bug in trofs, just exposed by the changes to refcount logic. These changes appear to have extended (created?) a Hairy Monster nature for the Tcl_FSGetNormalizedPath routine. The pathPtr passed in to Tcl_FSGetNormalizedPath has fsPathPtr->translatedPathPtr with zero refCount. Since the pointer is stored, there ought to be a refcount to go with that. Still need to look it over with care, but that's probably trofs's fault.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- username: "dgp"
Ticket change [53d4fc4b88] (rid 93825) by dgp on 2007-07-12 01:33:39:
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=80530 Originator: YES Nope. trofs never touches that field at all. It's the Tcl core that permits that field to hold a pointer value, but leave the Tcl_Obj pointed to with zero refcount, apparently due to some very complex requirements of some circular reference scheme.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- username: "dgp"
Ticket change [4038ee0f02] (rid 121599) by dgp on 2007-07-12 02:13:22:
- icomment:
Logged In: YES user_id=80530 Originator: YES Was able to workaround the issue with changes to trofs. The code which is not safe looks like: Tcl_FSGetNormalizedPath(NULL, Tcl_FSJoinToPath(parent, 1, &element)); where T_FSJTP can return a zero refcount Tcl_Obj, and T_FSGNP can free it just by trying to determine its normalized form. Probably should add warnings to the docs that it's not safe to pass zero refcount pathPtr values to T_FSGNP(). - login: "dgp"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- title changed to: "Tcl_FSGetNormalizedPath is hairier monster"
- username: "dgp"
- icomment:
Ticket change [f1b7787959] (rid 109405) by dgp on 2007-07-12 02:14:28:
- icomment:
Logged In: YES user_id=80530 Originator: YES Something else to consider is whether T_FSGNP ought to immediately panic if handed a zero refcount pathPtr.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: