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-07-26 by Eugene Filatov

On Wed, 25 Jan 2006, Emmanuel Dreyfus wrote:

> > > It sounds like an OS-speicifc mystery. Can you remind me what OS you use?
> > #uname -a
> > SunOS 5.8 Generic_108528-22 sun4u sparc SUNW,Ultra-80
> Try looking in the list archive. I'm now convinced this is the same problem
> we had before with Solaris: there is a rather low limit on the number of
> file pointers (FILE *) you can have. The limit is lower than the file
> descriptor limit, andit is hardcoded in the libc.

I hope that guys will remember solaris' problem with file
pointers whcih we discussed before :-)

We're found that greylist stops on this place (dump.c):

        if ((dump = fdopen(dumpfd, "w")) == NULL) {
                syslog(LOG_ERR, "cannot write dumpfile \"%s\": %s",
                    newdumpfile, strerror(errno));
                exit(EX_OSERR);
        }

I made a crude patch wich helps me to solve thies problem (I posted it
before).

I have another simple idea - just replace "exit()" with "return" in this
function. So greylist will just skip dumping and inform about it via
syslog but it will continue to work.

Emmanuel, what do you think about it?

> As far as I remember, the limit was specific to a given ABI. The problem
> was fixed by rebuilding with an onter ABI (was it 64 bit?)

Best Regards, 					mailto:eugenef@...
	Eugene.

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.