Commit 7b879ef
committed
sql: prevent stack overflow with infinite loops in test builds
We just saw a test case where we hit stack overflow when handling
a DO block with an infinite loop and `tail-call-optimization-enabled`
metamorphic variable happened to use `false`. In this case, it's
expected behavior that we'd be hitting the stack overflow, so in order
to prevent such crashes in tests, we now do a depth check (similar to
trigger depth check) to error out at the depth of 10000.
Additionally, this commit removes disabling DO blocks in a single test
that hit this stack overflow first as well as includes a few expected
errors I saw in the artifacts into the set of ignored ones.
Release note: None1 parent b136ab6 commit 7b879ef
File tree
3 files changed
+25
-2
lines changed- pkg
- compose/compare/compare
- sql
- tests
3 files changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
158 | 173 | | |
159 | 174 | | |
160 | 175 | | |
| |||
193 | 208 | | |
194 | 209 | | |
195 | 210 | | |
| 211 | + | |
| 212 | + | |
196 | 213 | | |
197 | 214 | | |
198 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
644 | 648 | | |
645 | 649 | | |
646 | 650 | | |
647 | 651 | | |
648 | 652 | | |
649 | 653 | | |
| 654 | + | |
650 | 655 | | |
651 | 656 | | |
652 | 657 | | |
| |||
680 | 685 | | |
681 | 686 | | |
682 | 687 | | |
683 | | - | |
| 688 | + | |
| 689 | + | |
684 | 690 | | |
685 | 691 | | |
686 | 692 | | |
| |||
0 commit comments