From 0d5004508f7be6b75a2fd5127144bff4ce925b65 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman <145775305+xokdvium@users.noreply.github.com> Date: Fri, 21 Feb 2025 12:29:54 +0000 Subject: [PATCH] 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. --- tests/functional/flakes/debugger.sh | 28 ++++++++++++++++++++++++++++ tests/functional/flakes/meson.build | 3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tests/functional/flakes/debugger.sh diff --git a/tests/functional/flakes/debugger.sh b/tests/functional/flakes/debugger.sh new file mode 100644 index 00000000000..f75f0ad39ef --- /dev/null +++ b/tests/functional/flakes/debugger.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +source ./common.sh + +requireGit + +flakeDir="$TEST_ROOT/flake" +createGitRepo "$flakeDir" + +cat >"$flakeDir/flake.nix" <