Tcl Source Code

View Ticket
Login
Ticket UUID: 483612
Title: codePtr->maxStackDepth badly computed
Type: Bug Created on: 2001-11-19 23:02:22
Submitter: msofer Assigned to: msofer
Subsystem: 47. Bytecode Compiler Severity:
Priority: 7 High Last modified: 2001-11-21 00:00:12
Status: Deleted Closed by: msofer
Resolution: Duplicate Closed on: 2001-11-20 17:00:12
Version: None
Description:
The attached patch modifies the function
ValidatePcAndStackTop (used only under
TCL_COMPILE_DEBUG) to verify that no bytecode exceeds
its reported stack usage.

The testsuite bombs immediately! If we "relax" the
constraint somewhat (allow 1 in excess of the reported
stack usage) there are still 20 tests that panic.

I hereby declare open hunt season for the bugs in
tclCompCmds.c, possibly also in tclCompExpr.c and/or
tclCompile.c.
User Comments:
msofer added on 2001-11-20 06:02:30:

File Added - 13558: validate.patch

Attachments: