4,233 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-4
votes
0
answers
140
views
Macos valgrind installation failure
So I am trying to install https://github.com/LouisBrunner/valgrind-macos.git valgrind version for MacOS, I've tried to brew tap the repo and then brew install but it failes when trying to run with ...
2
votes
1
answer
82
views
Find out why program is slow processing files from network share using Valgrind
I have an open source C/C++ program on Linux amd64 that processes a PDF input file and that I did not write by myself. So I'm not familiar with its code.
Processing a PDF file read from local disk ...
0
votes
0
answers
45
views
Confused by Valgrind Massif output - appears memory allocated under "free"
I'm attempting to use Massif to profile heap usage of an application. I'm running with the --pages-as-heap=true option and am confused by some output I'm seeing. Specifically I'm seeing allocation by ...
8
votes
1
answer
281
views
Valgrind (Helgrind) is showing data race with atomic
In the following program, I want to print the output as
0102030405... so on
The 0 should be printed from one thread, odd values should be printed from second thread and even values from third thread....
0
votes
1
answer
64
views
How to get valgrind to print final tool stats for rustc
Perhaps someone knows why Valgrind tools fail to print final stats when applied to rustc ?
E.g. lackey works fine with C programs:
$ valgrind -q --tool=lackey --basic-counts=yes whoami
yugr
==3668989==...
yugr's user avatar
- 22.7k
2
votes
1
answer
119
views
Still reachable valgrind report when execve fails
I am building a shell as part of a school assignment, a limited version of bash. The whole program seems to function alright without any kind on leaks, but when I send invalid/nonexistent commands ...
1
vote
1
answer
98
views
CS50 Speller Valgrind error: Jump or move depends on uninitialized value(s)
I am currently completing the introductory CS course CS50 only and got stuck on the problem "speller" from problem set 5. In this problem, one is given a set of prewritten .c-files, ...
1
vote
1
answer
38
views
Is there's an easy way to give valgrind client the illusion of (plausible) real time
If I run a program under valgrind that also keeps track of time, is there a way to make it get plausible results given the amount of code it has executed.
What I'm planning to do is to run GStreamer ...
3
votes
2
answers
130
views
Custom free function doesn't release memory completely, Valgrind reports 'still reachable'
I've been following an article that walks through implementing primitive versions of malloc and free. After finishing the allocator, I wanted to test it using Valgrind, so I added the following lines ...
1
vote
2
answers
45
views
Is it recommended to run valgrind on a binary generated using multiple processors
I have a binary which was generated using 10 threads i.e. I used GNU make command
make -j10
to generate my binary. If I run valgrind on the generated binary, will the valgrind result be reliable. ...
1
vote
2
answers
72
views
How to run valgrind for apache cgi module?
My CGI application written in C has memory corruption. I would like to attach valgrind while running the application. How do I do that? As apache is invoking the cgi module, I dont have an option to ...
7
votes
2
answers
253
views
C++ embedded TCL interpreter possible memory leaks
I have code which embeds a tcl interpreter in my c++ program. When running with valgrind it shows a bunch of possible memory leaks from the TCL interpreter. I am using Tcl_DeleteInterp(interp); to ...
0
votes
1
answer
38
views
Solus Valgrind & glibc's debuginfo package
Can't find package in Solus repository requested by valgrind (glibc's debuginfo package: libc6-dbg/glibc-debuginfo). I've tried to find something in google, but nothing.
Anybody knows?
4
votes
1
answer
106
views
valgrind reports error in error summary, but no error shown
I have some CI tests that run some tests under valgrind, and fail if there are any errors (as reported in valgrind's ERROR SUMMARY).
On certain Linux distros, I get that there was 1 error from 1 ...
1
vote
2
answers
66
views
frame level valgrind library suppressions confusion
Learning stackoverflow and how to suppress library leaks in glib. If I run my code using the included glib.supp file
valgrind --suppressions=/usr/share/glib-2.0/valgrind/glib.supp --leak-check=full --...