Overview
| Artifact ID: | 9b26e1f41ec8d96d60225548dffca683703026b7 |
|---|---|
| Ticket: | 1865728fffffffffffffffffffffffffffffffff
stack checking code isn't functional |
| User & Date: | mmaslano on 2008-01-07 09:01:02 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The checking stack in tcl8.5.0 causing infinite loop in programmes using tcl scripts. The good example is run game 8Kingdoms with tcl8.5 and nothing is working, because of running in a loop. The problem was located in checking stack. Here is comparing a pointer returned from malloc with an address from a variable in the current stack frame, assuming that if stackaddress < heapaddress (on architectures where the stack grows down) that the stack has grown into the heap. With using address randomization or threads (multiple stacks in one address space) doesn't make sense to check it. Other thing are protected mode in OS, you can disallow the stack to grow into already allocated memory and then is checking really uselles. I solved my problem with option CFLAGS=-DTCL_NO_STACK_CHECK=1 and that fix my problems, but I appreciated clean code. Thank you.
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "mmaslano"
- subsystem changed to: "None"
- title changed to: "stack checking code isn't functional"
- type changed to: "Bug"