valgrind

Building massif-visualizer: include could not find load file CMakeFindDependencyMacro

橙三吉。 提交于 2019-11-29 12:48:02
I am attempting to build massif-visualizer on CentOS 7. Unfortunately I'm having to try to guess at dependencies as they are not all listed in the INSTALL file. So far: yum install git yum install kdelibs-devel extra-cmake-modules \ qt5-qtsvg-devel qt5-qtxmlpatterns-devel \ kf5-kparts-devel kf5-karchive-devel git clone https://github.com/KDE/massif-visualizer cd massif-visualizer mkdir build (cd build && cmake .. && make && make install) Those Qt5 and KF5 packages were added to the yum command largely by trial and error, and some pattern-matching from CMake error messages … but I cannot seem

Valgrind does not work with WSL?

人走茶凉 提交于 2019-11-29 12:45:00
When I installed WSL for my computer I was very excited to have a more natively supported Linux system rather than using VirtualBox . However I get this error when I try to run it. Is there a reason why? I am happy to give more information as required. --4364:0:aspacem -1: ANON 0038000000-00383d5fff 4022272 r-x-- SmFixed d=0x000 i=25365 o=0 (0) m=0 /usr/lib/valgrind/memcheck-amd64-linux --4364:0:aspacem Valgrind: FATAL: aspacem assertion failed: --4364:0:aspacem segment_is_sane --4364:0:aspacem at m_aspacemgr/aspacemgr-linux.c:1502 (add_segment) --4364:0:aspacem Exiting now. It's definitely

Segmentation fault in malloc_consolidate (malloc.c) that valgrind doesn't detect [duplicate]

戏子无情 提交于 2019-11-29 12:20:08
问题 This question already has answers here : Segfaults in malloc() and malloc_consolidate() (2 answers) Closed 3 years ago . My program goes in segmentation faults, and I cannot find the cause. The worst part is, the function in question does not always lead to segfault. GDB confirms the bug and yields this backtrace: Program received signal SIGSEGV, Segmentation fault. 0xb7da6d6e in malloc_consolidate (av=<value optimized out>) at malloc.c:5169 5169 malloc.c: No such file or directory. in malloc

“points to uninitialised byte(s)” Valgrind errors

北城以北 提交于 2019-11-29 09:54:28
问题 I've been using Valgrind to look for memory leaks in my code, and while no memory leaks are being found, some errors are reported all of them originating at a single function/class method: ==17043== ERROR SUMMARY: 10100 errors from 3 contexts (suppressed: 0 from 0) ==17043== ==17043== 100 errors in context 1 of 3: ==17043== Syscall param socketcall.sendto(msg) points to uninitialised byte(s) ==17043== at 0x5441DA2: send (send.c:28) ==17043== by 0x404C2D: unix_socket::sendMsg(char, double) (in

Having hard time tracking memory corruption - when running with Valgrind runs correctly with no errors

我的梦境 提交于 2019-11-29 07:38:00
We have a complex program that is working well on heavy duty input (any input actually) with no multithreading implemented. We've implemented multithreading with a threadpool, and given these input parameters I get these results: ( Note : Where I say no errors , it means I've tested with valgrind -v and when I say no memory leaks , it means I've tested it with valgrind --leak-check=full -v ). small_file: Runs successfully with more than 1 workers (threads), no valgrind errors, no memory leaks medium_file: With 1 worker it runs successfully, no errors/memory leaks. With > 1 workers, I get: a.

Boost thread Leakage C++

ぃ、小莉子 提交于 2019-11-29 06:18:48
问题 Could someone let me know whether boost thread library leaks. It seems to me that it does: Google says that I should compile with both boost thread and pthread which I am doing and that in version 1.40 this problem has been fixed but I still get leakage. Note that this will compile fine but leaks are detected. #include <boost/thread.hpp> #include <boost/date_time.hpp> void t1(){} int main(void){ boost::thread th1(t1); th1.join(); return 1; } With Valgrind I get the following output HEAP

Can I make valgrind ignore glibc libraries?

ぐ巨炮叔叔 提交于 2019-11-29 06:13:29
Is it possible to tell valgrind to ignore some set of libraries? Specifically glibc libraries.. Actual Problem: I have some code that runs fine in normal execution. No leaks etc. When I try to run it through valgrind, I get core dumps and program restarts/stops. Core usually points to glibc functions (usually fseek, mutex etc). I understand that there might be some issue with incompatible glibc / valgrind version. I tried various valgrind releases and glibc versions but no luck. Any suggestions? This probably doesn't answer your question, but will provide you the specifics of how to suppress

When a program terminates what happens to the memory allocated using malloc that is not free'ed?

倖福魔咒の 提交于 2019-11-29 05:42:41
Say I have the following program #include <stdio.h> #include <stdlib.h> int main(void) { int * i; if ((i = malloc(sizeof(int) * 100)) == NULL) { printf("EROOR: unable to allocate memory \n"); return -1; } /* memory is allocated successfully */ /* memory is not free'ed but program terminates */ // free(i); return 0; } The above program calls malloc to allocate some memory and does not call free to de-allocate it. And the program terminates without de-allocating the memory. Valgrind clearly detects a memory leak. <snap> ==14209== HEAP SUMMARY: ==14209== in use at exit: 400 bytes in 1 blocks =

valgrind Conditional jump or move depends on uninitialised value(s) , does this indicate memory leak?

点点圈 提交于 2019-11-29 04:51:20
问题 I am facing a memory leak problem in the code, while its running, the heap goes on increasing to maximum and i need to restart the service, I ran top command and see that the heap is increasing whenever im invoking a scenario in the service. I ran the service with valgrind , valgrind --log-file=log-feb19.txt --leak-check=full --show-reachable=yes --track-origins=yes myservice I donot see any definitely lost or possibly lost blocks while iam running the scenarios but i see a lot of Conditional

valgrind on the ARM9?

☆樱花仙子☆ 提交于 2019-11-29 04:14:41
I see that valgrind has an ARM7 target, but I find conflicting information on whether valgrind has support for the ARM9. The ARM9 target I am working with is running linux. Has anyone specifically succeeded in using valgrind on an ARM9 target? If so, any pointers you can offer would be helpful, including "how did you build it?". Thanks -z Valgrind runs on ARM-v7 (architecture name), not ARM7 (chip family name). ARM7 is a name of a fairly old chip family (which uses architecture ARM-v4), as is ARM9 (ARM-v5). Are you sure that your chip is an ARM9 and not a Cortex-A9 (which uses the ARM-v7