User forums > Using Code::Blocks

Valgrind

<< < (2/3) > >>

oBFusCATed:
Satyajit: does valgrind work from command line?

Jenna:
@Satyajit:
Does the program run without valgrind ?

Satyajit:
oBFusCATed: Using XTerm first I go to my code file directory then I run valgrind by the command

                    valgrind ./code_name.cbp

and output is

                    valgrind: ./code_name.cbp: Permission denied

Satyajit:
jens: Program is running but at last stage of data printing it shows error sometimes like this,

 free():invalid next size(normal): 0*000000....
 Aborted (core dumped)

or sometimes like this,

 double free or corruption(!prev):0*00000....
 Aborted (core dumped)


etc.


And that is why want to use valgrind to debug those problems. :)

killerbot:

--- Quote from: Satyajit on December 06, 2016, 07:13:33 am ---oBFusCATed: Using XTerm first I go to my code file directory then I run valgrind by the command

                    valgrind ./code_name.cbp

and output is

                    valgrind: ./code_name.cbp: Permission denied

--- End quote ---

you should run valgrind on your executable(the program you build), not on a codeblocks project file.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version