Min
Joined: 23 Feb 2003 Posts: 1840
|
Posted: Wed Mar 04, 2009 9:52 pm Post subject: Valgrind Output. |
|
|
Just pasting some valgrind output for later.
==24861== Use of uninitialised value of size 4
==24861== at 0x804C9B5: CRCCalcBytes (crc.c:60)
==24861== by 0x8073E89: serverTransportSendUDPLast (servertransport.c:274)
==24861== by 0x8072443: serverNetPlayerNumReq (servernet.c:842)
==24861== by 0x80738B6: serverNetUDPPacketArrive (servernet.c:396)
==24861== by 0x8074048: serverTransportListenUDP (servertransport.c:195)
==24861== by 0x8070DD4: serverNetMakePosPackets (servernet.c:1080)
==24861== by 0x8068203: serverGameTimer (servermain.c:353)
==24861== by 0x458A01E: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x458A2EB: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x45D9525: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x4589C4A: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x45D696C: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861==
==24861== Use of uninitialised value of size 4
==24861== at 0x804C9D4: CRCCalcBytes (crc.c:64)
==24861== by 0x8073E89: serverTransportSendUDPLast (servertransport.c:274)
==24861== by 0x8072443: serverNetPlayerNumReq (servernet.c:842)
==24861== by 0x80738B6: serverNetUDPPacketArrive (servernet.c:396)
==24861== by 0x8074048: serverTransportListenUDP (servertransport.c:195)
==24861== by 0x8070DD4: serverNetMakePosPackets (servernet.c:1080)
==24861== by 0x8068203: serverGameTimer (servermain.c:353)
==24861== by 0x458A01E: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x458A2EB: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x45D9525: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x4589C4A: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x45D696C: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861==
==24861== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==24861== at 0x46F56CE: sendto (in /emul/ia32-linux/lib/libc-2.3.6.so)
==24861== by 0x8072443: serverNetPlayerNumReq (servernet.c:842)
==24861== by 0x80738B6: serverNetUDPPacketArrive (servernet.c:396)
==24861== by 0x8074048: serverTransportListenUDP (servertransport.c:195)
==24861== by 0x8070DD4: serverNetMakePosPackets (servernet.c:1080)
==24861== by 0x8068203: serverGameTimer (servermain.c:353)
==24861== by 0x458A01E: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x458A2EB: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x45D9525: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x4589C4A: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x45D696C: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x4457FBB: start_thread (in /emul/ia32-linux/lib/libpthread-2.3.6.so)
==24861==
==24861== ERROR SUMMARY: 68 errors from 16 contexts (suppressed: 0 from 0)
==24861== malloc/free: in use at exit: 2,236 bytes in 26 blocks.
==24861== malloc/free: 42,868 allocs, 42,842 frees, 10,383,209 bytes allocated.
==24861== For counts of detected errors, rerun with: -v
==24861== searching for pointers to 26 not-freed blocks.
==24861== checked 17,448,036 bytes.
==24861==
==24861== Thread 1:
==24861==
==24861== 24 bytes in 1 blocks are definitely lost in loss record 1 of 15
==24861== at 0x43DE367: malloc (vg_replace_malloc.c:149)
==24861== by 0x80529C5: lgmCreate (lgm.c:76)
==24861== by 0x80667AE: serverCorePlayerJoin (servercore.c:625)
==24861== by 0x80721FD: serverNetPlayerNumReq (servernet.c:812)
==24861== by 0x80738B6: serverNetUDPPacketArrive (servernet.c:396)
==24861== by 0x8074048: serverTransportListenUDP (servertransport.c:195)
==24861== by 0x8070DD4: serverNetMakePosPackets (servernet.c:1080)
==24861== by 0x8068203: serverGameTimer (servermain.c:353)
==24861== by 0x458A01E: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x458A2EB: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x45D9525: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x4589C4A: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861==
==24861==
==24861== 136 bytes in 2 blocks are possibly lost in loss record 10 of 15
==24861== at 0x43DD6C8: calloc (vg_replace_malloc.c:279)
==24861== by 0x410F5F5: _dl_allocate_tls (in /emul/ia32-linux/lib/ld-2.3.6.so)
==24861== by 0x445855F: pthread_create@@GLIBC_2.1 (in /emul/ia32-linux/lib/libpthread-2.3.6.so)
==24861== by 0x45D6912: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x4589F05: SDL_CreateThread (in /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x45D9420: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x458A574: (within /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x458054D: SDL_InitSubSystem (in /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x4580616: SDL_Init (in /emul/ia32-linux/usr/lib/libSDL-1.2.so.0.11.0)
==24861== by 0x806911D: main (servermain.c:677)
==24861==
==24861==
==24861== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 11 of 15
==24861== at 0x43DE367: malloc (vg_replace_malloc.c:149)
==24861== by 0x4705150: (within /emul/ia32-linux/lib/libc-2.3.6.so)
==24861== by 0x470580F: __nss_database_lookup (in /emul/ia32-linux/lib/libc-2.3.6.so)
==24861== by 0x75230CB: ???
==24861== by 0x75241E4: ???
==24861== by 0x46B5A82: getpwuid_r (in /emul/ia32-linux/lib/libc-2.3.6.so)
==24861== by 0x46B5489: getpwuid (in /emul/ia32-linux/lib/libc-2.3.6.so)
==24861== by 0x80788F6: preferencesGetPreferenceFile (preferences.c:196)
==24861== by 0x80785D7: httpCreate (http.c:81)
==24861== by 0x8077A91: winbolonetCreateServer (winbolonet.c:87)
==24861== by 0x8070822: main (servermain.c:735)
==24861==
==24861== LEAK SUMMARY:
==24861== definitely lost: 60 bytes in 2 blocks.
==24861== indirectly lost: 120 bytes in 10 blocks.
==24861== possibly lost: 136 bytes in 2 blocks.
==24861== still reachable: 1,920 bytes in 12 blocks.
==24861== suppressed: 0 bytes in 0 blocks.
==24861== Reachable blocks (those to which a pointer was found) are not shown.
==24861== To see them, rerun with: --show-reachable=yes |
|