cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1672994 ] curl crashes when a 301 redirect is received

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 09 Mar 2007 13:29:08 -0800

Bugs item #1672994, was opened at 2007-03-03 14:33
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1672994&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: compile or build problem
Group: crash
Status: Open
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Sharmila Gopirajan (sharmilag)
Assigned to: Daniel Stenberg (bagder)
Summary: curl crashes when a 301 redirect is received

Initial Comment:
if I give the cmd:

curl http://ftp.eidos.com/pub/videos/tomb_raider_5/tomb_raider_5.avi --max-redirs 5 --location --max-time 60 --connect-timeout 30 --location-trusted

it works but if i give
curl http://ftp.eidos.com/pub/videos/tomb_raider_5/tomb_raider_5.avi --max-redirs 5 --location --max-time 60 --connect-timeout 30

It crashes with the following stack trace

*** glibc detected *** python: free(): invalid pointer: 0x00002aaaadb598b3 ***
======= Backtrace: =========
/lib64/libc.so.6[0x33eb76a94e]
/lib64/libc.so.6(__libc_free+0x6e)[0x33eb76ae7e]
/usr/lib/libcurl.so.4[0x2aaaadb3aa6f]
/usr/lib/libcurl.so.4(Curl_ftp_disconnect+0x72)[0x2aaaadb3df22]
/usr/lib/libcurl.so.4(Curl_ftp_connect+0x47)[0x2aaaadb3e967]
/usr/lib/libcurl.so.4(Curl_protocol_connect+0x62)[0x2aaaadb42ca2]
/usr/lib/libcurl.so.4[0x2aaaadb42f6b]
/usr/lib/libcurl.so.4(Curl_connect+0x115d)[0x2aaaadb443dd]
/usr/lib/libcurl.so.4(Curl_perform+0xb5)[0x2aaaadb4ec65]
/usr/lib64/python2.4/site-packages/pycurl.so[0x2aaaada0027a]
/usr/lib64/libpython2.4.so.1.0(PyEval_EvalFrame+0x4f8b)[0x33ec28d7f2]
/usr/lib64/libpython2.4.so.1.0(PyEval_EvalCodeEx+0x70f)[0x33ec28e238]
/usr/lib64/libpython2.4.so.1.0(PyEval_EvalCode+0x32)[0x33ec28e471]
/usr/lib64/libpython2.4.so.1.0[0x33ec2a8801]
/usr/lib64/libpython2.4.so.1.0(PyRun_SimpleFileExFlags+0x234)[0x33ec2a96ed]
/usr/lib64/libpython2.4.so.1.0(Py_Main+0x9ac)[0x33ec2af313]
/lib64/libc.so.6(__libc_start_main+0xdc)[0x33eb71c4cc]
python[0x400689]

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2007-03-09 22:29

Message:
Logged In: YES
user_id=1110
Originator: NO

--prefix /usr will of course install the lib in /usr/lib. That's the
standard naming and prefixes used by configure scripts since decades. Use
--libdir if you want to alter that.

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2007-03-09 09:15

Message:
Logged In: YES
user_id=236775
Originator: NO

Interesting, but it doesn't answer the questions. Did you compile the
library in 64 bit mode? What application does this stack trace come from?
How is Python involved?

----------------------------------------------------------------------

Comment By: Sharmila Gopirajan (sharmilag)
Date: 2007-03-09 08:11

Message:
Logged In: YES
user_id=1734179
Originator: YES

The version I used was curl 7.16.1 . when I install curl on a 64-bit
machine configuring --prefix /usr, it still gets installed in the lib
directory only .. So once the installation is over I did an ldconfig to get
all the libraries updated

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2007-03-09 01:34

Message:
Logged In: YES
user_id=236775
Originator: NO

What application does this stack trace come from? How is Python involved?
There seem to be a mix of 64 bit and 32 bit libraries in the back trace.
Could the problem be related to that?

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2007-03-08 23:00

Message:
Logged In: YES
user_id=1110
Originator: NO

Using what curl version? It seems to "work" (as in not crash) for me.
OTOH, it complains on the server not being nice.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1672994&group_id=976
Received on 2007-03-09

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET