blast@vslack:~$ valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes bzfs -ddd -loadplugin /usr/local/lib/bzflag/torBlock.so ==11455== Memcheck, a memory error detector. ==11455== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==11455== Using LibVEX rev 1732, a library for dynamic binary translation. ==11455== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==11455== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==11455== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==11455== For more details, rerun with: -v ==11455== Plugin:/usr/local/lib/bzflag/torBlock.so loaded ColDet Octree obstacles = 41 grid extent[0] = -373.466431, 451.707397 grid extent[1] = -394.187714, 430.986084 grid extent[2] = 0.000000, 825.173828 world extent[0] = -334.947632, 413.188599 world extent[1] = -394.187714, 430.986084 world extent[2] = 0.000000, 10.250000 ColDet Octree leaf nodes = 27 ColDet Octree total nodes = 37 ColDet Octree total elements = 65 Collision Octree processed in 0.191 seconds. ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDB2A: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDA7E: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDAB7: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDB1F: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDADD: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDAE8: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDAF3: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDAFE: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDB09: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) ==11455== ==11455== Conditional jump or move depends on uninitialised value(s) ==11455== at 0x42FDB14: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FD66C: (within /usr/lib/libz.so.1.2.3) ==11455== by 0x42FB89A: deflate (in /usr/lib/libz.so.1.2.3) ==11455== by 0x42F8BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==11455== by 0x818F7E2: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==11455== by 0x81B140C: defineWorld() (bzfs.cxx:872) ==11455== by 0x81BEBC0: main (bzfs.cxx:4601) Map size: uncompressed = 1373, compressed = 683 Compression: 0.138 seconds MD5 generation: 0.078 seconds Note: no acceleration limit has been set. Players using "mouse enhancements" may cause problems on this server due to very high acceleration rates which are not handled well by dead reckoning algorithms. To eliminate this warning, set the -a switch in your configuration. '-a 50 38' is recommended for standard-speed servers. Higher speed servers will need higher values for -a in order to not affect gameplay. '-a 0 0' may be used to shut this message up without affecting any players, including those using "mouse enhancements". style: 10 There is a voting arbiter with the following settings: vote time is 60 seconds veto time is 2 seconds votes required are 2 vote percentage necessary is 50.099998 vote repeat time is 300 seconds available voters is initially set to 200 Running a private server with the following settings: listening on 0.0.0.0:5154 with title of "" LIBCURL version: libcurl/7.16.2 OpenSSL/0.9.8d zlib/1.2.3 libidn/0.6.5 CURLOPT_URL is : http://belegost.mit.edu/tor/status/authority Shutting down server: uptime 7 secs ==11455== ==11455== FILE DESCRIPTORS: 4 open at exit. ==11455== Open AF_INET socket 4: <-> unbound ==11455== at 0x43F5A92: socket (in /lib/libc-2.3.6.so) ==11455== by 0x81B0C21: serverStart() (bzfs.cxx:731) ==11455== by 0x81BFBF2: main (bzfs.cxx:4817) ==11455== ==11455== Open file descriptor 2: /dev/pts/3 ==11455== ==11455== ==11455== Open file descriptor 1: /dev/pts/3 ==11455== ==11455== ==11455== Open file descriptor 0: /dev/pts/3 ==11455== ==11455== ==11455== ==11455== ERROR SUMMARY: 253 errors from 10 contexts (suppressed: 43 from 2) ==11455== malloc/free: in use at exit: 244,605 bytes in 22 blocks. ==11455== malloc/free: 86,431 allocs, 86,409 frees, 20,715,109 bytes allocated. ==11455== For counts of detected errors, rerun with: -v ==11455== searching for pointers to 22 not-freed blocks. ==11455== checked 299,792 bytes. ==11455== ==11455== ==11455== 11 bytes in 1 blocks are still reachable in loss record 1 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x4136676: Curl_readwrite (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413B4E1: (within /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413C6EE: curl_multi_perform (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x8257E3F: cURLManager::perform() (cURLManager.cxx:295) ==11455== by 0x81C275B: main (bzfs.cxx:5497) ==11455== ==11455== ==11455== 12 bytes in 1 blocks are still reachable in loss record 2 of 14 ==11455== at 0x401CABB: operator new(unsigned) (vg_replace_malloc.c:163) ==11455== by 0x8135BD7: __gnu_cxx::new_allocator::allocate(unsigned, void const*) (new_allocator.h:81) ==11455== by 0x8134D57: std::_Vector_base >::_M_allocate(unsigned) (stl_vector.h:113) ==11455== by 0x8133809: std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, trURLJob const&) (vector.tcc:244) ==11455== by 0x8130D67: std::vector >::push_back(trURLJob const&) (stl_vector.h:564) ==11455== by 0x812F214: BZ_APIURLManager::addJob(char const*, bz_URLHandler*, char const*) (bzfsAPI.cxx:2139) ==11455== by 0x812D8E9: bz_addURLJob(char const*, bz_URLHandler*, char const*) (bzfsAPI.cxx:2227) ==11455== by 0x4025267: ??? ==11455== by 0x4025458: ??? ==11455== by 0x8191F75: WorldEventManager::callEvents(bz_eEventType, bz_EventData*) (WorldEventManager.cxx:97) ==11455== by 0x81C26FE: main (bzfs.cxx:5486) ==11455== ==11455== ==11455== 17 bytes in 1 blocks are still reachable in loss record 3 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x4396B8F: strdup (in /lib/libc-2.3.6.so) ==11455== by 0x4122922: Curl_http_connect (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x4128DBA: Curl_protocol_connect (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413B96E: (within /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413C6EE: curl_multi_perform (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x8257E3F: cURLManager::perform() (cURLManager.cxx:295) ==11455== by 0x81C275B: main (bzfs.cxx:5497) ==11455== ==11455== ==11455== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 4 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x44066C6: nss_parse_service_list (in /lib/libc-2.3.6.so) ==11455== by 0x4406F27: __nss_database_lookup (in /lib/libc-2.3.6.so) ==11455== by 0x455E168: ??? ==11455== by 0x43B80F3: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.3.6.so) ==11455== by 0x43B7B6E: getpwuid (in /lib/libc-2.3.6.so) ==11455== by 0x820693F: getConfigDirName(char const*) (DirectoryNames.cxx:117) ==11455== by 0x8206AC4: setupString(std::string) (DirectoryNames.cxx:134) ==11455== by 0x8206BFF: getRecordDirName() (DirectoryNames.cxx:159) ==11455== by 0x818073F: __static_initialization_and_destruction_0(int, int) (RecordReplay.cxx:147) ==11455== by 0x8180913: _GLOBAL__I__ZN6Record4initEv (RecordReplay.cxx:2624) ==11455== by 0x826E574: (within /usr/local/bin/bzfs) ==11455== by 0x810EF84: (within /usr/local/bin/bzfs) ==11455== by 0x826E47A: __libc_csu_init (in /usr/local/bin/bzfs) ==11455== by 0x434126A: (below main) (in /lib/libc-2.3.6.so) ==11455== ==11455== ==11455== 40 bytes in 5 blocks are indirectly lost in loss record 5 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x4406294: __nss_lookup_function (in /lib/libc-2.3.6.so) ==11455== by 0x455E18E: ??? ==11455== by 0x43B80F3: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.3.6.so) ==11455== by 0x43B7B6E: getpwuid (in /lib/libc-2.3.6.so) ==11455== by 0x820693F: getConfigDirName(char const*) (DirectoryNames.cxx:117) ==11455== by 0x8206AC4: setupString(std::string) (DirectoryNames.cxx:134) ==11455== by 0x8206BFF: getRecordDirName() (DirectoryNames.cxx:159) ==11455== by 0x818073F: __static_initialization_and_destruction_0(int, int) (RecordReplay.cxx:147) ==11455== by 0x8180913: _GLOBAL__I__ZN6Record4initEv (RecordReplay.cxx:2624) ==11455== by 0x826E574: (within /usr/local/bin/bzfs) ==11455== by 0x810EF84: (within /usr/local/bin/bzfs) ==11455== by 0x826E47A: __libc_csu_init (in /usr/local/bin/bzfs) ==11455== by 0x434126A: (below main) (in /lib/libc-2.3.6.so) ==11455== ==11455== ==11455== 57 bytes in 1 blocks are possibly lost in loss record 6 of 14 ==11455== at 0x401CABB: operator new(unsigned) (vg_replace_malloc.c:163) ==11455== by 0x40BC215: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.3) ==11455== by 0x40BC9CB: std::string::_M_mutate(unsigned, unsigned, unsigned) (in /usr/lib/libstdc++.so.6.0.3) ==11455== by 0x40BCCBD: std::string::assign(char const*, unsigned) (in /usr/lib/libstdc++.so.6.0.3) ==11455== by 0x40BCE1B: std::string::operator=(char const*) (in /usr/lib/libstdc++.so.6.0.3) ==11455== by 0x812F1DE: BZ_APIURLManager::addJob(char const*, bz_URLHandler*, char const*) (bzfsAPI.cxx:2134) ==11455== by 0x812D8E9: bz_addURLJob(char const*, bz_URLHandler*, char const*) (bzfsAPI.cxx:2227) ==11455== by 0x4025267: ??? ==11455== by 0x4025458: ??? ==11455== by 0x8191F75: WorldEventManager::callEvents(bz_eEventType, bz_EventData*) (WorldEventManager.cxx:97) ==11455== by 0x81C26FE: main (bzfs.cxx:5486) ==11455== ==11455== ==11455== 60 bytes in 1 blocks are still reachable in loss record 7 of 14 ==11455== at 0x401CABB: operator new(unsigned) (vg_replace_malloc.c:163) ==11455== by 0x812D890: bz_addURLJob(char const*, bz_URLHandler*, char const*) (bzfsAPI.cxx:2225) ==11455== by 0x4025267: ??? ==11455== by 0x4025458: ??? ==11455== by 0x8191F75: WorldEventManager::callEvents(bz_eEventType, bz_EventData*) (WorldEventManager.cxx:97) ==11455== by 0x81C26FE: main (bzfs.cxx:5486) ==11455== ==11455== ==11455== 80 bytes in 5 blocks are indirectly lost in loss record 8 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x43F2A5B: tsearch (in /lib/libc-2.3.6.so) ==11455== by 0x440625F: __nss_lookup_function (in /lib/libc-2.3.6.so) ==11455== by 0x455E18E: ??? ==11455== by 0x43B80F3: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.3.6.so) ==11455== by 0x43B7B6E: getpwuid (in /lib/libc-2.3.6.so) ==11455== by 0x820693F: getConfigDirName(char const*) (DirectoryNames.cxx:117) ==11455== by 0x8206AC4: setupString(std::string) (DirectoryNames.cxx:134) ==11455== by 0x8206BFF: getRecordDirName() (DirectoryNames.cxx:159) ==11455== by 0x818073F: __static_initialization_and_destruction_0(int, int) (RecordReplay.cxx:147) ==11455== by 0x8180913: _GLOBAL__I__ZN6Record4initEv (RecordReplay.cxx:2624) ==11455== by 0x826E574: (within /usr/local/bin/bzfs) ==11455== by 0x810EF84: (within /usr/local/bin/bzfs) ==11455== by 0x826E47A: __libc_csu_init (in /usr/local/bin/bzfs) ==11455== by 0x434126A: (below main) (in /lib/libc-2.3.6.so) ==11455== ==11455== ==11455== 116 bytes in 1 blocks are still reachable in loss record 9 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x411FFA7: Curl_http (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x412BCF9: Curl_do (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413B8E6: (within /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413C6EE: curl_multi_perform (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x8257E3F: cURLManager::perform() (cURLManager.cxx:295) ==11455== by 0x81C275B: main (bzfs.cxx:5497) ==11455== ==11455== ==11455== 256 bytes in 1 blocks are still reachable in loss record 10 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x412D4CF: Curl_open (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x4138DE6: curl_easy_init (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x8256D19: cURLManager::cURLManager() (cURLManager.cxx:41) ==11455== by 0x812F3B9: BZ_APIURLManager::BZ_APIURLManager() (bzfsAPI.cxx:2120) ==11455== by 0x812D89E: bz_addURLJob(char const*, bz_URLHandler*, char const*) (bzfsAPI.cxx:2225) ==11455== by 0x4025267: ??? ==11455== by 0x4025458: ??? ==11455== by 0x8191F75: WorldEventManager::callEvents(bz_eEventType, bz_EventData*) (WorldEventManager.cxx:97) ==11455== by 0x81C26FE: main (bzfs.cxx:5486) ==11455== ==11455== ==11455== 258 bytes in 1 blocks are still reachable in loss record 11 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x41297E4: Curl_connect (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413B29C: (within /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413C6EE: curl_multi_perform (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x8257E3F: cURLManager::perform() (cURLManager.cxx:295) ==11455== by 0x81C275B: main (bzfs.cxx:5497) ==11455== ==11455== ==11455== 360 bytes in 1 blocks are still reachable in loss record 12 of 14 ==11455== at 0x401DB0E: calloc (vg_replace_malloc.c:279) ==11455== by 0x414107E: Curl_ssl_initsessions (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x4135B11: Curl_pretransfer (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413B247: (within /usr/lib/libcurl.so.4.0.0) ==11455== by 0x413C6EE: curl_multi_perform (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x8257E3F: cURLManager::perform() (cURLManager.cxx:295) ==11455== by 0x81C275B: main (bzfs.cxx:5497) ==11455== ==11455== ==11455== 34,116 bytes in 1 blocks are still reachable in loss record 13 of 14 ==11455== at 0x401DB0E: calloc (vg_replace_malloc.c:279) ==11455== by 0x412D4AA: Curl_open (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x4138DE6: curl_easy_init (in /usr/lib/libcurl.so.4.0.0) ==11455== by 0x8256D19: cURLManager::cURLManager() (cURLManager.cxx:41) ==11455== by 0x812F3B9: BZ_APIURLManager::BZ_APIURLManager() (bzfsAPI.cxx:2120) ==11455== by 0x812D89E: bz_addURLJob(char const*, bz_URLHandler*, char const*) (bzfsAPI.cxx:2225) ==11455== by 0x4025267: ??? ==11455== by 0x4025458: ??? ==11455== by 0x8191F75: WorldEventManager::callEvents(bz_eEventType, bz_EventData*) (WorldEventManager.cxx:97) ==11455== by 0x81C26FE: main (bzfs.cxx:5486) ==11455== ==11455== ==11455== 209,186 bytes in 1 blocks are definitely lost in loss record 14 of 14 ==11455== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==11455== by 0x40269A9: ??? ==11455== by 0x813712D: BZ_APIURLManager::finalization(char*, unsigned, bool) (bzfsAPI.cxx:2182) ==11455== by 0x8257F80: cURLManager::infoComplete(CURLcode) (cURLManager.cxx:335) ==11455== by 0x8257ED7: cURLManager::perform() (cURLManager.cxx:315) ==11455== by 0x81C275B: main (bzfs.cxx:5497) ==11455== ==11455== LEAK SUMMARY: ==11455== definitely lost: 209,222 bytes in 2 blocks. ==11455== indirectly lost: 120 bytes in 10 blocks. ==11455== possibly lost: 57 bytes in 1 blocks. ==11455== still reachable: 35,206 bytes in 9 blocks. ==11455== suppressed: 0 bytes in 0 blocks.