DIR Return Create A Forum - Home
---------------------------------------------------------
Class H22
HTML https://classh22.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: The Coffee shop
*****************************************************
#Post#: 50--------------------------------------------------
valgrind - "debugger" for memory problem
DIR By: SpiderGoat
Date: March 30, 2014, 1:31 am
---------------------------------------------------------
so, you tried to allocate things, and it crushed.
or reallocation/free/recursion made a stack/heap overflow.
fatal.. aborted... those harsh and ugly words.
there is an application for shell, called "valgrind".
install it!
then, in shell print:
valgrind -memcheck ./a.out
it will show you which function made the crush, and sometimes
will show you why.
in many cases, if you post a help-question in forums, people
will tell you to run valgrind.
it's THAT common in use.
you're welcome.. ;)
*****************************************************
Page 1 of 1