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 Matthieu Herrb

Cyril Guibourg wrote:
> manu@... writes:
> 
> 
>>Now the problem is spotted, anyone knows the fix? Is there some special
>>function to call in order to book a bigger stack for a thread?
> 
> 
> Please ignore my previous silly answer :-[
> 
> I do have very good news !!!!
> 
> Check this:
> 
> $ cat x.c
> #include <stdio.h>
> 
> #define THREAD_STACK_SIZE 5*1024*1024

I fail to see how this define can affect anyting in you program.
> 
> void func(void);
> 
> int main(void) {
>   static char buf[5 * 1024 * 1024];      /* 5 MB */

'static' variables are allocated in bss, not on the stack.


-- 
					Matthieu

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.