Hi Geny, I suggest you to try valgrind 3.4 (or 3.4.1) with a flag --track-origins=yes. This will give more informative reports.
--kcc On Mon, Mar 2, 2009 at 8:46 AM, hce <[email protected]> wrote: > Hi, > > I am running valgrind 3.3 on FC9 64-bit linux. I use the valgrind to > check my C++ program, the valgrind generated a very long error > reports, but I was not clear what were wrong for the following errors: > > ==9629== Invalid read of size 4 > ==9629== at 0x43DE2D: > Pattern::sendSequence(std::_Rb_tree_iterator<std::pair<unsigned const, > std::string> >) (DataPattern.cpp:168) > ==9629== by 0x43DFC5: Pattern::bottomSearchAlgorithm() > (DataPattern.cpp:136) > ==9629== by 0x43E011: Pattern::handle(std::string const&, unsigned) > (DataPattern.cpp:125) > : > : > > > The first statement in line 168 is: > > offset = it->first + count; where the offset, it->fist and count are > all uint32_t type, so what is the problem for it? > > The second statement in line 136 is: > > return sendSequence(it); where the bool > Pattern::sendSequence(std::map<uint32_t, std::string>::iterator it) > > The third statement in line 125 is: > > return bottomSearchAlgorithm(); where the bool > Pattern::bottomSearchAlgorithm(void) > > Please enlighten me are there real errors or what I was missing? > > Thank you. > > Kind Regards, > > Geny > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Valgrind-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
