curl-library
Re: Curl_compareheader SIGSEGV
Date: Fri, 7 Mar 2003 13:06:41 +0100 (CET)
I'm running the latest beta release (with ./configure
--enable-debug)
Enclosed are:
1. stack trace
2. offending piece of C++ that causes the problem and
local vars (can not provide more source as I am
modifying someone else's)
Program received signal SIGSEGV, Segmentation fault.
0x402a8321 in strncasecmp () from /lib/libc.so.6
(gdb) bt
#0 0x402a8321 in strncasecmp () from /lib/libc.so.6
#1 0x4003a593 in curl_strnequal () from
/usr/lib/libcurl.so.2
#2 0x40029c30 in Curl_compareheader () from
/usr/lib/libcurl.so.2
#3 0x4002a360 in Curl_http () from
/usr/lib/libcurl.so.2
#4 0x40031cf7 in Curl_do () from
/usr/lib/libcurl.so.2
#5 0x4003c46c in curl_multi_perform () from
/usr/lib/libcurl.so.2
#6 0x0804d2d7 in CurlHttp::ActivatePump()
(this=0x806aee0) at http.cc:394
#7 0x0805aff6 in main (argc=2, argv=0x264) at
http.hh:207
#8 0x4024b4dd in __libc_start_main () from
/lib/libc.so.6
============================
(gdb) frame 6
#6 0x0804d2d7 in CurlHttp::ActivatePump()
(this=0x806aee0) at http.cc:394
394 while( ( mstate = curl_multi_perform(
hmulti, &num ) ) != CURLM_CALL_MULTI_PERFORM && num !=
0 );
(gdb) info locals
num = 5
ret = true
msg = (CURLMsg *) 0x8063278
(gdb) frame 5
#5 0x4003c46c in curl_multi_perform () from
/usr/lib/libcurl.so.2
(gdb) info locals
No symbol table info available.
What do I need to enable in curl to be able to view
the locals ?
Thanks
--- Daniel Stenberg <daniel_at_haxx.se> escribió: > On
Fri, 7 Mar 2003, jose wrote:
>
> > I get a segmentation fault reading pages from a
> local Apache 2 server
> >
> > The stack is:
> >
> > 1. strncasecmp
> > 2. curl_strnequal
> > 3. Curl_compareheader
> >
> > Any ideas of what causes this ? I don't get this
> error when fetching the
> > same pages from an Apache 1.3 server over the
> network.
>
> Show us the stack strace. Check out the fram in (3)
> and see what the local
> variables are like and what pointers that are being
> passed to the (2)
> function and then onto the (1)...
>
> Also, can you provide us with source to an app that
> reproduces this problem?
>
> --
> 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
>
___________________________________________________
Yahoo! Móviles
Personaliza tu móvil con tu logo y melodía favorito
en http://moviles.yahoo.es
-------------------------------------------------------
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