Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5ccebb9f287d9f594f5049e08972eff198fd63435a047ade0cb43e8e5bd43ae7
Ticket: 8c52e7873850438e512afa106284e299812dc48d
dgp-refactor TclStackFree panic
User & Date: dgp on 2023-07-21 16:00:54
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    The dgp-refactor branch has been exhibiting a panic in TclStackFree
    since the merge of TIP 636 from trunk.  Some merge flaw has introduced
    a defect.
    
    Here is a stripped down demo of the panic:
    
    proc demo {} {
        set l {}
        namespace eval {} {}
        lappend l a b
    }
    demo
    
    TclStackFree: incorrect freePtr (0x2489b50 != 0x2489b3f). Call out of sequence?
    
    
    The [set] and [lappend] commands have the effect of getting "l"
    treated as a compiled local variable.  The panicking TclStackFree
    is one that releases a compiled local previously created with
    TclStackAlloc.  The [namespace eval] seems to be where the corruption
    happens, and the most likely suspect is in the invokeReplace instruction.
    
    Note also that the reported mismatch reports a value of
    MEMSTART(markerPtr) ending in f, which doesn't seem to be
    a result with an acceptable alignment, which is supposed to
    be part of what MEMSTART() does.  Very strange symptoms.
    
  5. is_private changed to: "0"
  6. login: "dgp"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  9. resolution changed to: "None"
  10. severity changed to: "Critical"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "47. Bytecode Compiler"
  14. title changed to: "dgp-refactor TclStackFree panic"
  15. type changed to: "Bug"