Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 386e20e5151a1c129396a63a0b0609a5a1b1d182
Ticket: 3e7eca8c8c70ce1b50d4feeea12bef11e26c1227
Large [expr]ession parse error/segfault
User & Date: dgp on 2015-07-28 19:57:50
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    From RickyB98 on the chat:
    
    % info patch
    8.6.4
    % set go 1; set string 3; while {$go} {incr iter; append string +4/double([incr x 2]*($x+1)*($x+2))-4/double([incr x 2]*($x+1)*($x+2)); if {$iter > 10000000} {set go 0}}; concat
    % string length $string
    883333447
    % time {expr $string}
    unbalanced close paren
    in expression "...e(26843546*(26843546+1)*(26843546+2))-4/doubl..."
    % exit
    
    
    Original report was a segfault, and that indeed happens with Tcl 8.5.9.
    
    On trunk and core-8-5-branch tip we get the (false) parsing error 
    message instead.
    
    Initial guess is that we're overflowing something or other.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "dgp"
  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: "dgp"
  13. subsystem changed to: "47. Bytecode Compiler"
  14. title changed to: "Large [expr]ession parse error/segfault"
  15. type changed to: "Bug"