Overview
| Artifact ID: | 6089af59d22889fc3b6509ca1251eb2cd70312123f10277b011aa08afc98b656 |
|---|---|
| Ticket: | fec0c17d39db02faffa101ebb605d0958dbf3466
segfault compiling deeply nested [catch] |
| User & Date: | sebres on 2019-08-30 19:59:56 |
Changes
- closer changed to: "nobody"
- icomment:
New branch [/timeline?r=bug-fec0c17d39-8.6-limit|bug-fec0c17d39-8.6-limit] provide a mechanism to really avoid SO in case of deeply nested calls of <code>TclCompileScript</code>. Although at the moment it uses same level variable as the execution depth (<code>iPtr->numLevels</code>), I selected a factor (5/4 = 1.25) for comparison with max depth (interp recursionlimit), which is used to avoid mistaken level excess by "mixed" compile/eval process (if eval/invoke calls compile which calls eval/invoke etc).<br/> This way it protects against stack exhaustion (don't confuses eval level check, which always wins) and is good enough for default recursionlimit (1000), so stop compile process at least after 1250 recursion steps. Additional test case compile-13.3 (similar to compile-13.2) covers in the test interpreter the stop by compilation of same commands (having body) like in bug-fix, just exceeding limit of 100.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Pending"