==1807== 9 errors in context 6 of 6: ==1807== Thread 4: ==1807== Invalid read of size 1 ==1807== at 0x401E2FC: strcmp (mc_replace_strmem.c:341) ==1807== by 0x804B7C9: searchforname (nif.c:830) ==1807== by 0x804A277: callfornode (dlist.c:253) ==1807== by 0x804B8ED: nif_getid (nif.c:867) ==1807== by 0x805324F: gimi::GIMI::findClientId(std::string const&) (gimi.cpp:972) ==1807== by 0x8053878: gimi::GIMI::send(std::string const&, char const*, int, int, int, int, int) (gimi.cpp:233) ==1807== by 0x806CAE2: commandSenderThread(gimi::GIMI*) (main.cpp:99) ==1807== by 0x4039C50: pthread_start_thread (manager.c:310) ==1807== by 0x4447389: clone (clone.S:119) ==1807== Address 0x4651115 is 13 bytes inside a block of size 22 free'd ==1807== at 0x401CCBC: operator delete(void*) (vg_replace_malloc.c:244) ==1807== by 0x4304EBC: std::string::_Rep::_M_destroy(std::allocator const&) (in /usr/lib/libstdc++.so.6.0.8) ==1807== by 0x4307A27: std::string::~string() (in /usr/lib/libstdc++.so.6.0.8) ==1807== by 0x806AD83: __tcf_3 (main.cpp:79) ==1807== by 0x43B805F: exit (exit.c:60) ==1807== by 0x43A23C5: (below main) (libc-start.c:240)