cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Stack smashed when linked with pthreads

From: Marshall Crocker <marshall_at_iconux.org>
Date: Fri, 28 Jul 2006 18:05:07 -0500

No I was talking about the kernel stack. I have no idea what stack the
message is talking about but it makes more sense if it was the app stack
and not the kernel stack. I've just got to figure out where that value
is set.

Marshall

Dan Fandrich wrote:
> On Fri, Jul 28, 2006 at 05:23:28PM -0500, Marshall Crocker wrote:
>
>> From what I can tell, I am using the default 8K stacks. One of the
>> patches I include adds the option for 4K stacks but it's not selected.
>> The problem may have to do with the way uClibc implements pthreads.
>> Maybe it uses more of the stack than glibc?
>>
>> Maybe I could try reducing curl's stack. I'm only using curl for
>> sending an http request so I could disable ftp, ssl, telnet, etc.. if
>> you think that would help?
>>
>
> I thought you were talking about 8K application stacks using some kind of
> RTOS. I wouldn't expect the size of kernel stacks to affect your app.
> To which stack is the message "stack smashing detected" referring? I thought
> the app stack.
>
>
>>>> Dan
>>>>
Received on 2006-07-29