View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001753 | GNUnet | util library | public | 2011-08-10 10:28 | 2011-09-15 14:19 |
| Reporter | root | Assigned To | Christian Grothoff | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | Git master | ||||
| Summary | 0001753: leak in gnunet-daemon-vpn.c | ||||
| Description | ==31546== 20 bytes in 1 blocks are definitely lost in loss record 4 of 13 ==31546== at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==31546== by 0x5249CB2: GNUNET_xmalloc_unchecked_ (common_allocation.c:132) ==31546== by 0x5249AD4: GNUNET_xmalloc_ (common_allocation.c:61) ==31546== by 0x5249E53: GNUNET_xstrdup_ (common_allocation.c:213) ==31546== by 0x5260F81: GNUNET_GETOPT_set_string (getopt_helpers.c:228) ==31546== by 0x5260810: GNUNET_GETOPT_run (getopt.c:1033) ==31546== by 0x52664A1: GNUNET_PROGRAM_run (program.c:217) ==31546== by 0x406182: main (gnunet-daemon-vpn.c:1194) | ||||
| Tags | No tags attached. | ||||
|
|
Isn't this likely a bug in PROGRAM_run? The only code belonging to vpn is the call to PROGRAM_run: static const struct GNUNET_GETOPT_CommandLineOption options[] = { GNUNET_GETOPT_OPTION_END }; return (GNUNET_OK == GNUNET_PROGRAM_run (argc, argv, "vpn", gettext_noop ("help text"), options, &run, NULL)) ? ret : 1; Is there a bug in this fragment? |
|
|
No, but that fragment would not cause this leak. I suspect it is closer to what you pass in 'options' and how you handle your globals. In any case, this one will be trivial to fix, we can look at it together on We. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-08-10 10:28 | root | New Issue | |
| 2011-09-07 13:31 | toelke | Note Added: 0004564 | |
| 2011-09-07 13:32 | toelke | Assigned To | => Christian Grothoff |
| 2011-09-07 13:32 | toelke | Status | new => feedback |
| 2011-09-07 23:37 | Christian Grothoff | Note Added: 0004568 | |
| 2011-09-14 09:24 | Christian Grothoff | Status | feedback => resolved |
| 2011-09-14 09:24 | Christian Grothoff | Resolution | open => fixed |
| 2011-09-14 09:24 | Christian Grothoff | Category | VPN service => util library |
| 2011-09-15 14:19 | Christian Grothoff | Status | resolved => closed |