Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-08-21
22:03 • Ticket [1536142fff] cwdPathPtr incomplete finalization status still Closed w... artifact: 5d465ddda8 user: dgp
22:03 • Closed ticket [1536142fff]. artifact: 7749ae7621 user: dgp
2006-08-18
05:02 • Ticket [1536142fff]: 4 changes artifact: 9ae9d1bafe user: nobody
03:10 • Ticket [1536142fff]: 4 changes artifact: acd840eeed user: dgp
2006-08-07
23:42 • Ticket [1536142fff]: 4 changes artifact: 6d6b279ad6 user: dgp
23:42 • Add attachment cwdfinal.patch to ticket [1536142fff] artifact: d06a0d4afe user: dgp
16:42 • New ticket [1536142fff] cwdPathPtr incomplete finalization. artifact: 31c04a19ac user: dgp

cwdPathPtr incomplete finalization

Closed / Fixed1536142fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-08-07 16:42:35
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.
dgpplain2006-08-07 23:42:36
File Added - 188039: cwdfinal.patch
dgpplain2006-08-18 03:10:46
Logged In: YES 
user_id=80530


had a chance to review this yet?
nobodyplain2006-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.
dgpplain2006-08-21 22:03:57
Logged In: YES 
user_id=80530


patch committed to both active branches
dgp Ticket [1536142fff]: 3 changes [History diff]2006-08-21 22:03:58
Log in (anonymous is fine) to add a comment.

Attachments: