Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] Config reload SIGSEGV in the spotlight

2004-05-29 by Cyril Guibourg

manu@... writes:

> How portable is that?

Don't know. Btw, the freebsd port mechanism could add this during pre-build
stages, it has been designed for that too.

> pthread_attr_setstacksize() is in the POSIX standards, so it seems the
> way to go, but unfortunately, thread creation occurs in libmilter, so
> there is no opportunity to use pthread_attr_setstacksize(). Except if I
> use a dedicated thread for config reload.

Maybe be this is the solution. You are the architect.

> OTOH, I can't find anything about THREAD_STACK_SIZE. Is it documented in
> any standard at all?

Apparently no. I found references to it with google. The links are not
freebsd or linux centric. I would tend to think that it is present in
most implementations but it doesn't answer to your question.

> Not really. On your machine, on config file reload, it reaches 4.4MB.
> I'd say that 5MB is okay, but it might depends on the config file. It
> also depends on the libpthread implementation.

ok.

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.