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-1779751 ] libcurl crashes uploading with multiple protocols

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 22 Aug 2007 13:54:24 -0700

Bugs item #1779751, was opened at 2007-08-22 22:15
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1779751&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: libcurl
Group: crash
Status: Open
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: -dep- (phaedra7)
Assigned to: Daniel Stenberg (bagder)
Summary: libcurl crashes uploading with multiple protocols

Initial Comment:
I have an app that uses libcurl to upload files via 'ftp://' or 'file://'. Sending multiple files in sequence works fine as long as they are all using the same protocols. Alternating protos will cause a crash. In particular using ftp after file causes the crash.

This can be tested using the 'curl' command line prog.

Do something like this...

curl -T filea.c file:///put/this/somewhere/filea.c -T fileb.c ftp://ftp.myserver.com/files_go_here/fileb.c

I have been able to reproduce the crash on both Linux and Solaris using various version of curl/libcurl totally outside of my app.

You should get a crash using the latest version, 7.16.4.

I have a Slackware Linux box with curl/libcurl 7.15.5 preinstalled. This version works. Building the latest version of curl/libcurl on that box does NOT work.

On a Solaris 9 Sparc box using the prebuilt 'Blastwave' curl/libcur 7.16.3 doesn't work. I've built 7.16.2 and 7.16.4 and neither of those work. Reverting to 7.15.5 (the same as the preinstalled version on my Linux box) DOES work.

So I think somewhere after 7.15.5 this problem was introduced.

Relinking my app with libcurl from 7.15.5 fixes the crash.

Thanks.

-dep-

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

>Comment By: Daniel Stenberg (bagder)
Date: 2007-08-22 22:54

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

I can confirm that when I try this with curl 7.16.4 as it comes in debian
unstable it segfaults.

However, when I try this with the current CVS code it works just fine!

Can you please try the current CVS/daily snapshot and see if you still
experience this problem?

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

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET