[marc@Laptop muhbot2]$ valgrind --leak-check=full -v ./muhbot2
==10632== Memcheck, a memory error detector
==10632== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==10632== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==10632== Command: ./muhbot2
==10632==
--10632-- Valgrind options:
--10632-- --leak-check=full
--10632-- -v
--10632-- Contents of /proc/version:
--10632-- Linux version 2.6.36-ARCH (tobias@T-POWA-LX) (gcc version 4.5.1 (GCC) ) #1 SMP PREEMPT Mon Oct 25 20:18:21 UTC 2010
--10632-- Arch and hwcaps: X86, x86-sse1-sse2-lzcnt
--10632-- Page sizes: currently 4096, max supported 4096
--10632-- Valgrind library directory: /usr/lib/valgrind
--10632-- Reading syms from /lib/ld-2.12.1.so (0x4000000)
--10632-- Reading syms from /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2 (0x8048000)
--10632-- Reading syms from /usr/lib/valgrind/memcheck-x86-linux (0x38000000)
--10632-- object doesn't have a symbol table
--10632-- object doesn't have a dynamic symbol table
--10632-- Reading suppressions file: /usr/lib/valgrind/default.supp
--10632-- REDIR: 0x4016b40 (index) redirected to 0x3803f9a3 (???)
--10632-- Reading syms from /usr/lib/valgrind/vgpreload_core-x86-linux.so (0x401f000)
--10632-- object doesn't have a symbol table
--10632-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4021000)
--10632-- object doesn't have a symbol table
==10632== WARNING: new redirection conflicts with existing -- ignoring it
--10632-- new: 0x04016b40 (index ) R-> 0x04024ed0 index
--10632-- REDIR: 0x4016ce0 (strlen) redirected to 0x4025300 (strlen)
--10632-- Reading syms from /lib/libc-2.12.1.so (0x4040000)
--10632-- object doesn't have a symbol table
--10632-- Reading syms from /lib/libm-2.12.1.so (0x418c000)
--10632-- object doesn't have a symbol table
--10632-- Reading syms from /lib/libpthread-2.12.1.so (0x41b1000)
--10632-- Reading syms from /lib/libdl-2.12.1.so (0x41cc000)
--10632-- object doesn't have a symbol table
--10632-- Reading syms from /lib/libncursesw.so.5.7 (0x41d0000)
--10632-- REDIR: 0x40b5620 (strstr) redirected to 0x4026ee0 (strstr)
--10632-- REDIR: 0x40b4a30 (rindex) redirected to 0x4024d10 (rindex)
--10632-- REDIR: 0x40b60f0 (memset) redirected to 0x4026930 (memset)
--10632-- REDIR: 0x40b4620 (strlen) redirected to 0x40252c0 (strlen)
--10632-- REDIR: 0x40b4840 (strncmp) redirected to 0x40257a0 (strncmp)
--10632-- REDIR: 0x40b1850 (calloc) redirected to 0x40230d0 (calloc)
--10632-- REDIR: 0x40b3f30 (index) redirected to 0x4024e10 (index)
--10632-- REDIR: 0x40b08d0 (malloc) redirected to 0x40249b0 (malloc)
--10632-- REDIR: 0x40b9070 (strchrnul) redirected to 0x4026ae0 (strchrnul)
--10632-- REDIR: 0x40b65d0 (memcpy) redirected to 0x4025a60 (memcpy)
--10632-- REDIR: 0x40b0e70 (realloc) redirected to 0x4024a80 (realloc)
--10632-- REDIR: 0x40b0d90 (free) redirected to 0x4023bb0 (free)
--10632-- REDIR: 0x40b4970 (strncpy) redirected to 0x40254e0 (strncpy)
--10632-- REDIR: 0x40b4110 (strcpy) redirected to 0x4025340 (strcpy)
--10632-- REDIR: 0x40b40a0 (strcmp) redirected to 0x40258a0 (strcmp)
--10632-- REDIR: 0x40b5bf0 (memchr) redirected to 0x4025a20 (memchr)
--10632-- REDIR: 0x40b6150 (mempcpy) redirected to 0x4026c20 (mempcpy)
--10632-- REDIR: 0x40b6290 (stpcpy) redirected to 0x40265f0 (stpcpy)
--10632-- Reading syms from /lib/libnss_files-2.12.1.so (0x402b000)
--10632-- object doesn't have a symbol table
--10632-- REDIR: 0x40b8fa0 (rawmemchr) redirected to 0x4026b10 (rawmemchr)
--10632-- Reading syms from /lib/libnss_dns-2.12.1.so (0x4037000)
--10632-- object doesn't have a symbol table
--10632-- Reading syms from /lib/libresolv-2.12.1.so (0x4eb1000)
--10632-- object doesn't have a symbol table
[1] [1] [13:36] [CONNECTED] Host: mln.ath.cx
==10632== Thread 4:
==10632== Invalid read of size 4
==10632== at 0x804B255: CHAN_LIST::COUNT() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804D73F: IRC_NEWDATA (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:107)
==10632== by 0x805138B: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1116)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632== Address 0x42254d8 is 0 bytes inside a block of size 12 free'd
==10632== at 0x4023C1C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10632== by 0x805E8C0: operator delete(void*) (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804B29B: CHAN_LIST::DESTROY() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804AEBA: CHAN_LIST::~CHAN_LIST() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x80523BF: CON_TYPE::~CON_TYPE() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:64)
==10632== by 0x804CF12: IRC_CONNECTED (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:37)
==10632== by 0x8051066: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1085)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632==
Muh2
==10632== Invalid read of size 4
==10632== at 0x804AF10: CHAN_LIST::ITEM__get__(unsigned int) (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804D784: IRC_NEWDATA (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:109)
==10632== by 0x805138B: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1116)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632== Address 0x42254e0 is 8 bytes inside a block of size 12 free'd
==10632== at 0x4023C1C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10632== by 0x805E8C0: operator delete(void*) (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804B29B: CHAN_LIST::DESTROY() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804AEBA: CHAN_LIST::~CHAN_LIST() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x80523BF: CON_TYPE::~CON_TYPE() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:64)
==10632== by 0x804CF12: IRC_CONNECTED (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:37)
==10632== by 0x8051066: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1085)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632==

