Bug 504919 - Hide "client tried to modify addresses" warnings when -q (quiet) flag is set
Summary: Hide "client tried to modify addresses" 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: mcermak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-28 16:07 UTC by mcermak
Modified: 2025-05-29 22:42 UTC (History)
1 user (show)

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


Attachments
proposed patch (1.46 KB, patch)
2025-05-28 16:08 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 16:07:56 UTC
The `make ltpchecks` target reports a failure in the munmap03 test case. This failure occurs because the test triggers Valgrind to log warnings such as:

==292328== Warning: client syscall munmap tried to modify addresses 0xffffffffffffffff-0x1ffe

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 mcermak 2025-05-28 16:08:22 UTC
Created attachment 181826 [details]
proposed patch
Comment 2 Mark Wielaard 2025-05-29 22:41:37 UTC
Looks correct for -q. Since this is a generic handler I also removed the Warning from the {freebsd,solaris}/scalar.stderr.exp files since those tests are run with -q.

Pushed as:

commit 47f2f1df4112e9befe2d0039d7e4f6c957669b6e
Author: Martin Cermak <mcermak@redhat.com>
Date:   Wed May 28 18:04:46 2025 +0200

    Hide "client tried to modify addresses" warnings when -q (quiet) is set
    
    When -q is set, that is when verbosity is 0, the "client tried to
    modify addresses" warning should be hidden.
    
    Also remove the warning from {freebsd,solaris}/scalar.stderr.exp
    
    Reproducer: TESTS=munmap03 make -j$(nproc) ltpchecks
    
    https://bugs.kde.org/show_bug.cgi?id=504919