| Summary: | False Negative on memory leak | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Darshit Shah <darnir> |
| Component: | memcheck | Assignee: | Philippe Waroquiers <philippe.waroquiers> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | darnir, ivosh, philippe.waroquiers |
| Priority: | NOR | ||
| Version First Reported In: | 3.12 SVN | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Darshit Shah
2017-03-30 23:23:47 UTC
Thank you for the report. Please start with providing a simple reproducer. File tests/test-metalink.c has around 300 lines and file tests/libtest.c almost 1000 lines. If you can squash it down to lets say 50-100, then it would great! Yes, a small reproducer would be nice. Alternatively, you could use gdb + vgdb and investigate why valgrind believes the leaked memory is still reachable, using the monitor commands leak_check block_list who_points_at (In reply to Darshit Shah from comment #0) > I would love to help you debug this issue and create a minimal example / dig > into valgrind, but as of now I have no idea where to start. ... > If there is any other information I can provide > / debug, do let me know. Any news/feedback following suggestions in comment 2 and comment 3 ? Thanks Hi Sorry for the delayed response. While trying to create a minimum working example for the bug, I realised that the issue was in how we were using valgrind and not in valgrind itself. The leak was indeed there, but the original memory was allocated by a part of the program which wasn't run under valgrind. Sorry for the noise! |