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 |
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
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.
With valgrind that can be done in few minutes.
Regards,
Novo
[Updated on: Wed, 04 April 2007 03:11] Report message to a moderator
|
|
|
|
|
crush of the program
By: forlano on Tue, 27 February 2007 21:50
|
|
|
Re: crush of the program
By: mr_ped on Tue, 27 February 2007 23:09
|
|
|
Re: crush of the program
By: exolon on Wed, 28 February 2007 01:48
|
|
|
Re: crush of the program
By: forlano on Wed, 28 February 2007 02:53
|
|
|
Re: crush of the program
By: mirek on Wed, 28 February 2007 09:27
|
|
|
Re: crush of the program
By: forlano on Wed, 28 February 2007 15:55
|
|
|
Re: crush of the program
By: mirek on Wed, 28 February 2007 09:25
|
|
|
Re: crush of the program
By: forlano on Thu, 22 March 2007 14:03
|
|
|
Re: crush of the program
By: mirek on Thu, 22 March 2007 17:22
|
|
|
Re: crush of the program
By: forlano on Mon, 28 May 2007 18:26
|
|
|
Re: crush of the program
By: forlano on Tue, 29 May 2007 23:38
|
|
|
Re: crush of the program
By: mr_ped on Wed, 28 February 2007 11:55
|
|
|
Re: crush of the program
By: mirek on Wed, 28 February 2007 12:06
|
|
|
Re: crush of the program
By: exolon on Wed, 28 March 2007 21:58
|
|
|
Re: crush of the program
By: Novo on Wed, 28 March 2007 22:08
|
|
|
Re: crush of the program
By: zsolt on Wed, 28 March 2007 23:45
|
|
|
Re: crush of the program
By: Novo on Thu, 29 March 2007 16:51
|
|
|
Re: crush of the program
By: mirek on Thu, 29 March 2007 17:49
|
|
|
Re: crush of the program
By: Novo on Thu, 29 March 2007 20:24
|
|
|
Re: crush of the program
By: forlano on Wed, 28 March 2007 23:15
|
|
|
Re: crush of the program
By: exolon on Wed, 28 March 2007 22:20
|
Goto Forum:
Current Time: Thu May 09 19:49:47 CEST 2024
Total time taken to generate the page: 0.02206 seconds
|