View Issue Details

IDProjectCategoryView StatusLast Update
0001895GNUnettransport servicepublic2024-05-03 14:01
ReporterMatthias Wachs Assigned ToMatthias Wachs  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version0.9.0 
Summary0001895: Memory leak
Description==153494== Memcheck, a memory error detector
==153494== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==153494== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==153494== Command: gnunet-service-transport -c /home/mwachs/gnunet/gnunet-head/src/transport/test_transport_api_http_peer1.conf
==153494==
==153497== Memcheck, a memory error detector
==153497== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==153497== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==153497== Command: gnunet-service-transport -c /home/mwachs/gnunet/gnunet-head/src/transport/test_transport_api_http_peer2.conf
==153497==
==153494==
==153494== HEAP SUMMARY:
==153494== in use at exit: 5,440 bytes in 50 blocks
==153494== total heap usage: 25,772 allocs, 25,722 frees, 2,225,349 bytes allocated
==153494==
==153494== 600 bytes in 1 blocks are definitely lost in loss record 10 of 15
==153494== at 0x4C28FAC: malloc (vg_replace_malloc.c:236)
==153494== by 0x5876701: GNUNET_xmalloc_unchecked_ (common_allocation.c:140)
==153494== by 0x58762F1: GNUNET_xmalloc_ (common_allocation.c:66)
==153494== by 0x6CFC11A: ???
==153494== by 0x409049: send_with_plugin (gnunet-service-transport_neighbours.c:610)
==153494== by 0x409F0A: send_disconnect (gnunet-service-transport_neighbours.c:831)
==153494== by 0x409FC5: disconnect_neighbour (gnunet-service-transport_neighbours.c:868)
==153494== by 0x40AB5F: disconnect_all_neighbours (gnunet-service-transport_neighbours.c:1049)
==153494== by 0x58853D6: GNUNET_CONTAINER_multihashmap_iterate (container_multihashmap.c:213)
==153494== by 0x40AC4F: GST_neighbours_stop (gnunet-service-transport_neighbours.c:1080)
==153494== by 0x40374E: shutdown_task (gnunet-service-transport.c:460)
==153494== by 0x58A2BB7: run_ready (scheduler.c:684)
==153494==
==153494== LEAK SUMMARY:
==153494== definitely lost: 600 bytes in 1 blocks
==153494== indirectly lost: 0 bytes in 0 blocks
==153494== possibly lost: 0 bytes in 0 blocks
==153494== still reachable: 4,840 bytes in 49 blocks
==153494== suppressed: 0 bytes in 0 blocks
==153494== Reachable blocks (those to which a pointer was found) are not shown.
==153494== To see them, rerun with: --leak-check=full --show-reachable=yes
==153494==
==153494== For counts of detected and suppressed errors, rerun with: -v
==153494== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 8 from 4)
==153497==
==153497== HEAP SUMMARY:
==153497== in use at exit: 5,440 bytes in 50 blocks
==153497== total heap usage: 25,349 allocs, 25,299 frees, 2,228,031 bytes allocated
==153497==
==153497== 600 bytes in 1 blocks are definitely lost in loss record 10 of 15
==153497== at 0x4C28FAC: malloc (vg_replace_malloc.c:236)
==153497== by 0x5876701: GNUNET_xmalloc_unchecked_ (common_allocation.c:140)
==153497== by 0x58762F1: GNUNET_xmalloc_ (common_allocation.c:66)
==153497== by 0x6CFC11A: ???
==153497== by 0x409049: send_with_plugin (gnunet-service-transport_neighbours.c:610)
==153497== by 0x409F0A: send_disconnect (gnunet-service-transport_neighbours.c:831)
==153497== by 0x409FC5: disconnect_neighbour (gnunet-service-transport_neighbours.c:868)
==153497== by 0x40AB5F: disconnect_all_neighbours (gnunet-service-transport_neighbours.c:1049)
==153497== by 0x58853D6: GNUNET_CONTAINER_multihashmap_iterate (container_multihashmap.c:213)
==153497== by 0x40AC4F: GST_neighbours_stop (gnunet-service-transport_neighbours.c:1080)
==153497== by 0x40374E: shutdown_task (gnunet-service-transport.c:460)
==153497== by 0x58A2BB7: run_ready (scheduler.c:684)
==153497==
==153497== LEAK SUMMARY:
==153497== definitely lost: 600 bytes in 1 blocks
==153497== indirectly lost: 0 bytes in 0 blocks
==153497== possibly lost: 0 bytes in 0 blocks
==153497== still reachable: 4,840 bytes in 49 blocks
==153497== suppressed: 0 bytes in 0 blocks
==153497== Reachable blocks (those to which a pointer was found) are not shown.
==153497== To see them, rerun with: --leak-check=full --show-reachable=yes
==153497==
==153497== For counts of detected and suppressed errors, rerun with: -v
==153497== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 8 from 4)
PASS: test_transport_api_http
Steps To ReproducePASS: test_transport_api_http
TagsNo tags attached.

Activities

Matthias Wachs

2011-11-14 12:04

manager   ~0004910

Last edited: 2011-11-14 13:06

http_disconnect did not remove and call continuation for messages not send

fixed in 18127

Issue History

Date Modified Username Field Change
2011-11-10 18:33 Matthias Wachs New Issue
2011-11-10 18:33 Matthias Wachs Status new => assigned
2011-11-10 18:33 Matthias Wachs Assigned To => Matthias Wachs
2011-11-11 20:59 Christian Grothoff Product Version => 0.9.0pre4
2011-11-11 20:59 Christian Grothoff Target Version => 0.9.0
2011-11-14 12:04 Matthias Wachs Note Added: 0004910
2011-11-14 13:06 Matthias Wachs Note Edited: 0004910
2011-11-14 13:06 Matthias Wachs Status assigned => resolved
2011-11-14 13:06 Matthias Wachs Resolution open => fixed
2011-11-30 18:38 Christian Grothoff Status resolved => closed
2024-05-03 14:01 Christian Grothoff Category HTTP transport => transport service