Ticket UUID: | 753315 | |||
Title: | mt-safety issue in filesystem record list | |||
Type: | Bug | Version: | obsolete: 8.4.3 | |
Submitter: | vasiljevic | Created on: | 2003-06-12 14:30:19 | |
Subsystem: | 36. Pathname Management | Assigned To: | vasiljevic | |
Priority: | 7 High | Severity: | ||
Status: | Closed | Last Modified: | 2003-08-23 18:51:18 | |
Resolution: | Remind | Closed By: | vasiljevic | |
Closed on: | 2003-08-23 11:51:18 | |||
Description: |
There is a new MT-safety bug appearing in the tclIOUtil.c code. The problem is the shared list of filesystem records. Pointers from this list are being referenced in each path internal rep in every Tcl path object. Now, when objects are getting destroyed, they decrement refcount of the *shared* record. This happens w/o mutex protection, leading to memory corruptions. Especially on MP machines, this comes out pretty soon, i.e. the process cores. | |||
User Comments: |
vasiljevic added on 2003-08-23 18:51:18:
Logged In: YES user_id=95086 I have merged the changes into tclIOUtil.c, tclPathObj.c and tclFileSystem.h in current CVS. I'm closing this now. hobbs added on 2003-07-19 03:29:27: Logged In: YES user_id=72656 Commited for 8.4.4, but not 8.5 (requires some translation to patch tclPathObj.c as well). Zoran - please update for 8.5 and commit there. Also, any chance of core tests to exercise this? vasiljevic added on 2003-06-23 16:09:09: Logged In: YES user_id=95086 Good. I will do that. I will, however, first wait for people at AOL to double-check this in their MP test environment just to be 100% sure. vincentdarley added on 2003-06-23 14:46:19: Logged In: YES user_id=32170 The patch looks good to me; please do apply against both cvs head and 8.4 branch (looks like minor changes will be needed for cvs head, because of the splitting into multiple files of the fs code). Thanks! vasiljevic added on 2003-06-22 22:35:40: File Added - 53808: tclIOUtil.c.patch vasiljevic added on 2003-06-22 22:35:39: Logged In: YES user_id=95086 Here is the patch which corrects the problem. |
Attachments:
- tclIOUtil.c.patch [download] added by vasiljevic on 2003-06-22 22:35:39. [details]