Ticket #1 (closed defect: wontfix)

Opened 1 month ago

Last modified 1 month ago

memory leaks in swish-e

Reported by: joshr Assigned to: somebody
Priority: minor Component: swish
Version: Keywords:
Cc:

Description (Last modified by karpet)

Memory leaks in swish-e as detected by valgrind:

% perl t/025-valgrind.t
1..1
==7168== Memcheck, a memory error detector.
==7168== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==7168== Using LibVEX rev 1575, a library for dynamic binary translation.
==7168== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==7168== Using valgrind-3.1.1, a dynamic binary instrumentation framework.
==7168== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==7168== For more details, rerun with: -v
==7168== 
Indexing Data Source: "File-System"
Indexing "data/C040-swishedocs-html"
Removing very common words...
no words removed.
Writing main index...
Sorting words ...
Sorting 3,628 words alphabetically
Writing header ...
Writing index entries ...
  Writing word text: ...
[ Uninitialized memory use warning moved to separate bug ]
3,628 unique words indexed.
5 properties sorted.                                              
18 files indexed.  751,711 total bytes.  76,532 total words.
Elapsed time: 00:00:18 CPU time: 00:00:17
Indexing done!
==7168== 
==7168== ERROR SUMMARY: 102 errors from 1 contexts (suppressed: 20 from 1)
==7168== malloc/free: in use at exit: 2,470 bytes in 20 blocks.
==7168== malloc/free: 13,376 allocs, 13,356 frees, 6,658,191 bytes allocated.
==7168== For counts of detected errors, rerun with: -v
==7168== searching for pointers to 20 not-freed blocks.
==7168== checked 469,840 bytes.
==7168== 
==7168== 
==7168== 48 bytes in 2 blocks are still reachable in loss record 1 of 5
==7168==    at 0x4004405: malloc (vg_replace_malloc.c:149)
==7168==    by 0xA965EE: xmlNewMutex (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xA96296: xmlInitGlobals (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xA8D64A: xmlInitParser (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xAB6BB7: htmlCreatePushParserCtxt (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0x805E215: parse_chunks (parser.c:339)
==7168==    by 0x805E364: parse_HTML (parser.c:268)
==7168==    by 0x8054534: do_index_file (index.c:1074)
==7168==    by 0x8050757: printfile (fs.c:619)
==7168==    by 0x8050974: indexadir (fs.c:659)
==7168==    by 0x8057C6F: indexpath (file.c:241)
==7168==    by 0x804D163: main (swish.c:1365)
==7168== 
==7168== 
==7168== 62 bytes in 8 blocks are still reachable in loss record 2 of 5
==7168==    at 0x4004405: malloc (vg_replace_malloc.c:149)
==7168==    by 0xB30D88: xmlStrndup (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xB30DF3: xmlStrdup (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xA84D92: xmlNewCharEncodingHandler (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xA84B5B: xmlInitCharEncodingHandlers (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xA8D659: xmlInitParser (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xAB6BB7: htmlCreatePushParserCtxt (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0x805E215: parse_chunks (parser.c:339)
==7168==    by 0x805E364: parse_HTML (parser.c:268)
==7168==    by 0x8054534: do_index_file (index.c:1074)
==7168==    by 0x8050757: printfile (fs.c:619)
==7168==    by 0x8050974: indexadir (fs.c:659)
==7168== 
==7168== 
==7168== 160 bytes in 8 blocks are still reachable in loss record 3 of 5
==7168==    at 0x4004405: malloc (vg_replace_malloc.c:149)
==7168==    by 0xA84DA7: xmlNewCharEncodingHandler (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xA84B5B: xmlInitCharEncodingHandlers (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xA8D659: xmlInitParser (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xAB6BB7: htmlCreatePushParserCtxt (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0x805E215: parse_chunks (parser.c:339)
==7168==    by 0x805E364: parse_HTML (parser.c:268)
==7168==    by 0x8054534: do_index_file (index.c:1074)
==7168==    by 0x8050757: printfile (fs.c:619)
==7168==    by 0x8050974: indexadir (fs.c:659)
==7168==    by 0x8057C6F: indexpath (file.c:241)
==7168==    by 0x804D163: main (swish.c:1365)
==7168== 
==7168== 
==7168== 200 bytes in 1 blocks are still reachable in loss record 4 of 5
==7168==    at 0x4004405: malloc (vg_replace_malloc.c:149)
==7168==    by 0xA84B1B: xmlInitCharEncodingHandlers (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xA8D659: xmlInitParser (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0xAB6BB7: htmlCreatePushParserCtxt (in /usr/lib/libxml2.so.2.6.16)
==7168==    by 0x805E215: parse_chunks (parser.c:339)
==7168==    by 0x805E364: parse_HTML (parser.c:268)
==7168==    by 0x8054534: do_index_file (index.c:1074)
==7168==    by 0x8050757: printfile (fs.c:619)
==7168==    by 0x8050974: indexadir (fs.c:659)
==7168==    by 0x8057C6F: indexpath (file.c:241)
==7168==    by 0x804D163: main (swish.c:1365)
==7168==    by 0x4B0DE2: (below main) (in /lib/tls/libc-2.3.4.so)
==7168== 
==7168== 
==7168== 2,000 bytes in 1 blocks are definitely lost in loss record 5 of 5
==7168==    at 0x4004405: malloc (vg_replace_malloc.c:149)
==7168==    by 0x402735D: emalloc (mem.c:93)
==7168==    by 0x8059742: getdefaults (parse_conffile.c:1711)
==7168==    by 0x804D04D: main (swish.c:1308)
==7168==    by 0x4B0DE2: (below main) (in /lib/tls/libc-2.3.4.so)
==7168==    by 0x804BE3C: (within /usr/local/bin/swish-e)
==7168== 
==7168== LEAK SUMMARY:
==7168==    definitely lost: 2,000 bytes in 1 blocks.
==7168==      possibly lost: 0 bytes in 0 blocks.
==7168==    still reachable: 470 bytes in 19 blocks.
==7168==         suppressed: 0 bytes in 0 blocks.
ok 1 - valgrind indexing data/C040-swishedocs-html

Change History

04/14/08 14:15:18 changed by karpet

  • description changed.

04/17/08 15:11:56 changed by joshr

  • component changed from component1 to swish.