==30666== Memcheck, a memory error detector ==30666== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==30666== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==30666== Command: netxmsd -D3 ==30666== Parent PID: 30646 ==30666== ==30666== Thread 346: ==30666== Invalid read of size 1 ==30666== at 0x4C28F52: strlen (mc_replace_strmem.c:403) ==30666== by 0x5E1C12F: mb_to_ucs2 (unicode.cpp:828) ==30666== by 0x5E1C1EF: UCS2StringFromMBString (unicode.cpp:882) ==30666== by 0x5E0DEB4: CSCPMessage::set(unsigned int, unsigned char, void const*, unsigned int) (message.cpp:455) ==30666== by 0x4EC2BA0: NetObj::CreateMessage(CSCPMessage*) (nxcpapi.h:96) ==30666== by 0x4F0DA52: Template::CreateMessage(CSCPMessage*) (template.cpp:793) ==30666== by 0x4EC5E46: Node::CreateMessage(CSCPMessage*) (node.cpp:3772) ==30666== by 0x4EE9FE1: ClientSession::updateThread() (session.cpp:671) ==30666== by 0x4EEA128: ClientSession::updateThreadStarter(void*) (session.cpp:201) ==30666== by 0x68C6850: start_thread (in /lib64/libpthread-2.12.so) ==30666== by 0x76FE90C: clone (in /lib64/libc-2.12.so) ==30666== Address 0x29ee20f0 is 0 bytes inside a block of size 2 free'd ==30666== at 0x4C273F0: free (vg_replace_malloc.c:446) ==30666== by 0x5E15B07: StringMapBase::setObject(char*, void*, bool) (nms_util.h:270) ==30666== by 0x4ED946E: F_SetCustomAttribute(int, NXSL_Value**, NXSL_Value**, NXSL_VM*) (nms_util.h:298) ==30666== by 0x55B132D: NXSL_VM::execute() (vm.cpp:761) ==30666== by 0x55B1A07: NXSL_VM::run(unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (vm.cpp:271) ==30666== by 0x4E8F785: DCItem::transform(ItemValue&, long) (dcitem.cpp:869) ==30666== by 0x4E93288: DCItem::processNewValue(long, void*) (dcitem.cpp:680) ==30666== by 0x4E9DC64: DataCollectionTarget::processNewDCValue(DCObject*, long, void*) (dctarget.cpp:371) ==30666== by 0x4E8CFA1: DataCollector(void*) (datacoll.cpp:254) ==30666== by 0x68C6850: start_thread (in /lib64/libpthread-2.12.so) ==30666== by 0x76FE90C: clone (in /lib64/libc-2.12.so) ==30666== ==30666== Invalid read of size 1 ==30666== at 0x4C28F64: strlen (mc_replace_strmem.c:403) ==30666== by 0x5E1C12F: mb_to_ucs2 (unicode.cpp:828) ==30666== by 0x5E1C1EF: UCS2StringFromMBString (unicode.cpp:882) ==30666== by 0x5E0DEB4: CSCPMessage::set(unsigned int, unsigned char, void const*, unsigned int) (message.cpp:455) ==30666== by 0x4EC2BA0: NetObj::CreateMessage(CSCPMessage*) (nxcpapi.h:96) ==30666== by 0x4F0DA52: Template::CreateMessage(CSCPMessage*) (template.cpp:793) ==30666== by 0x4EC5E46: Node::CreateMessage(CSCPMessage*) (node.cpp:3772) ==30666== by 0x4EE9FE1: ClientSession::updateThread() (session.cpp:671) ==30666== by 0x4EEA128: ClientSession::updateThreadStarter(void*) (session.cpp:201) ==30666== by 0x68C6850: start_thread (in /lib64/libpthread-2.12.so) ==30666== by 0x76FE90C: clone (in /lib64/libc-2.12.so) ==30666== Address 0x29ee20f1 is 1 bytes inside a block of size 2 free'd ==30666== at 0x4C273F0: free (vg_replace_malloc.c:446) ==30666== by 0x5E15B07: StringMapBase::setObject(char*, void*, bool) (nms_util.h:270) ==30666== by 0x4ED946E: F_SetCustomAttribute(int, NXSL_Value**, NXSL_Value**, NXSL_VM*) (nms_util.h:298) ==30666== by 0x55B132D: NXSL_VM::execute() (vm.cpp:761) ==30666== by 0x55B1A07: NXSL_VM::run(unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (vm.cpp:271) ==30666== by 0x4E8F785: DCItem::transform(ItemValue&, long) (dcitem.cpp:869) ==30666== by 0x4E93288: DCItem::processNewValue(long, void*) (dcitem.cpp:680) ==30666== by 0x4E9DC64: DataCollectionTarget::processNewDCValue(DCObject*, long, void*) (dctarget.cpp:371) ==30666== by 0x4E8CFA1: DataCollector(void*) (datacoll.cpp:254) ==30666== by 0x68C6850: start_thread (in /lib64/libpthread-2.12.so) ==30666== by 0x76FE90C: clone (in /lib64/libc-2.12.so) ==30666== ==30666== Invalid read of size 1 ==30666== at 0x763B433: __gconv_transform_ascii_internal (in /lib64/libc-2.12.so) ==30666== by 0x7636263: __gconv (in /lib64/libc-2.12.so) ==30666== by 0x763583B: iconv (in /lib64/libc-2.12.so) ==30666== by 0x5E1C086: mb_to_ucs2 (unicode.cpp:831) ==30666== by 0x5E1C1EF: UCS2StringFromMBString (unicode.cpp:882) ==30666== by 0x5E0DEB4: CSCPMessage::set(unsigned int, unsigned char, void const*, unsigned int) (message.cpp:455) ==30666== by 0x4EC2BA0: NetObj::CreateMessage(CSCPMessage*) (nxcpapi.h:96) ==30666== by 0x4F0DA52: Template::CreateMessage(CSCPMessage*) (template.cpp:793) ==30666== by 0x4EC5E46: Node::CreateMessage(CSCPMessage*) (node.cpp:3772) ==30666== by 0x4EE9FE1: ClientSession::updateThread() (session.cpp:671) ==30666== by 0x4EEA128: ClientSession::updateThreadStarter(void*) (session.cpp:201) ==30666== by 0x68C6850: start_thread (in /lib64/libpthread-2.12.so) ==30666== Address 0x29ee20f0 is 0 bytes inside a block of size 2 free'd ==30666== at 0x4C273F0: free (vg_replace_malloc.c:446) ==30666== by 0x5E15B07: StringMapBase::setObject(char*, void*, bool) (nms_util.h:270) ==30666== by 0x4ED946E: F_SetCustomAttribute(int, NXSL_Value**, NXSL_Value**, NXSL_VM*) (nms_util.h:298) ==30666== by 0x55B132D: NXSL_VM::execute() (vm.cpp:761) ==30666== by 0x55B1A07: NXSL_VM::run(unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (vm.cpp:271) ==30666== by 0x4E8F785: DCItem::transform(ItemValue&, long) (dcitem.cpp:869) ==30666== by 0x4E93288: DCItem::processNewValue(long, void*) (dcitem.cpp:680) ==30666== by 0x4E9DC64: DataCollectionTarget::processNewDCValue(DCObject*, long, void*) (dctarget.cpp:371) ==30666== by 0x4E8CFA1: DataCollector(void*) (datacoll.cpp:254) ==30666== by 0x68C6850: start_thread (in /lib64/libpthread-2.12.so) ==30666== by 0x76FE90C: clone (in /lib64/libc-2.12.so) ==30666==