Bug 491253

Summary: valgrind --tool=callgrind " Unknown option: --leak-check=full"
Product: [Developer tools] valgrind Reporter: Rick Stanley <rstanley>
Component: callgrindAssignee: Josef Weidendorfer <josef.weidendorfer>
Status: RESOLVED NOT A BUG    
Severity: normal CC: mark, rstanley
Priority: NOR    
Version First Reported In: 3.20.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rick Stanley 2024-08-04 12:00:03 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Running valgrind with:
"valgrind --tool=callgrind ./prog"

Reports:
"Unknown option: --leak-check=full"
" Use --help for more information or consult the user manual."

No output from running the program, using the command above.  Valgrind by itself runs correctly.

STEPS TO REPRODUCE
1. Run the command as above
2. 
3. 

OBSERVED RESULT
As shown above

EXPECTED RESULT
Proper output from the callgrind tool.  I have never run this command before.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:  Not reported by 'kinfo'
KDE Plasma Version: 5.27.11 
KDE Frameworks Version:  5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
None
Comment 1 Mark Wielaard 2024-08-05 20:45:21 UTC
This is odd. It is almost as if valgrind is aliased to valgrind --leak-check=full.
Could you do: type valgrind
And: valgrind -v --tool=callgrind /bin/true
Comment 2 Rick Stanley 2024-08-06 20:44:37 UTC
Please close this report.  I had an alias set that I was not aware of.

My apologies.