Changes between Version 18 and Version 19 of DevelopingWithGcc


Ignore:
Timestamp:
2012-10-03T09:25:57Z (5 years ago)
Author:
peter
Comment:

remove duplicate information and replace with link

Legend:

Unmodified
Added
Removed
Modified
  • DevelopingWithGcc

    v18 v19  
    44
    55== valgrind ==
    6 
    7 compile including option -DNOINIT
    8 
    9 run with the following options
    10 
    11 {{{
    12 valgrind --leak-check=full --track-fds=yes ./cloudy.exe < test.in > test.out 2> test.valgrind
    13 }}}
    14 
    15 The relevant valgrind error messages will be in the test.valgrind output file.
    16 Grep as follows
    17 
    18 {{{
    19 egrep 'ERROR SUMMARY:|lost:|DESCRIPTORS:' *.valgrind | egrep -v '0 errors|0 bytes|3 open at exit'
    20 }}}
    216
    227This checks for errors, memory leaks and file handles that are not closed at exit (the 3 standard handles stdin, stdout, and stderr are supposed to remain open at exit, but no others).
     
    2712   * memory leaks
    2813   * file handles that are not closed
     14
     15See the separate DevelopingWithValgrind page for further details.
    2916
    3017== gprof ==