Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9b26e1f41ec8d96d60225548dffca683703026b7
Ticket: 1865728fffffffffffffffffffffffffffffffff
stack checking code isn't functional
User & Date: mmaslano on 2008-01-07 09:01:02
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "mmaslano"
  10. subsystem changed to: "None"
  11. title changed to: "stack checking code isn't functional"
  12. type changed to: "Bug"