==3544== Memcheck, a memory error detector ==3544== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==3544== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==3544== Command: netxmsd -D3 ==3544== Parent PID: 3041 ==3544== ==3544== Thread 205: ==3544== Invalid read of size 8 ==3544== at 0x39FA287384: __GI___strncasecmp_l (in /lib64/libc-2.12.so) ==3544== by 0x39FA23B5EF: ____strtod_l_internal (in /lib64/libc-2.12.so) ==3544== by 0x505F707: NXSL_Value::updateNumber() (value.cpp:384) ==3544== by 0x505F82E: NXSL_Value::NXSL_Value(char const*) (value.cpp:262) ==3544== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==3544== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==3544== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==3544== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==3544== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==3544== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== Address 0x62689f8 is 8 bytes inside a block of size 10 alloc'd ==3544== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==3544== by 0x39FA280871: strdup (in /lib64/libc-2.12.so) ==3544== by 0x505F81E: NXSL_Value::NXSL_Value(char const*) (value.cpp:251) ==3544== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==3544== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==3544== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==3544== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==3544== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==3544== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== ==3544== Thread 202: ==3544== Invalid read of size 8 ==3544== at 0x39FA288AA4: __GI___strncasecmp_l (in /lib64/libc-2.12.so) ==3544== by 0x39FA23B56D: ____strtod_l_internal (in /lib64/libc-2.12.so) ==3544== by 0x505F707: NXSL_Value::updateNumber() (value.cpp:384) ==3544== by 0x505F82E: NXSL_Value::NXSL_Value(char const*) (value.cpp:262) ==3544== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==3544== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==3544== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==3544== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==3544== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==3544== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== Address 0x654d458 is 8 bytes inside a block of size 12 alloc'd ==3544== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==3544== by 0x39FA280871: strdup (in /lib64/libc-2.12.so) ==3544== by 0x505F81E: NXSL_Value::NXSL_Value(char const*) (value.cpp:251) ==3544== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==3544== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==3544== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==3544== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==3544== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==3544== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== ==3544== ==3544== HEAP SUMMARY: ==3544== in use at exit: 19,166,781 bytes in 39,442 blocks ==3544== total heap usage: 3,595,269 allocs, 3,555,827 frees, 17,961,239,560 bytes allocated ==3544== ==3544== Thread 1: ==3544== 213 (96 direct, 117 indirect) bytes in 2 blocks are definitely lost in loss record 659 of 828 ==3544== at 0x4A06C8E: operator new(unsigned long) (vg_replace_malloc.c:261) ==3544== by 0x5B5F2E9: SituationsInit() (situation.cpp:373) ==3544== by 0x5B1B359: Initialize() (main.cpp:731) ==3544== by 0x401053: main (netxmsd.cpp:459) ==3544== ==3544== 320 bytes in 1 blocks are possibly lost in loss record 672 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5B3AB51: ObjectsInit() (nms_threads.h:633) ==3544== by 0x5B1B334: Initialize() (main.cpp:725) ==3544== by 0x401053: main (netxmsd.cpp:459) ==3544== ==3544== 320 bytes in 1 blocks are possibly lost in loss record 673 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==3544== by 0x5B1B483: Initialize() (main.cpp:780) ==3544== by 0x401053: main (netxmsd.cpp:459) ==3544== ==3544== 320 bytes in 1 blocks are possibly lost in loss record 674 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==3544== by 0x5B1B4D6: Initialize() (main.cpp:791) ==3544== by 0x401053: main (netxmsd.cpp:459) ==3544== ==3544== 320 bytes in 1 blocks are possibly lost in loss record 675 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==3544== by 0x5B1B4EB: Initialize() (main.cpp:797) ==3544== by 0x401053: main (netxmsd.cpp:459) ==3544== ==3544== 320 bytes in 1 blocks are possibly lost in loss record 676 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==3544== by 0x5B1B522: Initialize() (main.cpp:805) ==3544== by 0x401053: main (netxmsd.cpp:459) ==3544== ==3544== 320 bytes in 1 blocks are possibly lost in loss record 677 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==3544== by 0x5B1B537: Initialize() (main.cpp:812) ==3544== by 0x401053: main (netxmsd.cpp:459) ==3544== ==3544== 320 bytes in 1 blocks are possibly lost in loss record 678 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x4C28B51: StartMainLoop(void* (*)(void*), void* (*)(void*)) (nms_threads.h:633) ==3544== by 0x40112E: main (netxmsd.cpp:471) ==3544== ==3544== 320 bytes in 1 blocks are possibly lost in loss record 679 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x4C2244B: MsgWaitQueue::MsgWaitQueue() (nms_threads.h:633) ==3544== by 0x58A7987: AgentConnection::AgentConnection(unsigned int, unsigned short, int, char const*) (agent.cpp:93) ==3544== by 0x5B2F2FA: Node::confPollAgent(unsigned int) (node.cpp:1652) ==3544== by 0x5B322EC: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1523) ==3544== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== ==3544== 11,200 bytes in 35 blocks are possibly lost in loss record 777 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5B40789: PollManager(void*) (nms_threads.h:633) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== ==3544== 12,160 bytes in 38 blocks are possibly lost in loss record 779 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5B406F1: PollManager(void*) (nms_threads.h:633) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== ==3544== 28,672 bytes in 7 blocks are possibly lost in loss record 797 of 828 ==3544== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==3544== by 0x5AFC2E7: DataCollector(void*) (datacoll.cpp:117) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== ==3544== 31,680 bytes in 99 blocks are possibly lost in loss record 799 of 828 ==3544== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==3544== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==3544== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==3544== by 0x5AFC818: InitDataCollector() (nms_threads.h:633) ==3544== by 0x5B1B3A7: Initialize() (main.cpp:751) ==3544== by 0x401053: main (netxmsd.cpp:459) ==3544== ==3544== 98,304 (90,112 direct, 8,192 indirect) bytes in 22 blocks are definitely lost in loss record 818 of 828 ==3544== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==3544== by 0x5AFC2E7: DataCollector(void*) (datacoll.cpp:117) ==3544== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==3544== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==3544== ==3544== LEAK SUMMARY: ==3544== definitely lost: 90,208 bytes in 24 blocks ==3544== indirectly lost: 8,309 bytes in 8 blocks ==3544== possibly lost: 86,272 bytes in 187 blocks ==3544== still reachable: 18,981,992 bytes in 39,223 blocks ==3544== suppressed: 0 bytes in 0 blocks ==3544== Reachable blocks (those to which a pointer was found) are not shown. ==3544== To see them, rerun with: --leak-check=full --show-reachable=yes ==3544== ==3544== For counts of detected and suppressed errors, rerun with: -v ==3544== ERROR SUMMARY: 23 errors from 16 contexts (suppressed: 0 from 0)