Tcl Source Code

View Ticket
Login
Ticket UUID: 947070
Title: Unchecked stack overflow in TclReExec
Type: Bug Version: obsolete: 8.5a2
Submitter: kennykb Created on: 2004-05-03 16:36:06
Subsystem: 69. Other Assigned To: kennykb
Priority: 8 Severity:
Status: Closed Last Modified: 2004-05-04 00:04:48
Resolution: Fixed Closed By: kennykb
    Closed on: 2004-05-03 17:04:48
Description:
The attached test case crashes tclsh with a
"stack overflow" exception.

Configuration:
    HEAD as of 2004-04-30
    Win2k, VC++ 6 SP5, cygwin
    --enable-threads --enable-symbols

The problem is that the activation record for TclReExec
is larger than TCL_WIN_STACK_THRESHOLD, so we
can get into there with insufficient space on the stack
to run the function.

Fix is to increase TCL_WIN_STACK_THRESHOLD -
0x8000 appears sufficient. 0x4000 is not.

I plan to fix this myself - I'm logging this so
I don't forget and for the benefit of future
maintainers.
User Comments: kennykb added on 2004-05-03 23:36:09:

File Added - 85947: regexpcrash.tcl

Attachments: