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.
--
MatthieuMessage
Re: [milter-greylist] Config reload SIGSEGV in the spotlight
2004-05-29 by Matthieu Herrb