View Revisions: Issue #2579
[ Back to Issue ]
Summary | 0002579: Memory leak in a cache back-end | ||
---|---|---|---|
Revision | 2017-12-06 14:38 by Felix S. | ||
Steps To Reproduce | This problem should be possible to detect with any memory leak detection tool. (The particular tool used to write this report was memtrail[0], chosen mainly for its low instrumentation overhead.) [0]: <https://github.com/jrfonseca/memtrail/> |
||
Revision | 2018-01-20 16:20 by John-Mark Bell | ||
Steps To Reproduce | This problem should be possible to detect with any memory leak detection tool. (The particular tool used to write this report was memtrail[0], chosen mainly for its low instrumentation overhead.) [0]: <https://github.com/jrfonseca/memtrail/> |
||
Revision | 2017-12-06 14:38 by Felix S. | ||
Additional Information | Fragment of the output of memtrail report: leaked: 9,425,771B -> 64.22% (6,053,352B): calloc | -> 27.81% (2,621,440B): read_entries [./netsurf/content/fs_backing_store.c:1230] | | -> 27.81% (2,621,440B): hlcache_initialise [./netsurf/content/hlcache.c:535] | | -> 27.81% (2,621,440B): netsurf_init [./netsurf/desktop/netsurf.c:226] | | -> 27.81% (2,621,440B): main [./netsurf/frontends/gtk/gui.c:1178] | | -> 27.81% (2,621,440B): __libc_start_main [/build/glibc-mcIJEN/glibc-2.25/csu/../csu/libc-start.c:297] | | -> 27.81% (2,621,440B): _start | | | -> 22.25% (2,097,152B): build_entrymap [./netsurf/content/fs_backing_store.c:1148] | | -> 22.25% (2,097,152B): hlcache_initialise [./netsurf/content/hlcache.c:535] | | -> 22.25% (2,097,152B): netsurf_init [./netsurf/desktop/netsurf.c:226] | | -> 22.25% (2,097,152B): main [./netsurf/frontends/gtk/gui.c:1178] | | -> 22.25% (2,097,152B): __libc_start_main [/build/glibc-mcIJEN/glibc-2.25/csu/../csu/libc-start.c:297] | | -> 22.25% (2,097,152B): _start | | ... Attached patch seems to fix the problem. |
||
Revision | 2018-01-20 16:20 by John-Mark Bell | ||
Additional Information | Fragment of the output of memtrail report: leaked: 9,425,771B -> 64.22% (6,053,352B): calloc | -> 27.81% (2,621,440B): read_entries [./netsurf/content/fs_backing_store.c:1230] | | -> 27.81% (2,621,440B): hlcache_initialise [./netsurf/content/hlcache.c:535] | | -> 27.81% (2,621,440B): netsurf_init [./netsurf/desktop/netsurf.c:226] | | -> 27.81% (2,621,440B): main [./netsurf/frontends/gtk/gui.c:1178] | | -> 27.81% (2,621,440B): __libc_start_main [/build/glibc-mcIJEN/glibc-2.25/csu/../csu/libc-start.c:297] | | -> 27.81% (2,621,440B): _start | | | -> 22.25% (2,097,152B): build_entrymap [./netsurf/content/fs_backing_store.c:1148] | | -> 22.25% (2,097,152B): hlcache_initialise [./netsurf/content/hlcache.c:535] | | -> 22.25% (2,097,152B): netsurf_init [./netsurf/desktop/netsurf.c:226] | | -> 22.25% (2,097,152B): main [./netsurf/frontends/gtk/gui.c:1178] | | -> 22.25% (2,097,152B): __libc_start_main [/build/glibc-mcIJEN/glibc-2.25/csu/../csu/libc-start.c:297] | | -> 22.25% (2,097,152B): _start | | ... Attached patch seems to fix the problem. |