Bug 504909 - Hide "Bad oldset address" warnings when -q (quiet) flag is set
Summary: Hide "Bad oldset address" warnings when -q (quiet) flag is set
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.25 GIT
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-28 12:53 UTC by mcermak
Modified: 2025-05-30 06:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
possible patch (1.67 KB, patch)
2025-05-28 12:53 UTC, mcermak
Details

Note You need to log in before you can comment on or make changes to this bug.
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