Skip to content
Tcl Source Code View Ticket
Login

View Ticket

stack problem on Tcl_Eval

Closed / Fixed218914ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:07:49
OriginalBugID: 2700 Bug
Version: 8.2
SubmitDate: '1999-09-10'
LastModified: '1999-11-07'
Severity: SER
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Windows 98
Machine: X86
FixedDate: '1999-11-07'
ClosedDate: '2000-10-25'


Name:
Francois Paquette

Extensions:
TkTable 2.5  QT ???

CustomShell:
I modified TkWin32dll.c to be link staticly. (used #ifdef STATIC_BUILD)

ReproducibleScript:
I compiled Tcl and Tk with extension
    functions into an executable. A certain function on my extension calls
    Tcl_Eval quite extensively. After a certain number of calls (not always
    the same) I get a exception error in the function "TclExecuteByteCode".
    Its trying to de-reference an object puted in the stack but the stack
    is empty. Feels like the stack gets completely out of synch.

ObservedBehavior:
case INST_INVOKE_STK1:
    ...
    for (i = 0;  i < objc;  i++) {
        valuePtr = stackPtr[stackTop];
    -->            TclDecrRefCount(valuePtr);
        stackTop--;
    }

DesiredBehavior:
No crash!



fixed in 8.2.2. 
-- 11/07/1999 hobbs
welch Closed ticket [218914ffff]. [History diff]2000-10-26 08:31:16
dgp Ticket [218914ffff]: 3 changes [History diff]2001-04-19 03:20:13
Log in (anonymous is fine) to add a comment.