Muh3
==10632== Invalid read of size 4
==10632== at 0x804AF10: CHAN_LIST::ITEM__get__(unsigned int) (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804D7EB: IRC_NEWDATA (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:111)
==10632== by 0x805138B: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1116)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632== Address 0x42254e0 is 8 bytes inside a block of size 12 free'd
==10632== at 0x4023C1C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10632== by 0x805E8C0: operator delete(void*) (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804B29B: CHAN_LIST::DESTROY() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804AEBA: CHAN_LIST::~CHAN_LIST() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x80523BF: CON_TYPE::~CON_TYPE() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:64)
==10632== by 0x804CF12: IRC_CONNECTED (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:37)
==10632== by 0x8051066: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1085)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632==
==10632==
==10632== Process terminating with default action of signal 2 (SIGINT)
==10632== at 0x4107F81: select (in /lib/libc-2.12.1.so)
==10632== by 0x8058437: fb_SleepEx (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804F2F6: MAIN (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:104)
==10632== by 0x804F371: main (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:16)
--10632-- Discarding syms at 0x402c9f0-0x4033cb8 in /lib/libnss_files-2.12.1.so due to munmap()
--10632-- Discarding syms at 0x4037bc0-0x403abe8 in /lib/libnss_dns-2.12.1.so due to munmap()
--10632-- Discarding syms at 0x4eb3610-0x4ebf998 in /lib/libresolv-2.12.1.so due to munmap()
==10632==
==10632== HEAP SUMMARY:
==10632== in use at exit: 18,434 bytes in 47 blocks
==10632== total heap usage: 432 allocs, 385 frees, 46,461 bytes allocated
==10632==
==10632== Searching for pointers to 47 not-freed blocks
==10632== Checked 1,161,500 bytes
==10632==
==10632== Thread 1:
==10632== 144 bytes in 1 blocks are possibly lost in loss record 34 of 46
==10632== at 0x402317E: calloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10632== by 0x4010C77: allocate_dtv (in /lib/ld-2.12.1.so)
==10632== by 0x401140B: _dl_allocate_tls (in /lib/ld-2.12.1.so)
==10632== by 0x41B7536: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.12.1.so)
==10632== by 0x805941D: fb_ThreadCreate (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x80506F5: TSNE_CREATE_CLIENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:809)
==10632== by 0x804EBA6: MAIN (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:29)
==10632== by 0x804F371: main (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:16)
==10632==
==10632== 144 bytes in 1 blocks are possibly lost in loss record 35 of 46
==10632== at 0x402317E: calloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10632== by 0x4010C77: allocate_dtv (in /lib/ld-2.12.1.so)
==10632== by 0x401140B: _dl_allocate_tls (in /lib/ld-2.12.1.so)
==10632== by 0x41B7536: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.12.1.so)
==10632== by 0x805941D: fb_ThreadCreate (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804FA1F: TSNE_INT_INIT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:440)
==10632== by 0x806A87C: ??? (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804A057: ??? (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x805E848: __libc_csu_init (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x4056C13: (below main) (in /lib/libc-2.12.1.so)
==10632==
==10632== LEAK SUMMARY:
==10632== definitely lost: 0 bytes in 0 blocks
==10632== indirectly lost: 0 bytes in 0 blocks
==10632== possibly lost: 288 bytes in 2 blocks
==10632== still reachable: 18,146 bytes in 45 blocks
==10632== suppressed: 0 bytes in 0 blocks
==10632== Reachable blocks (those to which a pointer was found) are not shown.
==10632== To see them, rerun with: --leak-check=full --show-reachable=yes
==10632==
==10632== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 27 from 10)
==10632==
==10632== 1 errors in context 1 of 5:
==10632== Thread 4:
==10632== Invalid read of size 4
==10632== at 0x804AF10: CHAN_LIST::ITEM__get__(unsigned int) (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804D7EB: IRC_NEWDATA (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:111)
==10632== by 0x805138B: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1116)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632== Address 0x42254e0 is 8 bytes inside a block of size 12 free'd
==10632== at 0x4023C1C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10632== by 0x805E8C0: operator delete(void*) (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804B29B: CHAN_LIST::DESTROY() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804AEBA: CHAN_LIST::~CHAN_LIST() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x80523BF: CON_TYPE::~CON_TYPE() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:64)
==10632== by 0x804CF12: IRC_CONNECTED (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:37)
==10632== by 0x8051066: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1085)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632==
==10632==
==10632== 1 errors in context 2 of 5:
==10632== Invalid read of size 4
==10632== at 0x804AF10: CHAN_LIST::ITEM__get__(unsigned int) (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804D784: IRC_NEWDATA (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:109)
==10632== by 0x805138B: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1116)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632== Address 0x42254e0 is 8 bytes inside a block of size 12 free'd
==10632== at 0x4023C1C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10632== by 0x805E8C0: operator delete(void*) (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804B29B: CHAN_LIST::DESTROY() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804AEBA: CHAN_LIST::~CHAN_LIST() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x80523BF: CON_TYPE::~CON_TYPE() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:64)
==10632== by 0x804CF12: IRC_CONNECTED (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:37)
==10632== by 0x8051066: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1085)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632==
==10632==
==10632== 1 errors in context 3 of 5:
==10632== Invalid read of size 4
==10632== at 0x804B255: CHAN_LIST::COUNT() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804D73F: IRC_NEWDATA (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:107)
==10632== by 0x805138B: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1116)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632== Address 0x42254d8 is 0 bytes inside a block of size 12 free'd
==10632== at 0x4023C1C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10632== by 0x805E8C0: operator delete(void*) (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x804B29B: CHAN_LIST::DESTROY() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x804AEBA: CHAN_LIST::~CHAN_LIST() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:45)
==10632== by 0x80523BF: CON_TYPE::~CON_TYPE() (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/types.bi:64)
==10632== by 0x804CF12: IRC_CONNECTED (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/irc_functions.bi:37)
==10632== by 0x8051066: TSNE_INT_THREAD_EVENT (/home/marc/Dateien/FreeBASIC/Neues/muhbot2/inc/tsne_v3.bi:1085)
==10632== by 0x8059481: threadproc (in /home/marc/Dateien/FreeBASIC/Neues/muhbot2/muhbot2)
==10632== by 0x41B6E5F: start_thread (in /lib/libpthread-2.12.1.so)
==10632== by 0x410EF9D: clone (in /lib/libc-2.12.1.so)
==10632==
--10632--
--10632-- used_suppression: 27 U1004-ARM-_dl_relocate_object
==10632==
==10632== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 27 from 10)
Getötet