forked from lix-project/lix
eldritch horrors
96f1a404d0
Fix segfault on infinite recursion in some cases (cherry picked from commitbf1b294bd8
) Change-Id:Id137541426ec8536567835953fccf986a3aebf16
753 B
753 B
synopsis | issues | prs |
---|---|---|
Some stack overflow segfaults are fixed | 9616 | 9617 |
The number of nested function calls has been restricted, to detect and report
infinite function call recursions. The default maximum call depth is 10,000 and
can be set with the max-call-depth
option.
This fixes segfaults or the following unhelpful error message in many cases:
error: stack overflow (possible infinite recursion)
Before:
$ nix-instantiate --eval --expr '(x: x x) (x: x x)'
Segmentation fault: 11
After:
$ nix-instantiate --eval --expr '(x: x x) (x: x x)'
error: stack overflow
at «string»:1:14:
1| (x: x x) (x: x x)
| ^