weissi/pm-lab-tools — Issue #1: Valgrind zeigt Bug
Author: weissi
Created: 2011-12-29 19:43:35+00:00
State: open

weiss@i30pm1:~/pm-lab-tools> valgrind --max-stackframe=2880124 build/daemon ==13296== Memcheck, a memory error detector
==13296== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==13296== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==13296== Command: build/daemon
==13296==
NI: read successful, ts = 1000000000
NI: read successful, ts = 2000000000
handling conn fd 4
handling conn fd 5
Handler thread accepted 4
NOTIFIED READ BARRIER
Handler thread accepted 5
NOTIFIED READ BARRIER
handling conn fd 6
[90143600] wait_data_available: 0s
[106929008] wait_data_available: 0s
Handler thread accepted 6
NOTIFIED READ BARRIER
Buffer 0x49f71d0 has now 1/256 element(s) starting at 0x49f71d0 (offset = 0)
handling conn fd 7
==13296== Thread 4:
==13296== Syscall param write(buf) points to uninitialised byte(s)
==13296== at 0x407908B: ??? (in /lib/libpthread-2.11.3.so)
==13296== by 0x8049AB6: write_dataset (handler.c:111)
==13296== by 0x8049F01: write_buf_element (handler.c:209)
==13296== by 0x804A042: handler_sender_main (handler.c:251)
==13296== by 0x4071B04: start_thread (in /lib/libpthread-2.11.3.so)
==13296== by 0x415BD1D: clone (in /lib/libc-2.11.3.so)
==13296== Address 0x8ce2c66 is 14 bytes inside a block of size 270,018 alloc'd
==13296== at 0x402911D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==13296== by 0x8049F01: write_buf_element (handler.c:209)
==13296== by 0x804A042: handler_sender_main (handler.c:251)
==13296== by 0x4071B04: start_thread (in /lib/libpthread-2.11.3.so)
==13296== by 0x415BD1D: clone (in /lib/libc-2.11.3.so)
==13296==
[123714416] wait_data_available: 0s
Buffer 0x49f8ba8 has now 0/256 element(s) starting at 0x49f8bc0 (offset = 1)
handling conn fd 8
NOTIFIED READ BARRIER
Handler thread accepted 7
NOTIFIED READ BARRIER
NOTIFIED READ BARRIER
Buffer 0x49fa580 has now 0/256 element(s) starting at 0x49fa598 (offset = 1)
Handler thread accepted 8
NOTIFIED READ BARRIER
[158395248] wait_data_available: 0s
NOTIFIED READ BARRIER
[179374960] wait_data_available: 0s
Buffer 0x4da58d8 has now 1/256 element(s) starting at 0x4da58d8 (offset = 0)
NOTIFIED READ BARRIER
Buffer 0x8d66a48 has now 0/256 element(s) starting at 0x8d66a60 (offset = 1)
NOTIFIED READ BARRIER
NI: read successful, ts = 3000000000
[179374960] wait_data_available: 1s
[106929008] wait_data_available: 1s
[123714416] wait_data_available: 1s
[90143600] wait_data_available: 1s
[158395248] wait_data_available: 0s
Buffer 0x49f8ba8 has now 0/256 element(s) starting at 0x49f8bd8 (offset = 2)
NOTIFIED READ BARRIER
Buffer 0x4da58d8 has now 0/256 element(s) starting at 0x4da5908 (offset = 2)
NOTIFIED READ BARRIER
Buffer 0x49fa580 has now 0/256 element(s) starting at 0x49fa5b0 (offset = 2)
NOTIFIED READ BARRIER
Buffer 0x8d66a48 has now 0/256 element(s) starting at 0x8d66a78 (offset = 2)
NOTIFIED READ BARRIER
Buffer 0x49f71d0 has now 0/256 element(s) starting at 0x49f7200 (offset = 2)
NOTIFIED READ BARRIER
NI: read successful, ts = 4000000000
[179374960] wait_data_available: 1s
[123714416] wait_data_available: 1s
[106929008] wait_data_available: 1s
[158395248] wait_data_available: 1s
Buffer 0x49f8ba8 has now 1/256 element(s) starting at 0x49f8bd8 (offset = 2)
[90143600] wait_data_available: 1s
Buffer 0x49fa580 has now 0/256 element(s) starting at 0x49fa5c8 (offset = 3)
NOTIFIED READ BARRIER
NOTIFIED READ BARRIER
Buffer 0x49f71d0 has now 0/256 element(s) starting at 0x49f7218 (offset = 3)
NOTIFIED READ BARRIER
Buffer 0x8d66a48 has now 0/256 element(s) starting at 0x8d66a90 (offset = 3)
Buffer 0x4da58d8 has now 0/256 element(s) starting at 0x4da5920 (offset = 3)
NOTIFIED READ BARRIER
NOTIFIED READ BARRIER
^CCtrl+C caught, exiting...
[123714416] wait_data_available: 0s
[179374960] wait_data_available: 0s
NOTIFIED READ BARRIER
NOTIFIED READ BARRIER
[158395248] wait_data_available: 0s
NOTIFIED READ BARRIER
[90143600] wait_data_available: 0s
[106929008] wait_data_available: 0s
NOTIFIED READ BARRIER
NOTIFIED READ BARRIER
NI: read successful, ts = 5000000000
server socket closed
==13296==
==13296== HEAP SUMMARY:
==13296== in use at exit: 680 bytes in 5 blocks
==13296== total heap usage: 66 allocs, 61 frees, 47,282,526 bytes allocated
==13296==
==13296== LEAK SUMMARY:
==13296== definitely lost: 0 bytes in 0 blocks
==13296== indirectly lost: 0 bytes in 0 blocks
==13296== possibly lost: 680 bytes in 5 blocks
==13296== still reachable: 0 bytes in 0 blocks
==13296== suppressed: 0 bytes in 0 blocks
==13296== Rerun with --leak-check=full to see details of leaked memory
==13296==
==13296== For counts of detected and suppressed errors, rerun with: -v
==13296== Use --track-origins=yes to see where uninitialised values come from
==13296== ERROR SUMMARY: 15 errors from 1 contexts (suppressed: 5 from 5)