Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-05-30
15:01 • Ticket [1204064fff] Tcl 8.4 release compile error status still Closed with 4... artifact: c9ec3f0ed2 user: vasiljevic
10:38 • Ticket [1204064fff]: 6 changes artifact: 5c3b06fcef user: hobbs
10:38 • Closed ticket [1204064fff]. artifact: d23beaf837 user: hobbs
10:26 • Ticket [1204064fff]: 4 changes artifact: 94a1538aa7 user: mistachkin
10:15 • Ticket [1204064fff]: 4 changes artifact: addf713561 user: hobbs
09:37 • Open ticket [1204064fff]. artifact: cbb8e8e534 user: mistachkin
08:36 • Pending ticket [1204064fff]. artifact: 11f5d5f994 user: hobbs
2005-05-18
12:00 • Ticket [1204064fff]: 4 changes artifact: 5dfc2973c5 user: mistachkin
11:59 • Ticket [1204064fff]: 4 changes artifact: 3de48cd5a7 user: mistachkin
04:56 • New ticket [1204064fff]. artifact: 36e4bcfa41 user: mistachkin

Tcl 8.4 release compile error

Closed / Fixed1204064fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-05-18 04:56:59
When compiling in release mode using the threaded
memory allocator, the following code causes a problem:

in tclWinThrd.c, function TclpFinalizeThreadData, near
line #705:

#if defined(USE_THREAD_ALLOC) && !defined(TCL_MEM_DEBUG)
        if (indexPtr == &key) {
            TclpFreeAllocCache(result);
            return;
        }
#endif

There is no variable named "key".  I'm not sure what
the precise intent here is.

..\win\tclWinThrd.c(688) : error C2065: 'key' :
undeclared identifier
..\win\tclWinThrd.c(1046) : warning C4142: benign
redefinition of type
mistachkinplain2005-05-18 11:59:13
Logged In: YES 
user_id=113501


Perhaps the author wanted to do this?

#if defined(USE_THREAD_ALLOC) && !defined(TCL_MEM_DEBUG)
        if (indexPtr == &dataKey) {
            TclpFreeAllocCache(result);
            return;
        }
#endif
mistachkinplain2005-05-18 12:00:41
Logged In: YES 
user_id=113501


Issue introduced:

version 1.24.2.10, Thu Apr 7 11:29:33 2005 UTC
hobbsplain2005-05-30 08:36:18
Logged In: YES 
user_id=72656

Fixed in head - the decl was lower in the file.  Renamed to
tlsKey to be more descriptive.  Go ahead and test (passes
test suite).
mistachkinplain2005-05-30 09:37:23
Logged In: YES 
user_id=113501

Fix confirmed in HEAD.  However, this same error still
exists in core-8-4-branch.
hobbsplain2005-05-30 10:15:13
Logged In: YES 
user_id=72656

I expect you mean the opposite, since I only fixed
core-8-4-branch ...
mistachkinplain2005-05-30 10:26:52
Logged In: YES 
user_id=113501


Your previous message said you fixed it in HEAD?  

I'm really confused now, I see the declaration way above the
usage in HEAD.  Therefore, it must be fixed in HEAD;
however, it is not named "tlsKey".  

In core-8-4-branch, the declaration for 1.24.2.9 2004/10/28
21:12:38 is on line 1068, far beyond the usage.
hobbs Closed ticket [1204064fff]. [History diff]2005-05-30 10:38:30
hobbsplain2005-05-30 10:38:31
Logged In: YES 
user_id=72656

You must be accessing anoncvs, which is delayed.
vasiljevicplain2005-05-30 15:01:43
Logged In: YES 
user_id=95086

I have fixed the HEAD (8.5) now; please try it. 
Jeff has fixed the core-8-4-branch.
Sorry for this, but I do not have Win platform 
to test, therefore this one creeped in.
Log in (anonymous is fine) to add a comment.