valgrind
Valgrind complains while using realloc functions?
I have implemented my own version of strcat function. It works fine but valgrind complains. main() { char *src=NULL;[详细]
2023-02-16 07:50 分类:问答Segmentation faults occur when I run a parallel program with Open MPI
on my previous post I needed to distribute data of pgm files among 10 computers. With help from Jonathan Dursi and Shawn Chin, I have integrate the code.[详细]
2023-02-15 23:15 分类:问答valgrind mac os mem leak
Today I installed valgrind on my Mac os x 10.6 and tried to test it out. And it turned out to be weird memory leaks in the system. What I did was just create simple c file that get some heap memory an[详细]
2023-02-15 04:56 分类:问答Measuring peak memory usage of Perl process with Valgrind
I\'m trying to determine the peak (heap) memory usage of a Perl script using Valgrind: valgrind --tool=massif --depth=1 /usr/bin/perl script.pl arguments[详细]
2023-02-14 22:02 分类:问答How do you call JNI_CreateJavaVM without Valgrind errors?
When compiling and running the following code under valgrind, I consistently get \"Invalid write of size 4\" errors. Is there a clean way of calling JNI_CreateJavaVM() so that valgrind doesn\'t throw[详细]
2023-02-14 07:33 分类:问答valgrind memcheck reports false positive?
Here\'s my code. #include <stdio.h> #include <stdlib.h> #include <string.h> char buf1[100];[详细]
2023-02-12 18:32 分类:问答Intercepting global functions with Valgrind on Linux using g++
I\'m trying to intercept a function with Valgrind, according to their example. I am able to do the interception of glo开发者_运维技巧bal function when building with gcc, however when I compile the sa[详细]
2023-02-12 17:54 分类:问答Valgrind giving errors with getline()
I have a function which calls getline(), which reads lines from a standard text file. These lines开发者_运维技巧 end in \\r\\n, as this is what the spec calls for as it is the \"internet standard\" fo[详细]
2023-02-12 14:23 分类:问答How to get valgrind to cooperate with libsigsegv?
As noted in this question about using libsigsegv to detect multiple stack overflows, I\'m working with a colleague to try to detect and recover from stack overflow in an interpreter.In brief,[详细]
2023-02-11 22:55 分类:问答Callgrind main() inclusive cost much smaller than 100%
I profiled a few very simple C++ programs running on Linux. The inclusive cost of main() for all of them is far from 100%, something like 3.83%. Am I using callgrind correctly? I have the output of ca[详细]
2023-02-11 08:38 分类:问答