cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl_compareheader SIGSEGV

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 7 Mar 2003 13:41:36 +0100 (CET)

On Fri, 7 Mar 2003, jose wrote:

> 2. offending piece of C++ that causes the problem and local vars (can not
> provide more source as I am modifying someone else's)

Well, if you can write a small program that reprodoces this problem it would
make things a lot easier. I suggest you put more focus on that part, as if
you can make others repeat your problem we can debug it in parallell.

> #1 0x4003a593 in curl_strnequal () from
> /usr/lib/libcurl.so.2
> #2 0x40029c30 in Curl_compareheader () from
> /usr/lib/libcurl.so.2

--enable-debug should compile and build curl with debug symbols, and then the
above should be more detailed... I can't say why it doesn't work for you...

> 394 while( ( mstate = curl_multi_perform(
> hmulti, &num ) ) != CURLM_CALL_MULTI_PERFORM && num != 0);

This condition looks incorrect. You should call curl_multi_perform() again if
it returns CURLM_CALL_MULTI_PERFORM, while this looks like the complete
opposite... Of course, it is taken out of a context I don't see.

> What do I need to enable in curl to be able to view the locals ?

Make sure that all libcurl is built with the -g option to the compiler.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
Received on 2003-03-07