https://bugs.kde.org/show_bug.cgi?id=515183

            Bug ID: 515183
           Summary: Error occurred while executing the command `valgrind
                    --num-callers=1 ./hello_world`
    Classification: Developer tools
           Product: valgrind
      Version First 3.25.1
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
Error occurred while executing the command `valgrind --num-callers=1
./hello_world`

STEPS TO REPRODUCE
1. dnf install -y  valgrind glibc-devel glibc-debuginfo gcc-c++
2. cat hello_world.cpp
" 
#include <iostream>

int main() {
    std::cout << "hello world" << std::endl;
    return 0;
}
"
3. g++ -o hello_world hello_world.cpp
4. valgrind --num-callers=1  ./hello_world

OBSERVED RESULT
[root@localhost valgrind]# valgrind --num-callers=1 ./hello_world
==38337== Memcheck, a memory error detector
==38337== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==38337== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info
==38337== Command: ./hello_world
==38337==
==38337== FATAL: in suppressions file "/usr/libexec/valgrind/default.supp" near
line 1589:
==38337==    suppression must contain at least one location line which is not
"..."
==38337== exiting now.

EXPECTED RESULT
[root@localhost valgrind]# valgrind --num-callers=1 ./hello_world
==38340== Memcheck, a memory error detector
==38340== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==38340== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info
==38340== Command: ./hello_world
==38340==
hello world
==38340==
==38340== HEAP SUMMARY:
==38340==     in use at exit: 0 bytes in 0 blocks
==38340==   total heap usage: 2 allocs, 2 frees, 73,728 bytes allocated
==38340==
==38340== All heap blocks were freed -- no leaks are possible
==38340==
==38340== For lists of detected and suppressed errors, rerun with: -s
==38340== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
[root@localhost valgrind]# echo $?
0

ADDITIONAL INFORMATION
https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=758ab5e6d22fb80b17e6888d03e065955f579735

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to