cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Stack smashed when linked with pthreads

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 28 Jul 2006 13:03:38 -0700

On Fri, Jul 28, 2006 at 02:44:58PM -0500, Marshall Crocker wrote:
> I have an embedded system that I have cross compiled and installed curl
> on. The command line tool works fine and I can use the curl library
> from my application. I run into a problem when I link the pthreads
> library to my multithreaded app.
>
> When I link with -lpthread and -lcurl, I get the error:
>
> stack smashing detected: Segmentation fault

How big is your stack? There are a couple places where curl uses some pretty
big stack buffers, and enabling threading might just push you over the
limit.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-07-28