Re: [Dspam-devel] Problem with cssstat

2010-11-13 Thread Stevan Bajić
On Sat, 13 Nov 2010 16:23:18 +0100 Benoit Izac wrote: > Stevan Bajić wrote: > > Yes, please as it avoids a segmentation fault. > >>> > >>> Those two lines just avoid one of those segmentation faults. There > >>> are others which are still not fixed with those two lines. > >> > >> Which (ass

Re: [Dspam-devel] Problem with cssstat

2010-11-13 Thread Benoit Izac
Stevan Bajić wrote: Yes, please as it avoids a segmentation fault. >>> >>> Those two lines just avoid one of those segmentation faults. There >>> are others which are still not fixed with those two lines. >> >> Which (assuming that I stay on the same machine so not 32/64 bits or >> endianness

Re: [Dspam-devel] Problem with cssstat

2010-11-13 Thread Benoit Izac
Stevan Bajić wrote: >>> On my local 32/64 bit safe version I use: >>>header = (hash_drv_header_t)((uintptr_t)map.addr + filepos); >> >> #include is not present in the git version I have. > > Ahh. Yes. It's not in GIT on Source Forge. I started a while a go with > a fork of DSPAM 3.9.1 RC1

Re: [Dspam-devel] Problem with cssstat

2010-11-13 Thread Stevan Bajić
On Sat, 13 Nov 2010 14:49:53 +0100 Benoit Izac wrote: > Stevan Bajić wrote: > > >>> On my local 32/64 bit safe version I use: > >>>header = (hash_drv_header_t)((uintptr_t)map.addr + filepos); > >> > >> #include is not present in the git version I have. > > > > Ahh. Yes. It's not in GIT

Re: [Dspam-devel] Problem with cssstat

2010-11-11 Thread Stevan Bajić
On Fri, 12 Nov 2010 02:11:56 +0100 Benoit Izac wrote: > Stevan Bajić wrote: > > > On my local 32/64 bit safe version I use: > >header = (hash_drv_header_t)((uintptr_t)map.addr + filepos); > > #include is not present in the git version I have. > Ahh. Yes. It's not in GIT on Source Forg

Re: [Dspam-devel] Problem with cssstat

2010-11-11 Thread Benoit Izac
Stevan Bajić wrote: > On my local 32/64 bit safe version I use: >header = (hash_drv_header_t)((uintptr_t)map.addr + filepos); #include is not present in the git version I have. > I could commit your code if you want me to do so. Yes, please as it avoids a segmentation fault. Regards.

Re: [Dspam-devel] Problem with cssstat

2010-11-11 Thread Stevan Bajić
On Fri, 12 Nov 2010 00:20:31 +0100 Benoit Izac wrote: > I wrote : > > > patch attached. > > I've got a better one which suppress the warning compilation. > > [dspam.patch text/x-patch (817B)] > diff --git a/src/tools.hash_drv/cssstat.c b/src/tools.hash_drv/cssstat.c > index dcf7ae2..031130b 1

Re: [Dspam-devel] Problem with cssstat

2010-11-11 Thread Benoit Izac
I wrote : > patch attached. I've got a better one which suppress the warning compilation. diff --git a/src/tools.hash_drv/cssstat.c b/src/tools.hash_drv/cssstat.c index dcf7ae2..031130b 100644 --- a/src/tools.hash_drv/cssstat.c +++ b/src/tools.hash_drv/cssstat.c @@ -137,8 +137,7 @@ int cssstat(c

[Dspam-devel] Problem with cssstat

2010-11-07 Thread Benoit Izac
Hi! I'm a new dspam user. I've read a bit the mailing list archive and I've seen there is a problem with cssstat which segfault. I think I found the problem which has been introduced by commit f0dad778a48237e801d52f958c1eb1398893e52e. - rec = map.addr+filepos; + rec = map.addr; +