==2385== Memcheck, a memory error detector ==2385== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==2385== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==2385== Command: netxmsd -D3 ==2385== Parent PID: 2089 ==2385== ==2385== Thread 210: ==2385== Invalid read of size 8 ==2385== at 0x39FA287384: __GI___strncasecmp_l (in /lib64/libc-2.12.so) ==2385== by 0x39FA23B5EF: ____strtod_l_internal (in /lib64/libc-2.12.so) ==2385== by 0x505F707: NXSL_Value::updateNumber() (value.cpp:384) ==2385== by 0x505F82E: NXSL_Value::NXSL_Value(char const*) (value.cpp:262) ==2385== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==2385== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==2385== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==2385== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==2385== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==2385== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== Address 0x9baf128 is 8 bytes inside a block of size 10 alloc'd ==2385== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==2385== by 0x39FA280871: strdup (in /lib64/libc-2.12.so) ==2385== by 0x505F81E: NXSL_Value::NXSL_Value(char const*) (value.cpp:251) ==2385== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==2385== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==2385== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==2385== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==2385== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==2385== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== Thread 224: ==2385== Invalid read of size 8 ==2385== at 0x39FA288AA4: __GI___strncasecmp_l (in /lib64/libc-2.12.so) ==2385== by 0x39FA23B56D: ____strtod_l_internal (in /lib64/libc-2.12.so) ==2385== by 0x505F707: NXSL_Value::updateNumber() (value.cpp:384) ==2385== by 0x505F82E: NXSL_Value::NXSL_Value(char const*) (value.cpp:262) ==2385== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==2385== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==2385== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==2385== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==2385== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==2385== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== Address 0x9a309c8 is 8 bytes inside a block of size 12 alloc'd ==2385== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==2385== by 0x39FA280871: strdup (in /lib64/libc-2.12.so) ==2385== by 0x505F81E: NXSL_Value::NXSL_Value(char const*) (value.cpp:251) ==2385== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==2385== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==2385== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==2385== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==2385== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==2385== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== Thread 246: ==2385== Invalid read of size 4 ==2385== at 0x5B3F166: CheckPotentialNode(Node*, unsigned int, unsigned int, unsigned char*) (poll.cpp:410) ==2385== by 0x5B40241: DiscoveryPoller(void*) (poll.cpp:443) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== Address 0x7024884 is 4 bytes inside a block of size 24 free'd ==2385== at 0x4A0595D: free (vg_replace_malloc.c:366) ==2385== by 0x5B346F7: NodePoller(void*) (np.cpp:530) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== Invalid read of size 4 ==2385== at 0x5B3F175: CheckPotentialNode(Node*, unsigned int, unsigned int, unsigned char*) (poll.cpp:410) ==2385== by 0x5B40241: DiscoveryPoller(void*) (poll.cpp:443) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== Address 0x7024880 is 0 bytes inside a block of size 24 free'd ==2385== at 0x4A0595D: free (vg_replace_malloc.c:366) ==2385== by 0x5B346F7: NodePoller(void*) (np.cpp:530) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== ==2385== HEAP SUMMARY: ==2385== in use at exit: 14,410,587 bytes in 39,283 blocks ==2385== total heap usage: 3,659,420 allocs, 3,620,137 frees, 17,070,331,734 bytes allocated ==2385== ==2385== Thread 1: ==2385== 213 (96 direct, 117 indirect) bytes in 2 blocks are definitely lost in loss record 687 of 865 ==2385== at 0x4A06C8E: operator new(unsigned long) (vg_replace_malloc.c:261) ==2385== by 0x5B5F2E9: SituationsInit() (situation.cpp:373) ==2385== by 0x5B1B359: Initialize() (main.cpp:731) ==2385== by 0x401053: main (netxmsd.cpp:459) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 700 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B3AB51: ObjectsInit() (nms_threads.h:633) ==2385== by 0x5B1B334: Initialize() (main.cpp:725) ==2385== by 0x401053: main (netxmsd.cpp:459) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 701 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==2385== by 0x5B1B4D6: Initialize() (main.cpp:791) ==2385== by 0x401053: main (netxmsd.cpp:459) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 702 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==2385== by 0x5B1B4EB: Initialize() (main.cpp:797) ==2385== by 0x401053: main (netxmsd.cpp:459) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 703 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==2385== by 0x5B1B522: Initialize() (main.cpp:805) ==2385== by 0x401053: main (netxmsd.cpp:459) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 704 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x4C28B51: StartMainLoop(void* (*)(void*), void* (*)(void*)) (nms_threads.h:633) ==2385== by 0x40112E: main (netxmsd.cpp:471) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 705 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B444F7: ClientSession::run() (nms_threads.h:633) ==2385== by 0x5AF567A: ClientListener(void*) (client.cpp:194) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 706 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B44550: ClientSession::run() (nms_threads.h:633) ==2385== by 0x5AF567A: ClientListener(void*) (client.cpp:194) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 707 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B445A6: ClientSession::run() (nms_threads.h:633) ==2385== by 0x5AF567A: ClientListener(void*) (client.cpp:194) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== 320 bytes in 1 blocks are possibly lost in loss record 708 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B445F7: ClientSession::run() (nms_threads.h:633) ==2385== by 0x5AF567A: ClientListener(void*) (client.cpp:194) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== 3,840 bytes in 12 blocks are possibly lost in loss record 796 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x4C2244B: MsgWaitQueue::MsgWaitQueue() (nms_threads.h:633) ==2385== by 0x58A7987: AgentConnection::AgentConnection(unsigned int, unsigned short, int, char const*) (agent.cpp:93) ==2385== by 0x5B2F2FA: Node::confPollAgent(unsigned int) (node.cpp:1652) ==2385== by 0x5B322EC: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1523) ==2385== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== 5,760 bytes in 18 blocks are possibly lost in loss record 807 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B406F1: PollManager(void*) (nms_threads.h:633) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== 11,200 bytes in 35 blocks are possibly lost in loss record 815 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5B40789: PollManager(void*) (nms_threads.h:633) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== 31,360 bytes in 98 blocks are possibly lost in loss record 835 of 865 ==2385== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==2385== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==2385== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==2385== by 0x5AFC818: InitDataCollector() (nms_threads.h:633) ==2385== by 0x5B1B3A7: Initialize() (main.cpp:751) ==2385== by 0x401053: main (netxmsd.cpp:459) ==2385== ==2385== 40,960 bytes in 10 blocks are possibly lost in loss record 844 of 865 ==2385== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==2385== by 0x5AFC2E7: DataCollector(void*) (datacoll.cpp:117) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== 172,032 (147,456 direct, 24,576 indirect) bytes in 36 blocks are definitely lost in loss record 857 of 865 ==2385== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==2385== by 0x5AFC2E7: DataCollector(void*) (datacoll.cpp:117) ==2385== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==2385== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==2385== ==2385== LEAK SUMMARY: ==2385== definitely lost: 147,552 bytes in 38 blocks ==2385== indirectly lost: 24,693 bytes in 12 blocks ==2385== possibly lost: 96,000 bytes in 182 blocks ==2385== still reachable: 14,142,342 bytes in 39,051 blocks ==2385== suppressed: 0 bytes in 0 blocks ==2385== Reachable blocks (those to which a pointer was found) are not shown. ==2385== To see them, rerun with: --leak-check=full --show-reachable=yes ==2385== ==2385== For counts of detected and suppressed errors, rerun with: -v ==2385== ERROR SUMMARY: 27 errors from 20 contexts (suppressed: 0 from 0)