Hello,

I was wondering if it is possible to get valgrind to make an "assert"
so my debugger can catch it when a memory error occurs?  I would like
to determine what is causing this memory error and it would be nice if
I could do this.

Also, I am having a hard time deciphering this message, can anyone
please give me insight on what this error means? I've tried Google and
I had no luck :(

thanks
J

Error:


   1.      ==20770== Invalid read of size 8
   2.      ==20770==    at 0x662CBB: PacketPool::removePacket(Packet*)
   3.      ...
   4.      ...
   5.      ...
   6.      ==20770==    by 0x5AFA306: start_thread (in /lib64/libpthread-2.5.so)
   7.      ==20770==    by 0x67D7DEC: clone (in /lib64/libc-2.5.so)
   8.      ==20770==  Address 0xDC96D570 is 16 bytes inside a block of
size 24 free'd
   9.      ==20770==    at 0x4C1F130: operator delete(void*)
(vg_replace_malloc.c:244)
  10.      ==20770==    by 0x641A14:
__gnu_cxx::new_allocator<std::_List_node<Packet*>
>::deallocate(std::_List_node<Packet*>*, unsigned long)
(new_allocator.h:94)
  11.      ==20770==    by 0x641A3C: std::_List_base<PacketBuffer*,
std::allocator<PacketBuffer*>
>::_M_put_node(std::_List_node<Packet*>*) (stl_list.h:320)
  12.      ==20770==    by 0x642968: std::list<Packet*,
std::allocator<Packet*> >::_M_erase(std::_List_iterator<Packet*>)
(stl_list.h:1150)
  13.      ==20770==    by 0x64299C: std::list<Packet*,
std::allocator<Packet*> >::erase(std::_List_iterator<Packet*>)
(list.tcc:98)
  14.      ...
  15.      ...
  16.      ...

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to