valgrind
Trying to debug a c program segmentation fault using output from valgrind
A CLI program of mine compiles and runs fine on windows. Compiles fine on linux, but causes a segmentation fault when running.[详细]
2023-03-29 13:27 分类:问答Why would this give a Use of uninitialised value of size 8
In my code I have a class named membrane with a function named exciteMod(), a function named decide() and a variable named delta_U. The first line of exciteMod() is this->delta_U = 0. In decide() I[详细]
2023-03-29 00:15 分类:问答What is the difference between valgrind and regular c++ run
I\'m trying to identify a bug in I have in my code where I get seg. fault while trying to assign value to a pointer from a vector (it is descri开发者_开发百科be better in the link). When I run the cod[详细]
2023-03-28 23:41 分类:问答Eclipse, CDT, (N)Curses and debugin/profiling
Hi! Is it possible to debug/profile a ncurses based application written in Eclipse\\CDT? By using eclipse IDE of course.[详细]
2023-03-28 22:10 分类:问答OpenMPI debugging with Valgrind and suppressions in OS X
I am writing a parallel code in C++ on my OS X (Snow Leopard) laptop, and I am trying to debug it with memchecker. I have successfully built OpenMPI with valgrind support with: configure --prefix=/opt[详细]
2023-03-28 16:47 分类:问答Conditional jump or move depends on uninitialised value(s)
I\'ve been struggling with this problem for a while now, searching every possible solution. I\'m new to C so I\'ts hard. I know I have some variable uninitialized, but I can\'t find them. I am trying[详细]
2023-03-28 11:25 分类:问答Valgrind detecting invalid reads in strlen
I am using Valgrind to detect memory leaks/errors in 开发者_如何学Gomy library, and it\'s the first time I\'ve ever used it. It seems to be suggesting that there\'s some invalid reads in std::string.[详细]
2023-03-28 09:15 分类:问答Limit --memcheck To Your Own Code
Lets say I am using a library that uses glibc. When I exit the program while running it through Valgrind all sorts of memory leaks are detected by Valgrind. I am 100% sure that none of the leaks are e[详细]
2023-03-28 03:46 分类:问答Invalid write size of 4 with matrix class (using valgrind)
I have a simple matrix class I\'ve made for use with opengl (es 2.0, afaik there isn\'t any built in version for that particular version of opengl).[详细]
2023-03-28 02:25 分类:问答Mistake, or valgrind/gcc bug?
When running valgrind on the following program the assertion fails: #include <unistd.h> #include <sys/mman.h>[详细]
2023-03-27 19:45 分类:问答