public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/workflow] rawhide: Fix build on AArch64
@ 2026-10-20 18:39 Marcin Juszkiewicz
  0 siblings, 0 replies; only message in thread
From: Marcin Juszkiewicz @ 2026-10-20 18:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/workflow
            Branch : rawhide
            Commit : 93ead8ab53bbf42ba1c2e5f446d6ecbf87dbdc01
            Author : Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
            Date   : 2026-10-20T19:46:23+02:00
            Stats  : +25/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/workflow/c/93ead8ab53bbf42ba1c2e5f446d6ecbf87dbdc01?branch=rawhide

            Log:
            Fix build on AArch64

Valgrind required much higher value of 'max-guard-pages'.

---
diff --git a/workflow-aarch64-valgrind-guard-pages.patch b/workflow-aarch64-valgrind-guard-pages.patch
new file mode 100644
index 0000000..e393f90
--- /dev/null
+++ b/workflow-aarch64-valgrind-guard-pages.patch
@@ -0,0 +1,24 @@
+From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
+Date: Tue, 20 Oct 2026 19:00:00 +0200
+Subject: [PATCH] test: increase valgrind max-guard-pages on aarch64
+
+The workflow thread pool creates many threads on high-core-count aarch64
+machines, exhausting valgrind's default guard page limit and causing the
+memory-check tests to abort with "Max number of guard pages is too low".
+---
+ test/CMakeLists.txt | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -14,6 +14,9 @@
+ find_library(WORKFLOW_LIB NAMES libworkflow.a workflow HINTS ${WORKFLOW_LIB_DIR})
+
+ find_program(CMAKE_MEMORYCHECK_COMMAND valgrind)
++if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
++    list(APPEND CMAKE_MEMORYCHECK_COMMAND_OPTIONS "--max-guard-pages=4096")
++endif()
+ set(memcheck_command ${CMAKE_MEMORYCHECK_COMMAND} ${CMAKE_MEMORYCHECK_COMMAND_OPTIONS} --error-exitcode=1 --leak-check=full)
+
+ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})

diff --git a/workflow.spec b/workflow.spec
index 5734054..e5efde0 100644
--- a/workflow.spec
+++ b/workflow.spec
@@ -12,6 +12,7 @@ Release:        %autorelease
 
 URL:            https://github.com/sogou/workflow
 Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0:         workflow-aarch64-valgrind-guard-pages.patch
 
 BuildRequires:  cmake
 BuildRequires:  gcc-c++

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-20 18:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 18:39 [rpms/workflow] rawhide: Fix build on AArch64 Marcin Juszkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox