diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-01-24 12:05:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 12:05:30 +0100 |
commit | 076945c80815323658f02ef5e04a9c0e9f638d1c (patch) | |
tree | cd9e33783e1e8745d522e25309457cdbb6f6cd1f /tests/simple.sh | |
parent | c9a4ddb9c0a7d15c29d904a017d4d5d58492fdfd (diff) | |
parent | 0407436b0f15900399d11da43178cd09fddba0af (diff) |
Merge pull request #5875 from hercules-ci/fix-large-drv-field-stack-overflow
Fix segfault or stack overflow caused by large derivation fields
Diffstat (limited to 'tests/simple.sh')
-rw-r--r-- | tests/simple.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/simple.sh b/tests/simple.sh index 15bd2bd16..50d44f93f 100644 --- a/tests/simple.sh +++ b/tests/simple.sh @@ -25,3 +25,9 @@ if test "$outPath" != "/foo/lfy1s6ca46rm5r6w4gg9hc0axiakjcnm-dependencies.drv"; echo "hashDerivationModulo appears broken, got $outPath" exit 1 fi + +outPath="$(NIX_REMOTE=local?store=/foo\&real=$TEST_ROOT/real-store nix-instantiate --readonly-mode big-derivation-attr.nix)" +if test "$outPath" != "/foo/xxiwa5zlaajv6xdjynf9yym9g319d6mn-big-derivation-attr.drv"; then + echo "big-derivation-attr.nix hash appears broken, got $outPath. Memory corruption in large drv attr?" + exit 1 +fi |