public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/workflow] rawhide: Fix build on AArch64
Date: Tue, 20 Oct 2026 18:39:25 GMT	[thread overview]
Message-ID: <179252156593.1.650557220151588452.rpms-workflow-93ead8ab53bb@fedoraproject.org> (raw)

            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++

                 reply	other threads:[~2026-10-20 18:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179252156593.1.650557220151588452.rpms-workflow-93ead8ab53bb@fedoraproject.org \
    --to=mjuszkiewicz@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox