Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 309d5e976267f9681e83bf6822f178276d2400d9
Ticket: e3f4a8b78dec4bdb549333f5373eee97c1020350
Empty error message when interp limits are exceeded
User & Date: apnadkarni 2017-04-26 13:31:59
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    See the following console session
    
    % interp create slave
    slave
    % set cmdlimit [slave eval {info cmdcount}]
    280
    % slave limit command -value [incr cmdlimit 5]
    % slave limit time -seconds 600
    % slave eval [list expr 1+3]
    
    % set errorInfo
    
        while executing
    "expr 1+3"
        invoked from within
    "slave eval [list expr 1+3]"
        ("uplevel" body line 1)
        invoked from within
    "uplevel #0 {slave eval [list expr 1+3]}"
    % set errorCode
    NONE
    
    The time limit is in the past (it was actually a programming error, should have been absolute time, not relative). An error was generated as expected. However the error message is empty and error code is NONE (expected to be TCL LIMIT) resulting in my trap handler not firing.
    
  5. foundin changed to: "8.6.6"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "20. [interp]"
  14. title changed to:
    Empty error message when interp limits are exceeded
    
  15. type changed to: "Bug"