Tcl Source Code

View Ticket
Login
Ticket UUID: 1536142
Title: cwdPathPtr incomplete finalization
Type: Bug Created on: 2006-08-07 16:42:35
Submitter: dgp Assigned to: dgp
Subsystem: 37. File System Severity:
Priority: 9 Immediate Last modified: 2006-08-21 22:03:58
Status: Closed Closed by: dgp
Resolution: Fixed Closed on: 2006-08-21 15:03:58
Version: obsolete: 8.4.14
Description:
When a thread is finalized,
the routine FsThrExirProc() gets
called to finalize
the ThreadSpecificData of
tclIOUtil.c.

This routine decrements a
refcount on the master copy
of cwdPathPtr, but fails to
NULL out its cached reference.
This permits attempts to use
that invalid pointer which
leads to panics.

Here's a patch to complete
the finalization.

The same patch ought to 
apply to the HEAD which
appears to suffer from
the same bug.
User Comments:
dgp added on 2006-08-07 23:42:36:

File Added - 188039: cwdfinal.patch

dgp added on 2006-08-18 03:10:46:
Logged In: YES 
user_id=80530


had a chance to review this yet?

nobody added on 2006-08-18 05:02:17:
Logged In: NO 

Thanks for the push!

Indeed the patch looks entirely correct, and the right way
of doing things, so please do commit.

Vince.

dgp added on 2006-08-21 22:03:57:
Logged In: YES 
user_id=80530


patch committed to both active branches

Attachments: