Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4bf490e3165d60d2a6e653f1b3df2bbdbd79c7ed0975ea6753a1e3d1671dd686
Ticket: fec0c17d39db02faffa101ebb605d0958dbf3466
segfault compiling deeply nested [catch]
User & Date: dgp on 2017-11-28 13:21:09
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Reported in the chat by Rolf Ade:
    
    http://paste.tclers.tk/4602
    
    Following script segfaults:
    
    proc gencode {nr} {
        set code ""
        for {set i 0} {$i < $nr} {incr i} {
            append code "catch \{"
        }
        append code "set a foo"
        for {set i 0} {$i < $nr} {incr i} {
            append code "\}"
        }
        return $code
    }
    puts [eval [gencode 100000]]
    
    `fossil bisect` blames https://core.tcl.tk/tcl/info/bf171b6b51
    
  5. foundin changed to: "8.6.1+"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Critical"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "47. Bytecode Compiler"
  14. title changed to: "segfault evaluating large script"
  15. type changed to: "Bug"