valgrind bug in collect_words?

Matthias Andree matthias.andree at gmx.de
Fri Oct 4 03:24:22 CEST 2002


Hi,

Valgrind 1.0.3 is complaining, but I cannot track this down at the
moment:

==19742== 5 errors in context 1 of 1:
==19742== Conditional jump or move depends on uninitialised value(s)
==19742==    at 0x8048DDC: collect_words (bogofilter.c:203)
==19742==    by 0x80498A1: bogofilter (bogofilter.c:542)
==19742==    by 0x8049C02: main (main.c:203)
==19742==    by 0x4032D7EE: __libc_start_main (in /lib/libc.so.6)
==19742==    by 0x8048C51: (within /home/emma/bogofilter/bogofilter)
==19742== IN SUMMARY: 5 errors from 1 contexts (suppressed: 0 from 0)

code:

200           // in order to be able to cap frequencies.
201           for(n = wordhash_first(h); n != NULL; n = wordhash_next(h)){
202             w = n->buf;
203             if (w->msg_freq > MAX_REPEATS)
204               w->msg_freq = MAX_REPEATS;
205       
206             w->freq += w->msg_freq;

gcc 3.2 intel here, the whole lot was compiled without optimization.

-- 
Matthias Andree



More information about the bogofilter-dev mailing list