473,396 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Anybody using valgrind memory leak detection tool?

365 100+
downloaded valgrind package and tried to compile - getting this link error- any idea?

gcc -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement -fno-stack-protector -o memcheck-x86-linux -static -Wl,-defsym,valt_load_address=0x38000000 -nodefaultlibs -nostartfiles -u _start -m32 -Wl,-T,../valt_load_address_x86_linux.lds memcheck_x86_linux-mc_leakcheck.o memcheck_x86_linux-mc_malloc_wrappers.o memcheck_x86_linux-mc_main.o memcheck_x86_linux-mc_translate.o memcheck_x86_linux-mc_machine.o memcheck_x86_linux-mc_errors.o ../coregrind/libcoregrind-x86-linux.a ../VEX/libvex-x86-linux.a -lgcc
../coregrind/libcoregrind-x86-linux.a(libcoregrind_x86_linux_a-aspacemgr-linux.o): In function `vgPlain_am_do_sync_check':
m_aspacemgr/aspacemgr-linux.c:1059: undefined reference to `parse_procselfmaps'
../coregrind/libcoregrind-x86-linux.a(libcoregrind_x86_linux_a-aspacemgr-linux.o): In function `vgPlain_am_startup':
m_aspacemgr/aspacemgr-linux.c:1683: undefined reference to `parse_procselfmaps'
collect2: ld returned 1 exit status
make[6]: *** [memcheck-x86-linux] Error 1
Jan 14 '10 #1
4 2685
weaknessforcats
9,208 Expert Mod 8TB
So where is parse_procselfmaps defined?

It has to be in the file being compiled or there has to an extern for it. In the case of an extern, it has to be in a link library.
Jan 15 '10 #2
tvnaidu
365 100+
Thanks, I fixed this. Now I tried to run on target, it is not running, I posted this in other thread
Jan 15 '10 #3
cerr
1
Hi tvnaidu,

How did you fix this? I'm having the same problem but i haven't been able to fix this yet...
Thanks!
roN
Jan 18 '10 #4
tvnaidu
365 100+
first could you compile on host and verify: goto installation dir and issue this:

./configure; make ; make install

the above command installs everything in /usr/local/bin and /use/local/lib/valgrind.


if it works ok on host, then compile for your target, you have to pass which target, for my case is i386-linux-host, --prefix needs where to install, --prefix=/usr.

for the above error, I did clean and then compile, it got compiled.
Jan 19 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: blugus | last post by:
Hi Guys, I've been try to use Dinkum STL library. It workes well first, but report memory leak in MFC Debug Mode. I use Dinkum Unabridged Library for VC++ V4.02, MSVC6, WIN2000 SERVER. I...
8
by: __jakal__ | last post by:
Hello, Is there any good memory leak detection software for C++ available as a freeware... I had used purify but had to discontinue due to huge license fees... Also tried Sun workshop memory...
7
by: mosaic | last post by:
Hi, all I really interested in how to check the memory leak of a program. Your smart guys, do you have excellent ideas that could share with me? Thank you. The following is my idea: In C...
0
by: Frank Lopez | last post by:
Does anyone know if Microsoft generated a whitepaper on this topic? Does anyone know what the solution is? (meaning, eliminate the leak problem -- I am seeing three memory leaks from...
3
by: Peter Steele | last post by:
We're doing some development in VS .NET C++ and want to purchase a tool for memory leak detection and related activities. Any recommendations?
8
by: vidya.bhagwath | last post by:
Hello Experts, I am using std::string object as a member variable in one of the my class. The same class member function operates on the std::string object and it appends some string to that...
0
by: Stephen Kellett | last post by:
Announcing Software Tools for Python We are pleased to inform you that we have completed the port and beta test of our Memory Analysis software tool to support Python. The software tools run on...
4
by: Simple Simon | last post by:
It's entirely possible that I'm completely in the wrong line of work, but I don't see what Valgrind is complaining about in this code. Invalid read/writes? If I free the within main(), rather...
1
by: GLiang.liu.cn | last post by:
Today I use the valgrind to find the memory leak in my application. But it just gives me such information: ==4323== ==4323== 856,984 bytes in 2 blocks are indirectly lost in loss record 7 of 7...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.