Bug 504919

Summary: Hide "client tried to modify addresses" warnings when -q (quiet) flag is set
Product: [Developer tools] valgrind Reporter: mcermak
Component: generalAssignee: mcermak
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=504909
https://bugs.kde.org/show_bug.cgi?id=504904
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: proposed patch

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