Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 144698331eeb594a3ad09c31f945df4863f94a39
Ticket: 3398794fffffffffffffffffffffffffffffffff
Setting limits on the current interpreter calls Tcl_Panic()
User & Date: egavilan on 2011-08-26 16:46:56
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Trying to set an interp limit on the current interpreter calls Tcl_Panic().
    
    $ tclsh8.6 
    % interp limit {} time -command foo
    installing limit callback to the limited interpreter
    Abort trap (core dumped)
    
    The backtrace points to the lines 4156-4158 of generic/tclInterp.c, which reads
    
        if (interp == targetInterp) {
    Tcl_Panic("installing limit callback to the limited interpreter");
        }
    
    This fact is:
    * Not documented in the interp manual page.
    * An incorrect use of Tcl_Panic() IMO. Simply ignoring the request or generating a standard, [catch]eable error is enough.
    
  4. foundin changed to: "obsolete: 8.6b2"
  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: "egavilan"
  10. subsystem changed to: "20. [interp]"
  11. title changed to:
    Setting limits on the current interpreter calls Tcl_Panic()
    
  12. type changed to: "Bug"