Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 40b3c552eb88b8357992595855714c9d55f54506
Ticket: 0e4d88b6502ac8fe0ccc912c2bd2ef4c16279837
A trace deletes the namespace when a command is replaced, producing "called Tcl_CreateHashEntry on deleted table"
User & Date: pooryorick on 2017-08-30 09:20:10
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The following script:
    
    <code><verbatim>
    proc deleter {ns args} {
        namespace delete $ns
    }
    
    namespace eval n1 {
        proc c1 {} {}
    }
    trace add command n1::c1 delete [list deleter ::n1]
    proc ::n1::c1 {} {}
    </verbatim></code>
    
    produces the error:
    
    <verbatim>
    called Tcl_CreateHashEntry on deleted table
    Aborted (core dumped)
    </verbatim>
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "afec6fbd8b0af33f15fa64836872d9f93cc5a2c6"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "21. [namespace]"
  15. title changed to:
    A trace deletes the namespace when a command is replaced, producing "called Tcl_CreateHashEntry on deleted table"
    
  16. type changed to: "Bug"