Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] milter-greylist-2.0.2 crash

2006-01-26 by Matthias Scheler

On Thu, Jan 26, 2006 at 06:01:42PM +0200, Eugene Filatov wrote:
> I'm not very proficient in this area, but I think that it's possible to
> calculate site of each string and allocate memory per each string.

Yes, but that would be very slow because of the huge number of calls to
malloc(), free() and write().

> Do you see any ways which will _fix_ this problem under Solaris?

Yes, boot your machine with a 64Bit kernel, download the free Studio 10
compiler(*) from Sun and build "milter-greylist" with that.

> Another idea - is it possible to catch file descriptor wich less than 254
> in the beginning and keep (reserve) it for future use when we will need to
> dump?

There are still possible race conditions.  If you use fclose() which
calls close() the file descriptor is free to be reused.

	Kind regards

(*) Check whether it works with Solaris 8 first. If it doesn't build your
    own 64Bit GCC. Or just update to Solaris 10 which is faster anyway
    and comes with a 64Bit GCC.

-- 
Matthias Scheler                                  http://scheler.de/~matthias/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.