-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/functional: Add flake-based regression for debugger use-after-free
This is the simplest reproducer I have. It would be great to find a repro without flakes, but I guess this should be ok for now.
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
source ./common.sh | ||
|
||
requireGit | ||
|
||
flakeDir="$TEST_ROOT/flake" | ||
createGitRepo "$flakeDir" | ||
|
||
cat >"$flakeDir/flake.nix" <<EOF | ||
{ | ||
inputs = { | ||
}; | ||
outputs = | ||
_: | ||
let | ||
in | ||
{ | ||
packages.$system.default = throw "oh no"; | ||
}; | ||
} | ||
EOF | ||
|
||
git -C "$flakeDir" add flake.nix | ||
|
||
# regression #12527 and #11286 | ||
echo ":env" | expect 1 nix eval "$flakeDir#packages.${system}.default" --debugger |
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