v1-0001-ci-skip-minfree-file-in-the-cores_backtrace.sh.patch
text/x-patch
Filename: v1-0001-ci-skip-minfree-file-in-the-cores_backtrace.sh.patch
Type: text/x-patch
Part: 0
Patch
Format: format-patch
Series: patch v1-0001
Subject: ci: skip minfree file in the cores_backtrace.sh
| File | + | − |
|---|---|---|
| src/tools/ci/cores_backtrace.sh | 2 | 1 |
From adaaf0ee12a16ab944ed288b05e2d7636ae1cbaa Mon Sep 17 00:00:00 2001
From: Nazir Bilal Yavuz <byavuz81@gmail.com>
Date: Fri, 17 Oct 2025 10:39:34 +0300
Subject: [PATCH v1] ci: skip minfree file in the cores_backtrace.sh
The crash directory may contain a file named "minfree" which is not
a core dump. When the script attempts to process this file, it fails
because "minfree" is not a valid core file.
Reported-by: Melanie Plageman <melanieplageman@gmail.com>
Author: Christoph Berg <myon@debian.org>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
---
src/tools/ci/cores_backtrace.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/tools/ci/cores_backtrace.sh b/src/tools/ci/cores_backtrace.sh
index 54607415258..89d08fd253a 100755
--- a/src/tools/ci/cores_backtrace.sh
+++ b/src/tools/ci/cores_backtrace.sh
@@ -18,7 +18,8 @@ case $os in
esac
first=1
-for corefile in $(find "$directory" -type f) ; do
+# minfree is not a core file but may exists in the crash directory, skip it
+for corefile in $(find "$directory" -type f -not -name "minfree") ; do
if [ "$first" -eq 1 ]; then
first=0
else
--
2.51.0