Hi All,
Given the following line numbered 780 in my_daemon.cc:
valgrind generates the following invalid read error:Code:exit(EXIT_FAILURE);
To me, the error message generated by valgrind is not self-explanatory.Code:==13527== Invalid read of size 4 ==13527== at 0x41908E: boost::char_separator<char, std::char_traits<char> >::~char_separator() (atomicity.h:46) ==13527== by 0x5C2AC11: exit (exit.c:78) ==13527== by 0x408ACF: main (my_daemon.cc:780) ==13527== Address 0x65b36b0 is 16 bytes inside a block of size 26 free'd ==13527== at 0x4C24A7A: operator delete(void*) (vg_replace_malloc.c:346) ==13527== by 0x4190A0: boost::char_separator<char, std::char_traits<char> >::~char_separator() (basic_string.h:231) ==13527== by 0x5C2AC11: exit (exit.c:78) ==13527== by 0x408ACF: main (my_daemon.cc:780)
How should I interpret this message ?
Thanks.




Reply With Quote