Hola. Mi problema de memoria es el siguiente: Valgrind
me arroja que hay un free que no estoy haciendo, pero
yendo a la causa, es dentro de pthread.
El tema es que en mi aplicación cliente no tengo
ningún inconveniente.
Acá está el código:
[EMAIL PROTECTED]:~/workspace/tp4-7542_Servidor/Debug$
valgrind --leak-check=full ./tp4-7542_Servidor 10080
==6938== Memcheck, a memory error detector.
==6938== Copyright (C) 2002-2006, and GNU GPL'd, by
Julian Seward et al.
==6938== Using LibVEX rev 1658, a library for dynamic
binary translation.
==6938== Copyright (C) 2004-2006, and GNU GPL'd, by
OpenWorks LLP.
==6938== Using valgrind-3.2.1-Debian, a dynamic binary
instrumentation framework.
==6938== Copyright (C) 2000-2006, and GNU GPL'd, by
Julian Seward et al.
==6938== For more details, rerun with: -v
==6938==
==6938==
==6938== ERROR SUMMARY: 0 errors from 0 contexts
(suppressed: 19 from 1)
==6938== malloc/free: in use at exit: 72 bytes in 1
blocks.
==6938== malloc/free: 67 allocs, 66 frees, 1,119 bytes
allocated.
==6938== For counts of detected errors, rerun with: -v
==6938== searching for pointers to 1 not-freed blocks.
==6938== checked 8,513,220 bytes.
==6938==
==6938== 72 bytes in 1 blocks are possibly lost in
loss record 1 of 1
==6938==    at 0x401B6CA: calloc
(vg_replace_malloc.c:279)
==6938==    by 0x400E188: (within /lib/ld- 2.3.6.so)
==6938==    by 0x400E24B: _dl_allocate_tls (in
/lib/ld-2.3.6.so)
==6938==    by 0x403881F: pthread_create@@GLIBC_2.1
(in /lib/tls/i686/cmov/libpthread- 2.3.6.so)
==6938==    by 0x804D624: Thread::run() (Thread.cpp:8)
==6938==    by 0x804C2E4: ServidorCalculos::main()
(ServidorCalculos.cpp:28)
==6938==    by 0x804D81A: main (main.cpp :55)
==6938==
==6938== LEAK SUMMARY:
==6938==    definitely lost: 0 bytes in 0 blocks.
==6938==      possibly lost: 72 bytes in 1 blocks.
==6938==    still reachable: 0 bytes in 0 blocks.
==6938==         suppressed: 0 bytes in 0 blocks.
==6938== Reachable blocks (those to which a pointer
was found) are not shown.
==6938== To see them, rerun with: --show-reachable=yes
[EMAIL PROTECTED]:~/workspace/tp4-7542_Servidor/Debug$
  

Les agradecería, si pueden orientarme sobre cual puede
ser el problema (si es que lo hay).

Gracias


      __________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 

_______________________________________________
Lista de correo Programacion.
[email protected]
http://listas.fi.uba.ar/mailman/listinfo/programacion

Responder a