View Issue Details

IDProjectCategoryView StatusLast Update
0005769Talermechant backendpublic2024-01-12 14:04
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version0.6Fixed in Version0.6 
Summary0005769: memory leaks in test
DescriptionI've looked into this one, but it was not obvious where it came from. Could be a reference-counting issue for the json_t.

==84582== 835 (61 direct, 774 indirect) bytes in 1 blocks are definitely lost in loss record 27 of 30
==84582== at 0x483577F: malloc (vg_replace_malloc.c:299)
==84582== by 0x4AF3AF8: ??? (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF9036: json_object_set_new_nocheck (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF50FD: ??? (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF5255: ??? (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF50E6: ??? (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF5395: ??? (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF5638: json_loadb (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4A56682: download_get_result (curl.c:467)
==84582== by 0x4A56AEA: GNUNET_CURL_perform2 (curl.c:542)
==84582== by 0x4A571B3: context_task (curl_reschedule.c:148)
==84582== by 0x4AC446D: GNUNET_SCHEDULER_do_work (scheduler.c:2132)
==84582==
==84582== 1,043 (80 direct, 963 indirect) bytes in 2 blocks are definitely lost in loss record 28 of 30
==84582== at 0x483577F: malloc (vg_replace_malloc.c:299)
==84582== by 0x4AF869A: json_array (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF51DC: ??? (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF50E6: ??? (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF5395: ??? (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4AF5638: json_loadb (in /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1)
==84582== by 0x4A56682: download_get_result (curl.c:467)
==84582== by 0x4A56AEA: GNUNET_CURL_perform2 (curl.c:542)
==84582== by 0x4A571B3: context_task (curl_reschedule.c:148)
==84582== by 0x4AC446D: GNUNET_SCHEDULER_do_work (scheduler.c:2132)
==84582== by 0x4AC52F4: select_loop (scheduler.c:2431)
==84582== by 0x4ABF90E: GNUNET_SCHEDULER_run (scheduler.c:732)
Steps To Reproduce$ valgrind --trace-children=yes --leak-check=yes .libs/test_merchant_api_twisted
TagsNo tags attached.

Activities

Christian Grothoff

2019-09-16 21:52

manager   ~0014908

After re-running this ,it seems I was confused and the leak is in the test case, not in twister.

Christian Grothoff

2019-09-16 22:13

manager   ~0014909

Fixed in 2772096..2a84699

Issue History

Date Modified Username Field Change
2019-06-18 17:17 Christian Grothoff New Issue
2019-06-18 17:17 Christian Grothoff Status new => assigned
2019-06-18 17:17 Christian Grothoff Assigned To => Marcello Stanisci
2019-09-16 09:28 Christian Grothoff Assigned To Marcello Stanisci => Christian Grothoff
2019-09-16 21:52 Christian Grothoff Note Added: 0014908
2019-09-16 21:52 Christian Grothoff Category twister => merchant backend API (C)
2019-09-16 22:13 Christian Grothoff Note Added: 0014909
2019-09-16 22:14 Christian Grothoff Status assigned => resolved
2019-09-16 22:14 Christian Grothoff Resolution open => fixed
2019-09-16 22:14 Christian Grothoff Fixed in Version => 0.6
2019-09-16 22:14 Christian Grothoff Target Version 0.7.1 => 0.6
2019-12-20 19:11 Christian Grothoff Status resolved => closed
2024-01-12 14:04 Christian Grothoff Category merchant backend API (C) => mechant backend