forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the max-call-depth check thread-local
- Loading branch information
Showing
3 changed files
with
53 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 38 additions & 1 deletion
39
tests/functional/lang/eval-fail-infinite-recursion-lambda.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
error: stack overflow (possible infinite recursion) | ||
error: | ||
… from call site | ||
at /pwd/lang/eval-fail-infinite-recursion-lambda.nix:1:1: | ||
1| (x: x x) (x: x x) | ||
| ^ | ||
2| | ||
|
||
… while calling anonymous lambda | ||
at /pwd/lang/eval-fail-infinite-recursion-lambda.nix:1:2: | ||
1| (x: x x) (x: x x) | ||
| ^ | ||
2| | ||
|
||
… from call site | ||
at /pwd/lang/eval-fail-infinite-recursion-lambda.nix:1:5: | ||
1| (x: x x) (x: x x) | ||
| ^ | ||
2| | ||
|
||
… while calling anonymous lambda | ||
at /pwd/lang/eval-fail-infinite-recursion-lambda.nix:1:11: | ||
1| (x: x x) (x: x x) | ||
| ^ | ||
2| | ||
|
||
… from call site | ||
at /pwd/lang/eval-fail-infinite-recursion-lambda.nix:1:14: | ||
1| (x: x x) (x: x x) | ||
| ^ | ||
2| | ||
|
||
(19997 duplicate frames omitted) | ||
|
||
error: stack overflow; max-call-depth exceeded | ||
at /pwd/lang/eval-fail-infinite-recursion-lambda.nix:1:14: | ||
1| (x: x x) (x: x x) | ||
| ^ | ||
2| |