Bug 504909

Summary: Hide "Bad oldset address" warnings when -q (quiet) flag is set
Product: [Developer tools] valgrind Reporter: mcermak
Component: generalAssignee: Paul Floyd <pjfloyd>
Status: RESOLVED FIXED    
Severity: normal CC: mark
Priority: NOR    
Version First Reported In: 3.25 GIT   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=504904
https://bugs.kde.org/show_bug.cgi?id=504919
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: possible patch

Description mcermak 2025-05-28 12:53:20 UTC
Created attachment 181824 [details]
possible patch

The `make ltpchecks` target reports a failure in the rt_sigprocmask02 test case. This failure occurs because the test triggers Valgrind to log warnings such as:

--318412-- Warning: Bad oldset address 0xFFFFFFFFFFFFFFFF in sigprocmask

Since the tests are run with the -q (quiet) flag, warnings like this should ideally be suppressed. The attached patch ensures that these messages are hidden as expected.
Comment 1 Mark Wielaard 2025-05-29 22:15:41 UTC
Like https://bugs.kde.org/show_bug.cgi?id=504904 this looks good and is confusing for the user.

Pushed as:

commit 4540c465868f18943e649c686e83e33688711887
Author: Martin Cermak <mcermak@redhat.com>
Date:   Wed May 28 14:50:49 2025 +0200

    Hide "Bad oldset address" warnings when -q (quiet) flag is set
    
    When valgrind is run with -q, messages like "Warning: Bad oldset
    address 0xFFFFFFFFFFFFFFFF in sigprocmask" be hidden.
    
    Reproducer: TESTS=rt_sigprocmask02 make ltpchecks
    
    https://bugs.kde.org/show_bug.cgi?id=504909

Again leaving open for Paul who might want to make a similar change for FreeBSD.
Comment 2 Paul Floyd 2025-05-30 06:34:15 UTC
Done for FreeBSD as well

commit ebc73366045855c6cf5069ae6841d3a887bd0ba0 (HEAD -> master, origin/master, origin/HEAD)
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Fri May 30 08:31:48 2025 +0200

    FreeBSD sigprocmask syscall: do not print warnings when -q is set
    
    Equivalent to bug504904 and bug504909