blast@vslack:~$ valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes bzfs -ddd ==18513== Memcheck, a memory error detector. ==18513== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==18513== Using LibVEX rev 1732, a library for dynamic binary translation. ==18513== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==18513== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==18513== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==18513== For more details, rerun with: -v ==18513== ColDet Octree obstacles = 44 grid extent[0] = -424.687561, 441.956726 grid extent[1] = -431.212738, 435.431580 grid extent[2] = 0.000000, 866.644287 world extent[0] = -368.450500, 385.719666 world extent[1] = -431.212738, 435.431580 world extent[2] = 0.000000, 10.250000 ColDet Octree leaf nodes = 30 ColDet Octree total nodes = 41 ColDet Octree total elements = 76 Collision Octree processed in 0.226 seconds. ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBB2A: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBA7E: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBAB7: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBB1F: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBADD: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBAE8: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBAF3: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBAFE: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBB09: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) ==18513== ==18513== Conditional jump or move depends on uninitialised value(s) ==18513== at 0x42FBB14: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42FB66C: (within /usr/lib/libz.so.1.2.3) ==18513== by 0x42F989A: deflate (in /usr/lib/libz.so.1.2.3) ==18513== by 0x42F6BBA: compress2 (in /usr/lib/libz.so.1.2.3) ==18513== by 0x80E5F8D: WorldInfo::packDatabase() (WorldInfo.cxx:550) ==18513== by 0x8109C28: defineWorld() (bzfs.cxx:872) ==18513== by 0x810D6DF: main (bzfs.cxx:4601) Map size: uncompressed = 1460, compressed = 729 Compression: 0.150 seconds MD5 generation: 0.056 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.15.5 OpenSSL/0.9.8d zlib/1.2.3 libidn/0.6.5 Shutting down server: uptime 17 secs ==18513== ==18513== FILE DESCRIPTORS: 4 open at exit. ==18513== Open AF_INET socket 4: <-> unbound ==18513== at 0x43F3A92: socket (in /lib/libc-2.3.6.so) ==18513== by 0x810FFAF: main (bzfs.cxx:731) ==18513== ==18513== Open file descriptor 2: /dev/pts/2 ==18513== ==18513== ==18513== Open file descriptor 1: /dev/pts/2 ==18513== ==18513== ==18513== Open file descriptor 0: /dev/pts/2 ==18513== ==18513== ==18513== ==18513== ERROR SUMMARY: 253 errors from 10 contexts (suppressed: 37 from 2) ==18513== malloc/free: in use at exit: 2,404 bytes in 120 blocks. ==18513== malloc/free: 6,088 allocs, 5,968 frees, 636,602 bytes allocated. ==18513== For counts of detected errors, rerun with: -v ==18513== searching for pointers to 120 not-freed blocks. ==18513== checked 267,160 bytes. ==18513== ==18513== ==18513== 32 bytes in 2 blocks are still reachable in loss record 1 of 7 ==18513== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==18513== by 0x413A5B5: Curl_hash_alloc (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x411AEA7: Curl_mk_dnscache (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x413AA2D: curl_multi_init (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x8177F28: cURLManager::setup() (cURLManager.cxx:97) ==18513== by 0x8179F25: cURLManager::cURLManager() (cURLManager.cxx:39) ==18513== by 0x80CA1B1: ListServerLink::ListServerLink() (ListServerConnection.cxx:69) ==18513== by 0x8100502: publicize() (bzfs.cxx:652) ==18513== by 0x810FFC3: main (bzfs.cxx:737) ==18513== ==18513== ==18513== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 7 ==18513== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==18513== by 0x44046C6: nss_parse_service_list (in /lib/libc-2.3.6.so) ==18513== by 0x4404F27: __nss_database_lookup (in /lib/libc-2.3.6.so) ==18513== by 0x455C168: ??? ==18513== by 0x43B60F3: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.3.6.so) ==18513== by 0x43B5B6E: getpwuid (in /lib/libc-2.3.6.so) ==18513== by 0x8140793: getConfigDirName(char const*) (DirectoryNames.cxx:117) ==18513== by 0x8140979: setupString(std::string) (DirectoryNames.cxx:134) ==18513== by 0x8140B18: getRecordDirName() (new_allocator.h:62) ==18513== by 0x80DB21C: _GLOBAL__I__ZN6Record4initEv (RecordReplay.cxx:147) ==18513== by 0x818AB54: (within /usr/local/bin/bzfs) ==18513== by 0x8083884: (within /usr/local/bin/bzfs) ==18513== by 0x818AA5A: __libc_csu_init (in /usr/local/bin/bzfs) ==18513== by 0x433F26A: (below main) (in /lib/libc-2.3.6.so) ==18513== ==18513== ==18513== 40 bytes in 5 blocks are indirectly lost in loss record 3 of 7 ==18513== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==18513== by 0x4404294: __nss_lookup_function (in /lib/libc-2.3.6.so) ==18513== by 0x455C18E: ??? ==18513== by 0x43B60F3: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.3.6.so) ==18513== by 0x43B5B6E: getpwuid (in /lib/libc-2.3.6.so) ==18513== by 0x8140793: getConfigDirName(char const*) (DirectoryNames.cxx:117) ==18513== by 0x8140979: setupString(std::string) (DirectoryNames.cxx:134) ==18513== by 0x8140B18: getRecordDirName() (new_allocator.h:62) ==18513== by 0x80DB21C: _GLOBAL__I__ZN6Record4initEv (RecordReplay.cxx:147) ==18513== by 0x818AB54: (within /usr/local/bin/bzfs) ==18513== by 0x8083884: (within /usr/local/bin/bzfs) ==18513== by 0x818AA5A: __libc_csu_init (in /usr/local/bin/bzfs) ==18513== by 0x433F26A: (below main) (in /lib/libc-2.3.6.so) ==18513== ==18513== ==18513== 80 bytes in 5 blocks are indirectly lost in loss record 4 of 7 ==18513== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==18513== by 0x43F0A5B: tsearch (in /lib/libc-2.3.6.so) ==18513== by 0x440425F: __nss_lookup_function (in /lib/libc-2.3.6.so) ==18513== by 0x455C18E: ??? ==18513== by 0x43B60F3: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.3.6.so) ==18513== by 0x43B5B6E: getpwuid (in /lib/libc-2.3.6.so) ==18513== by 0x8140793: getConfigDirName(char const*) (DirectoryNames.cxx:117) ==18513== by 0x8140979: setupString(std::string) (DirectoryNames.cxx:134) ==18513== by 0x8140B18: getRecordDirName() (new_allocator.h:62) ==18513== by 0x80DB21C: _GLOBAL__I__ZN6Record4initEv (RecordReplay.cxx:147) ==18513== by 0x818AB54: (within /usr/local/bin/bzfs) ==18513== by 0x8083884: (within /usr/local/bin/bzfs) ==18513== by 0x818AA5A: __libc_csu_init (in /usr/local/bin/bzfs) ==18513== by 0x433F26A: (below main) (in /lib/libc-2.3.6.so) ==18513== ==18513== ==18513== 136 bytes in 1 blocks are still reachable in loss record 5 of 7 ==18513== at 0x401DB0E: calloc (vg_replace_malloc.c:279) ==18513== by 0x413AA1A: curl_multi_init (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x8177F28: cURLManager::setup() (cURLManager.cxx:97) ==18513== by 0x8179F25: cURLManager::cURLManager() (cURLManager.cxx:39) ==18513== by 0x80CA1B1: ListServerLink::ListServerLink() (ListServerConnection.cxx:69) ==18513== by 0x8100502: publicize() (bzfs.cxx:652) ==18513== by 0x810FFC3: main (bzfs.cxx:737) ==18513== ==18513== ==18513== 416 bytes in 2 blocks are still reachable in loss record 6 of 7 ==18513== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==18513== by 0x413A4FA: Curl_hash_init (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x413A5D1: Curl_hash_alloc (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x411AEA7: Curl_mk_dnscache (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x413AA2D: curl_multi_init (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x8177F28: cURLManager::setup() (cURLManager.cxx:97) ==18513== by 0x8179F25: cURLManager::cURLManager() (cURLManager.cxx:39) ==18513== by 0x80CA1B1: ListServerLink::ListServerLink() (ListServerConnection.cxx:69) ==18513== by 0x8100502: publicize() (bzfs.cxx:652) ==18513== by 0x810FFC3: main (bzfs.cxx:737) ==18513== ==18513== ==18513== 1,664 bytes in 104 blocks are still reachable in loss record 7 of 7 ==18513== at 0x401C6FE: malloc (vg_replace_malloc.c:149) ==18513== by 0x413A255: Curl_llist_alloc (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x413A52A: Curl_hash_init (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x413A5D1: Curl_hash_alloc (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x411AEA7: Curl_mk_dnscache (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x413AA2D: curl_multi_init (in /usr/lib/libcurl.so.3.0.0) ==18513== by 0x8177F28: cURLManager::setup() (cURLManager.cxx:97) ==18513== by 0x8179F25: cURLManager::cURLManager() (cURLManager.cxx:39) ==18513== by 0x80CA1B1: ListServerLink::ListServerLink() (ListServerConnection.cxx:69) ==18513== by 0x8100502: publicize() (bzfs.cxx:652) ==18513== by 0x810FFC3: main (bzfs.cxx:737) ==18513== ==18513== LEAK SUMMARY: ==18513== definitely lost: 36 bytes in 1 blocks. ==18513== indirectly lost: 120 bytes in 10 blocks. ==18513== possibly lost: 0 bytes in 0 blocks. ==18513== still reachable: 2,248 bytes in 109 blocks. ==18513== suppressed: 0 bytes in 0 blocks. blast@vslack:~$