curl-library
Re: pipelining with proxy hangs
Date: Wed, 17 Sep 2008 10:20:57 -0700
On Tue, Sep 16, 2008 at 06:01:43PM -0700, Ramesh Nagul wrote:
> I have built libcurl on OS X using Xcode into a universal binary (32-bit). I
> have a class that wraps the calls to libcurl and when I make instance of
> that class and try to call curl_easy_perform it crashes in transfer.c line
> 1872. This is the location where the code is trying to tell the OS to ignore
> SIGPIPE.
>
> Here is the code in question.
>
> #if defined(HAVE_SIGNAL) && defined(SIGPIPE) && !defined(HAVE_MSG_NOSIGNAL)
> /*************************************************************
> * Tell signal handler to ignore SIGPIPE
> *************************************************************/
> if(!data->set.no_signal)
> data->state.prev_signal = signal(SIGPIPE, SIG_IGN); <<<<<----
> this is line where it crashes
> #endif
>
> I am not a big Unix or OS X guy so don't exactly know the significance of
> this code. I could try defining HAVE_SIGNAL as 0 to avoid the error, but
> would like to understand why it is crashing.
That's a strange crash. It's such a simple call that there's nothing that
should go wrong. Can you run the program with gdb or strace (or OS X
equivalent) and find out what's going on around this line?
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-09-17