realloc problem

David Relson relson at osagesoftware.com
Thu Oct 20 01:05:39 CEST 2005


Hi Clint,

Interesting!  With my normal config file, the message scores fine.
With no config file, I get the segmentation fault.  As you can see
below, the replace-nonascii-characters option makes a difference.

Time to do some debugging ...

Regards,

David

### normal bogofilter.cf ###

[relson at osage src]$ bogofilter -vv -I testmsg
X-Bogosity: Ham, tests=bogofilter, spamicity=0.350300, version=0.96.2

#  int  cnt   prob  spamicity histogram
# 0.00   12 0.027357 0.012918 ############
# 0.10   11 0.156385 0.071204 ###########
# 0.20    0 0.000000 0.071204 
# 0.30    0 0.000000 0.071204 
# 0.40    0 0.000000 0.071204 
# 0.50    0 0.000000 0.071204 
# 0.60    0 0.000000 0.071204 
# 0.70    0 0.000000 0.071204 
# 0.80    1 0.838522 0.119527 #
# 0.90    6 0.930323 0.347643 ######

### no bogofilter.cf ###

[relson at osage src]$ bogofilter -C -vv -I testmsg
Segmentation fault (core dumped)


### with replace-nonascii-characters ###

[relson at osage src]$ bogofilter -C -vv --replace-nonascii-characters=y -I testmsg
X-Bogosity: Ham, tests=bogofilter, spamicity=0.206693, version=0.96.2
   int  cnt   prob  spamicity histogram
  0.00   12 0.027399 0.019075 ############
  0.10    0 0.000000 0.019075 
  0.20    0 0.000000 0.019075 
  0.30    0 0.000000 0.019075 
  0.40    0 0.000000 0.019075 
  0.50    0 0.000000 0.019075 
  0.60    0 0.000000 0.019075 
  0.70    0 0.000000 0.019075 
  0.80    0 0.000000 0.019075 
  0.90    6 0.930379 0.387793 ######


On Wed, 19 Oct 2005 18:50:50 -0400
Clint Adams wrote:

> > Looks like flex's buffer got nuked and that blew a hole in the free
> > memory list.  'Tis an interesting situation and one I can't reproduce.
> > Can you gzip and email a copy of /tmp/testmsg to me?
> 
> Sent.
> _______________________________________________
> Bogofilter-dev mailing list
> Bogofilter-dev at bogofilter.org
> http://www.bogofilter.org/mailman/listinfo/bogofilter-dev



More information about the bogofilter-dev mailing list