Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-05-04
00:04 • Closed ticket [947070ffff]: Unchecked stack overflow in TclReExec plus 3 oth... artifact: 8d9c7d3e10 user: kennykb
2004-05-03
23:36 • Add attachment regexpcrash.tcl to ticket [947070ffff] artifact: 9d5136ee1a user: kennykb
23:36 • Ticket [947070ffff] Unchecked stack overflow in TclReExec status still Open ... artifact: c06e0d59ed user: kennykb
16:36 • New ticket [947070ffff]. artifact: 09cc1eff10 user: kennykb

Unchecked stack overflow in TclReExec

Closed / Fixed947070ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-05-03 16:36:06
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.
kennykbplain2004-05-03 23:36:09
File Added - 85947: regexpcrash.tcl
kennykb Closed ticket [947070ffff]. [History diff]2004-05-04 00:04:48
Log in (anonymous is fine) to add a comment.

Attachments: