Hi,
I run my program using valgrind to detect the memory leaks
valgrind -v --tool=memcheck --leak-check=full ./binary -f conf.file
But it doesn't show leaks, even I create one leak of 1 bytes in the code.
Any wild guess ??
Thanks,
Sanjay
On 6/12/2013 12:01 AM, Sanjay Kumar (sanjaku5) wrote:
Hi,
I run my program using valgrind to detect the memory leaks
valgrind -v --tool=memcheck --leak-check=full ./binary -f conf.file
But it doesn't show leaks, even I create one leak of 1 bytes in
the code.
Any wild guess ??
Please reply to the group, not just me, and please don't top-post. My
reply is at the bottom.
On 6/12/2013 1:35 AM, Sanjay Kumar (sanjaku5) wrote:
Hi David,
Below is code which I added to create the leak in my application :
/***/
char *mleak = NULL;
static int mcnt =
On Mon, 2013-06-10 at 01:23 -0700, mnaret wrote:
Hello,
Recently I'm getting lot's of invalid read/invalid write valgrind errors
which point out at memory allocated for the stack. However the code doesn't
crush and finish running successfully.
I'm trying to understand where the error comes
Sanjay,
--11597--object doesn't have a dynamic symbol table
With the above
and the below stacktrace, it looks like this application is statically linked
(or at least, the malloc lib is statically linked).
valgrind can find leaks if malloc lib is statically linked
(you need to use
Hi Philippe,
Below is part of Make file where I have done the Linking:
sslLIB=$(OUT_DIR)/libsyfer_ssl.a
# pull in dependency info for *existing* .o files
*
-include $(commonOBJS:.o=.d)
-include $(sslOBJS:.o=.d)
-include $(cliCOMMONOBJS:.o=.d)
-include