Bug 599340 - New libcurl-7.20.1-1.fc13 breaks some apps
Summary: New libcurl-7.20.1-1.fc13 breaks some apps
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: curl
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-03 07:28 UTC by Alex Lancaster
Modified: 2010-06-10 19:11 UTC (History)
6 users (show)

Fixed In Version: curl-7.20.1-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-10 19:11:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alex Lancaster 2010-06-03 07:28:06 UTC
I know this isn't strictly speaking a Fedora app, but the new libcurl in F-13 7.20.1-1.fc13 appears to break file downloading in some apps like XBMC (which I maintain in RPM Fusion).   I know that it was libcurl, because functionality was restored when I downgraded to 7.20.0.

Looking at the version number, this shouldn't have broken ABI compatibility since the soname wasn't bumped, but would this change may have upset things?

"- now using threaded DNS resolver instead of c-ares (#548269)"

Looking in my ~/.xbmc/temp/xbmc.log I see a bunch of messages like this:

"CFileCurl::CReadState::Open, didn't get any data from stream."

Comment 1 Kamil Dudka 2010-06-03 09:04:22 UTC
Thank you for filling the bug!  I suspect a bug in your application, but without having more info, I can't tell for sure.  Have a look at the following patch:

http://github.com/bagder/curl/commit/d487ade

Simply speaking, the test-case was relying on something that is not guaranteed to hold by libcurl's API.

Could you please narrow down the problem to a libcurl based minimal example?

Comment 2 Kamil Dudka 2010-06-03 12:47:04 UTC
Alex, please check if the following patch solves the problem for you:

http://curl.haxx.se/mail/lib-2010-04/att-0285/curl-7.20.1-threaded-dns-multi.patch

Comment 3 cgrim 2010-06-04 07:12:14 UTC
MPD (from RPM Fusion) is another one application which stopped working after update of curl on version 7.20.1-1.fc13. It writes into log file this:

"mpd: src/input/curl_input_plugin.c:263: input_curl_select: Assertion `max_fd >= 0' failed."

After downgrade of curl and libcurl on version 7.20.0-4.fc13 it works again.

Comment 4 Kamil Dudka 2010-06-04 08:16:37 UTC
cgrim, are you able to test the patch?  Should I prepare a scratch build for you?

Comment 5 cgrim 2010-06-04 09:03:01 UTC
Scratch build will be better for me. I can test it on i686 platform.

Comment 6 Kamil Dudka 2010-06-04 09:55:38 UTC
Here we go:

http://koji.fedoraproject.org/koji/taskinfo?taskID=2229353

Thanks in advance for testing!

Comment 7 cgrim 2010-06-04 10:08:21 UTC
Great! MPD is working with this package ;-) Many thanks for your fix.

Comment 8 Kamil Dudka 2010-06-04 10:20:46 UTC
Please make sure the applications are fixed before Fedora 14 goes out.  This is really a workaround for broken applications only.  There is nothing wrong in libcurl itself, at least from the upstream's point of view:

http://thread.gmane.org/gmane.comp.web.curl.library/27709/focus=27721

Comment 9 Fedora Update System 2010-06-04 10:53:06 UTC
curl-7.20.1-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/curl-7.20.1-2.fc13

Comment 10 Fedora Update System 2010-06-04 18:52:05 UTC
curl-7.20.1-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update curl'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/curl-7.20.1-2.fc13

Comment 11 Alex Lancaster 2010-06-06 03:05:12 UTC
(In reply to comment #6)
> Here we go:
> 
> http://koji.fedoraproject.org/koji/taskinfo?taskID=2229353
> 
> Thanks in advance for testing!    

This seems to fix the problem with XBMC and downloading, thanks.  I've filed this trac ticket:

http://trac.xbmc.org/ticket/9352

with upstream XBMC, hopefully they will know what to do.

Comment 12 fedora-bugzilla 2010-06-06 06:00:21 UTC
upgrading to this version of curl(curl-7.20.1-1.fc13.x86_64) broke yum for me. Yum is constantly timing out when trying to contact the servers. I tried installing curl-7.20.1-2 which did not fix it. I had to manually downgraded curl to curl-7.20.0-4.fc13.x86_64 to get yum working again.

Comment 13 Kevin Fenzi 2010-06-06 06:02:36 UTC
I'll add that fedora-bugzilla's issue was with a ipv6 enabled and using machine. urlgrabber would just time out, but wget could get the mirror list fine.

Comment 14 Kamil Dudka 2010-06-06 07:19:39 UTC
(In reply to comment #11)
> This seems to fix the problem with XBMC and downloading, thanks.  I've filed
> this trac ticket:
> 
> http://trac.xbmc.org/ticket/9352
> 
> with upstream XBMC, hopefully they will know what to do.    

Alex, thanks for filling the ticket.  I have no account there to join, but they can still discuss the problem on upstream mailing-list when in doubt.

Comment 15 Kamil Dudka 2010-06-06 07:25:29 UTC
(In reply to comment #12)
> upgrading to this version of curl(curl-7.20.1-1.fc13.x86_64) broke yum for me.
> Yum is constantly timing out when trying to contact the servers. I tried
> installing curl-7.20.1-2 which did not fix it. I had to manually downgraded
> curl to curl-7.20.0-4.fc13.x86_64 to get yum working again.    

Thanks for the feedback.  However this is completely unrelated to the original bug report and the fix.  Please fill it is as separate bug.  Moreover this seems more likely as bug in your network configuration, which has been hidden until the update.  Attach also the following files:

/etc/nsswitch.conf
/etc/resolv.conf
/etc/gai.conf (if any)

Comment 16 Fedora Update System 2010-06-10 19:11:31 UTC
curl-7.20.1-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.