Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2f8a04d55e1978dd220cd711b702c8005e4b587a1af3c5dec070b8bd794aa3e8
Ticket: fec0c17d39db02faffa101ebb605d0958dbf3466
segfault compiling deeply nested [catch]
User & Date: sebres on 2019-09-11 18:38:58
Changes

  1. closedate changed to: "2458738.27706645"
  2. closer changed to: "sebres"
  3. icomment:
    Branch [/timeline?r=bug-fec0c17d39-8.6-limit|bug-fec0c17d39-8.6-limit] gets merged, so it is ultimately fixed now for 8.6 in [ecf524bce0].
    The body of <code>catch</code> is compiled in core on demand, so the original script falls in the category of mixed eval+compile and now it stops to compile after ca. 1250 nested compilations (mentioned factor 5/4).<br/>
    
    Although the script returned successfully with 0 now (due to top <code>catch</code>'s around of catch-ed error), but the error is pretty visible using <code>$errorInfo</code>:
    <pre style="padding-left:10pt">
    % puts [eval [gencode 100000]]
    0
    % puts $::errorInfo
    too many nested compilations (infinite loop?)
        invoked from within
    "catch {catch {catch {catch {catch {catch {catch {catch {catch {catch {catch {catch {catch ...
    </pre>
    
    Thus close now.<br/>
    Thanks for reminder, Don!
    
  4. login: "sebres"
  5. mimetype: "text/x-fossil-wiki"
  6. status changed to: "Closed"