Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d5d4f81a3736e476fadf028aaf3bc7e82cfed807
Ticket: 1522803fffffffffffffffffffffffffffffffff
wrong backtrace on arithmetic error
User & Date: kennykb on 2006-07-14 21:35:09
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    On an arithmetic error, such as division by zero,
    the backtrace in ::errorInfo shows the last previous
    error, rather than the current error.
    
    Behold:
    
    % catch {unset foo(bar)}; set c 0; expr {1/$c}
    divide by zero
    % set errorInfo
    can't unset "foo(bar)": no such variable
        while executing
    "unset foo(bar)"
        invoked from within
    "expr {1/$c}"
    
    I'm looking at this briefly, but don't expect
    to solve it quickly, and hope that one of the
    other developers that understands the bytecode
    engine might have a keener insight.
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "7 High"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kennykb"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "wrong backtrace on arithmetic error"
  11. type changed to: "Bug"