Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 37a2de4aec4f81a0c61ac8cf186f99eb5309ef06
Ticket: 3001438fffffffffffffffffffffffffffffffff
[info frame -1] sigsegv under strange circumstances
User & Date: dkf on 2010-05-19 21:59:35
Changes

  1. icomment:
    Bug appears to be caused by the TclStackAlloc-ated space for the method frame somehow overlapping with the TclStackAlloc-ated space for the CmdFrame that is allocated inside of TclInfoFrame. No idea how that comes to pass!
    
    If I change TclInfoFrame to use a local variable (should be OK for 48 bytes that don't persist) then everything works.
    
    The following code is the test case (and isn't far off minimal):
    
      oo::class create Tuple {
        method fixup {x} {
          if {$x eq "conversion"} {my New type}
        }
        method New {x} {
          my fixup $x
          puts >[info frame -1]
        }
        constructor {args} {my New conversion}
      }
      set ts [Tuple new]
    
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"