All pastes #2045975 Raw Edit

Anonymous

public text v1 · immutable
#2045975 ·published 2011-04-13 13:02 UTC
rendered paste body
bash-3.2$ make valgrind
valgrind ./compilator testfile
==5419== Memcheck, a memory error detector
==5419== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==5419== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==5419== Command: ./compilator testfile
==5419==
Compilating testfile
Source get
checking int...
command int
chleft: 67262016
chright: 0
chleft!
checking ,...
    command ,
chleft: 67261216
chright: 67261952
chleft!
checking var...
        var Var
chleft: 0
chright: 0
chright!
checking ,...
        command ,
chleft: 67261456
chright: 67261696
chleft!
checking var...
            var Result
chleft: 0
chright: 0
chright!
checking var...
            var Another_var
chleft: 0
chright: 0
==5419==
==5419== HEAP SUMMARY:
==5419==     in use at exit: 17,124 bytes in 19 blocks
==5419==   total heap usage: 19 allocs, 0 frees, 17,124 bytes allocated
==5419==
==5419== LEAK SUMMARY:
==5419==    definitely lost: 0 bytes in 0 blocks
==5419==    indirectly lost: 0 bytes in 0 blocks
==5419==      possibly lost: 0 bytes in 0 blocks
==5419==    still reachable: 17,124 bytes in 19 blocks
==5419==         suppressed: 0 bytes in 0 blocks
==5419== Rerun with --leak-check=full to see details of leaked memory
==5419==
==5419== For counts of detected and suppressed errors, rerun with: -v
==5419== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 8)
bash-3.2$ make run
./compilator testfile
Compilating testfile
make: *** [run] Segmentation fault
bash-3.2$