Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » crush of the program
Re: crush of the program [message #8775 is a reply to message #8768] Thu, 29 March 2007 20:24 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
luzr wrote on Thu, 29 March 2007 11:49

Novo wrote on Thu, 29 March 2007 10:51


By default valgrind runs memcheck (valgrind --tool=memcheck).
cachegrind is a part of valgrind starting from version 3.2 I believe.



Not sure what "memcheck" does, just wanted to say U++ has quite strong heap checking in debug mode Smile

All blocks have safety sentinels (overwrite is reported), free blocks memory is filled with specific pattern and tested for writes when allocating again and leaks are not tolerated (error at the program exit).

Mirek





Quote:


Memcheck can detect if your program:

* Accesses memory it shouldn't (areas not yet allocated, areas that have been freed, areas past the end of heap blocks, inaccessible areas of the stack).
* Uses uninitialised values in dangerous ways.
* Leaks memory.
* Does bad frees of heap blocks (double frees, mismatched frees).
* Passes overlapping source and destination memory blocks to memcpy() and related functions.



That can be done in Debug and Release mode.
I recall somebody's messages about spending dozen of hours looking for a bug. Wink
With valgrind that can be done in few minutes.


Regards,
Novo

[Updated on: Wed, 04 April 2007 03:11]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: First impressions
Next Topic: Is it allowed ...
Goto Forum:
  


Current Time: Thu May 09 19:49:47 CEST 2024

Total time taken to generate the page: 0.02206 seconds