==1861== Memcheck, a memory error detector ==1861== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==1861== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==1861== Command: netxmsd -D3 ==1861== Parent PID: 1827 ==1861== ==1861== Thread 229: ==1861== Invalid read of size 8 ==1861== at 0x39FA287384: __GI___strncasecmp_l (in /lib64/libc-2.12.so) ==1861== by 0x39FA23B5EF: ____strtod_l_internal (in /lib64/libc-2.12.so) ==1861== by 0x505F707: NXSL_Value::updateNumber() (value.cpp:384) ==1861== by 0x505F82E: NXSL_Value::NXSL_Value(char const*) (value.cpp:262) ==1861== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==1861== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==1861== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==1861== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==1861== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==1861== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== Address 0x98ef538 is 8 bytes inside a block of size 10 alloc'd ==1861== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==1861== by 0x39FA280871: strdup (in /lib64/libc-2.12.so) ==1861== by 0x505F81E: NXSL_Value::NXSL_Value(char const*) (value.cpp:251) ==1861== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==1861== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==1861== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==1861== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==1861== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==1861== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== Thread 204: ==1861== Invalid read of size 8 ==1861== at 0x39FA288AA4: __GI___strncasecmp_l (in /lib64/libc-2.12.so) ==1861== by 0x39FA23B56D: ____strtod_l_internal (in /lib64/libc-2.12.so) ==1861== by 0x505F707: NXSL_Value::updateNumber() (value.cpp:384) ==1861== by 0x505F82E: NXSL_Value::NXSL_Value(char const*) (value.cpp:262) ==1861== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==1861== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==1861== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==1861== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==1861== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==1861== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== Address 0x65e56e8 is 8 bytes inside a block of size 12 alloc'd ==1861== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==1861== by 0x39FA280871: strdup (in /lib64/libc-2.12.so) ==1861== by 0x505F81E: NXSL_Value::NXSL_Value(char const*) (value.cpp:251) ==1861== by 0x5B35CC7: NXSL_NodeClass::getAttr(NXSL_Object*, char const*) (nxsl_classes.cpp:201) ==1861== by 0x505D6AD: NXSL_Program::execute() (program.cpp:1075) ==1861== by 0x505E3A7: NXSL_Program::run(NXSL_Environment*, unsigned int, NXSL_Value**, NXSL_VariableSystem*, NXSL_VariableSystem**, NXSL_VariableSystem*, char const*) (program.cpp:481) ==1861== by 0x5B29AEF: Node::executeHookScript(char const*) (node.cpp:4795) ==1861== by 0x5B3252E: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1618) ==1861== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== Thread 246: ==1861== Invalid read of size 4 ==1861== at 0x5B3F166: CheckPotentialNode(Node*, unsigned int, unsigned int, unsigned char*) (poll.cpp:410) ==1861== by 0x5B40241: DiscoveryPoller(void*) (poll.cpp:443) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== Address 0x7244274 is 4 bytes inside a block of size 24 free'd ==1861== at 0x4A0595D: free (vg_replace_malloc.c:366) ==1861== by 0x5B346F7: NodePoller(void*) (np.cpp:530) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== Invalid read of size 4 ==1861== at 0x5B3F175: CheckPotentialNode(Node*, unsigned int, unsigned int, unsigned char*) (poll.cpp:410) ==1861== by 0x5B40241: DiscoveryPoller(void*) (poll.cpp:443) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== Address 0x7244270 is 0 bytes inside a block of size 24 free'd ==1861== at 0x4A0595D: free (vg_replace_malloc.c:366) ==1861== by 0x5B346F7: NodePoller(void*) (np.cpp:530) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== ==1861== HEAP SUMMARY: ==1861== in use at exit: 35,397,091 bytes in 39,204 blocks ==1861== total heap usage: 5,702,945 allocs, 5,663,741 frees, 27,223,035,556 bytes allocated ==1861== ==1861== Thread 1: ==1861== 213 (96 direct, 117 indirect) bytes in 2 blocks are definitely lost in loss record 730 of 905 ==1861== at 0x4A06C8E: operator new(unsigned long) (vg_replace_malloc.c:261) ==1861== by 0x5B5F2E9: SituationsInit() (situation.cpp:373) ==1861== by 0x5B1B359: Initialize() (main.cpp:731) ==1861== by 0x401053: main (netxmsd.cpp:459) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 743 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B3AB51: ObjectsInit() (nms_threads.h:633) ==1861== by 0x5B1B334: Initialize() (main.cpp:725) ==1861== by 0x401053: main (netxmsd.cpp:459) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 744 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==1861== by 0x5B1B4D6: Initialize() (main.cpp:791) ==1861== by 0x401053: main (netxmsd.cpp:459) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 745 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==1861== by 0x5B1B522: Initialize() (main.cpp:805) ==1861== by 0x401053: main (netxmsd.cpp:459) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 746 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B1B962: ThreadCreate(void* (*)(void*), int, void*) (nms_threads.h:633) ==1861== by 0x5B1B537: Initialize() (main.cpp:812) ==1861== by 0x401053: main (netxmsd.cpp:459) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 747 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x4C28B51: StartMainLoop(void* (*)(void*), void* (*)(void*)) (nms_threads.h:633) ==1861== by 0x40112E: main (netxmsd.cpp:471) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 748 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B444F7: ClientSession::run() (nms_threads.h:633) ==1861== by 0x5AF567A: ClientListener(void*) (client.cpp:194) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 749 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B44550: ClientSession::run() (nms_threads.h:633) ==1861== by 0x5AF567A: ClientListener(void*) (client.cpp:194) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 750 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B445A6: ClientSession::run() (nms_threads.h:633) ==1861== by 0x5AF567A: ClientListener(void*) (client.cpp:194) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== 320 bytes in 1 blocks are possibly lost in loss record 751 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B445F7: ClientSession::run() (nms_threads.h:633) ==1861== by 0x5AF567A: ClientListener(void*) (client.cpp:194) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== 534 (200 direct, 334 indirect) bytes in 1 blocks are definitely lost in loss record 770 of 905 ==1861== at 0x4A06C8E: operator new(unsigned long) (vg_replace_malloc.c:261) ==1861== by 0x5B0D778: RealPostEvent(Queue*, unsigned int, unsigned int, char const*, char const*, char const**, __va_list_tag*) (events.cpp:816) ==1861== by 0x5B0DA5F: PostEvent(unsigned int, unsigned int, char const*, ...) (events.cpp:835) ==1861== by 0x5B32372: Node::configurationPoll(ClientSession*, unsigned int, int, unsigned int) (node.cpp:1549) ==1861== by 0x5B40545: ConfigurationPoller(void*) (poll.cpp:327) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== 4,800 bytes in 15 blocks are possibly lost in loss record 845 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B406F1: PollManager(void*) (nms_threads.h:633) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== 6,720 bytes in 21 blocks are possibly lost in loss record 850 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5B40789: PollManager(void*) (nms_threads.h:633) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== 31,360 bytes in 98 blocks are possibly lost in loss record 878 of 905 ==1861== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==1861== by 0x39F9E11812: _dl_allocate_tls (in /lib64/ld-2.12.so) ==1861== by 0x39FAA07068: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so) ==1861== by 0x5AFC818: InitDataCollector() (nms_threads.h:633) ==1861== by 0x5B1B3A7: Initialize() (main.cpp:751) ==1861== by 0x401053: main (netxmsd.cpp:459) ==1861== ==1861== 61,440 bytes in 15 blocks are possibly lost in loss record 892 of 905 ==1861== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==1861== by 0x5AFC2E7: DataCollector(void*) (datacoll.cpp:117) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== 307,200 (253,952 direct, 53,248 indirect) bytes in 62 blocks are definitely lost in loss record 899 of 905 ==1861== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==1861== by 0x5AFC2E7: DataCollector(void*) (datacoll.cpp:117) ==1861== by 0x39FAA07850: start_thread (in /lib64/libpthread-2.12.so) ==1861== by 0x39FA2E811C: clone (in /lib64/libc-2.12.so) ==1861== ==1861== LEAK SUMMARY: ==1861== definitely lost: 254,248 bytes in 65 blocks ==1861== indirectly lost: 53,699 bytes in 25 blocks ==1861== possibly lost: 107,200 bytes in 158 blocks ==1861== still reachable: 34,981,944 bytes in 38,956 blocks ==1861== suppressed: 0 bytes in 0 blocks ==1861== Reachable blocks (those to which a pointer was found) are not shown. ==1861== To see them, rerun with: --leak-check=full --show-reachable=yes ==1861== ==1861== For counts of detected and suppressed errors, rerun with: -v ==1861== ERROR SUMMARY: 27 errors from 20 contexts (suppressed: 0 from 0)