473,403 Members | 2,071 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,403 software developers and data experts.

Memory Leaks Help (valgrind report)

Soujiro
35
I have a binary that tells something about my binary, but it does't tell where in the source code.. could you tell what are its possible causes.

Expand|Select|Wrap|Line Numbers
  1. ==6224== 84,584 bytes in 28 blocks are still reachable in loss record 4 of 4
  2. ==6224==    at 0x401AA8B: operator new(unsigned) (vg_replace_malloc.c:163)
  3. ==6224==    by 0x40B40D0: std::__default_alloc_template<true, 0>::_S_chunk_alloc(unsigned, int&) (in /usr/lib/libstdc++.so.5.0.3)
  4. ==6224==    by 0x40B3FDC: std::__default_alloc_template<true, 0>::_S_refill(unsigned) (in /usr/lib/libstdc++.so.5.0.3)
  5. ==6224==    by 0x40B3B4B: std::__default_alloc_template<true, 0>::allocate(unsigned) (in /usr/lib/libstdc++.so.5.0.3)
  6. ==6224==    by 0x80509B7: std::_Deque_base<char*, std::allocator<char*> >::_M_initialize_map(unsigned) (stl_alloc.h:238)
  7. ==6224==    by 0x804F2BA: __static_initialization_and_destruction_0(int, int) (stl_deque.h:430)
  8. ==6224==    by 0x805085D: _GLOBAL__I_pv_configSettings_sp (locale_facets.h:107)
  9. ==6224==    by 0x8053674: (within /home/main/Bin/bin)
  10. ==6224==    by 0x8049530: (within /home/main/Bin/bin)
  11. ==6224==    by 0x80535E9: __libc_csu_init (in /home/main/Bin/bin)
  12. ==6224==    by 0x412F74A: (below main) (in /lib/tls/libc-2.3.2.so)
  13.  
Any suggestions the leak is so big though it is reachable.
Jan 19 '07 #1
1 1568
Soujiro
35
What i mean is my binary when tested with valgrind gives these notes..
Jan 19 '07 #2

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

Similar topics

10
by: Debian User | last post by:
Hi, I'm trying to discover a memory leak on a program of mine. I've taken several approaches, but the leak still resists to appear. First of all, I've tried to use the garbage collector to...
2
by: rsina | last post by:
Hi all, Could someone please compare and contrast the merits of using the commercial software insure++ to check for memory leaks in a C++ code with using the free software valgrind? I...
16
by: Pedro Graca | last post by:
I have a file with different ways to write numbers ---- 8< (cut) -------- 0: zero, zilch,, nada, ,,,, empty , void, oh 1: one 7: seven 2: two, too ---- >8 -------------- ...
4
by: mast2as | last post by:
Hi again I was still debugging some code and check for memory leaks with valgrind and found out that valgrind finds a leak when i use deque<Somethingaqueue ?! I am compiling under Linux for...
1
by: Lighter | last post by:
Is there a way to write a memory leak detector supporting new(nothrow)? For example, #include <My_Debug_New.h> using namespace std; int main() {
4
by: p1r0 | last post by:
Hi I was wondering if any of you could recommend me a good tool for testing for memry leaks under Windows and/or Linux Thanks in advance p1r0
4
by: =?gb2312?B?uqO35w==?= | last post by:
Hi i am using libMagick++.a of Magick-6.2.8 in linux.but now i encounter some leaks when reading blob into image , writting image into blob, or throwing expection .that are my code patch and...
8
by: jacek.dziedzic | last post by:
Hi! I need to be able to track memory usage in a medium-sized application I'm developing. The only significant (memory-wise) non- local objects are of two types -- std::vector<and of a custom...
33
by: fmassei | last post by:
Hello! I made a short piece of code that I find very useful for debugging, and I wanted to ask you if it is correct, somehow acceptable or if I simply reinvented the wheel. To deal with some bad...
25
by: Andreas Eibach | last post by:
Hi again, one of the other big woes I'm having... typedef struct perBlockStru /* (structure) Long words per block */ { unsigned long *lword; } lwperBlockStru_t;
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.