Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 401681

Summary: net-misc/curl-7.24.0 with net-p2p/rtorrent-* leads to 100% CPU load.
Product: Gentoo Linux Reporter: Kolan Sh. <backbone>
Component: Current packagesAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED FIXED    
Severity: normal CC: kripton
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Valgrind curl-7.21.4
Valgrind curl-7.24.0

Description Kolan Sh. 2012-01-31 19:18:26 UTC
rtorrent-0.8.9(and 0.8.7-r4) with curl-7.24.0 leads to 100% cpu usage.
With previous stable curl-7.21.4 this behaviour not observed.

Reproducible: Always

Steps to Reproduce:
1. emerge -avq1 =net-misc/curl-7.24.0 rtorrent
2. run rtorrent $list_of_more_than_500_torrent_files
Actual Results:  
100% of cpu load an average of.

Expected Results:  
About 1-5% of cpu load an average of.

Tested on Hardened Gentoo. On Common Gentoo system with list of 1 torrent file this behaviour not observed.
Comment 1 blackst0ne.ru 2012-02-10 07:31:59 UTC
I confirm that. Using ~amd64.
Downgraded to curl-7.21.4.
Comment 2 Amir Aupov 2012-02-28 20:32:58 UTC
The same for me. (~amd64)
works fine with net-misc/curl-7.23.1
Comment 3 jannis 2012-03-26 17:46:42 UTC
Works on my amd64 (stable) server. What are your versions and USE-flags?

I have:
[I] net-misc/curl
     Available versions:  7.21.4 ~7.21.6 ~7.21.7 ~7.21.7-r2 ~7.22.0 ~7.23.1 7.24.0 ~7.25.0 {ares gnutls idn ipv6 kerberos ldap nss ssh ssl static-libs test threads}
     Installed versions:  7.24.0(22:54:52 01/27/12)(gnutls idn ipv6 ssl threads -ares -kerberos -ldap -nss -ssh -static-libs -test)

[U] net-libs/libtorrent                                                                    Available versions:  0.12.5 0.12.6 (~)0.12.7 (~)0.12.7-r1 (~)0.12.8[1] 0.12.9!t (~)0.13.0 {debug ipv6 ssl test}                                                                                  Installed versions:  0.12.9!t(14:59:55 12/10/11)(ssl -debug -ipv6 -test)

[U] net-p2p/rtorrent                                                                     Available versions:  0.8.6-r1 (~)0.8.6-r4 (~)0.8.7-r3[1] (~)0.8.7-r4 (~)0.8.8[1] 0.8.9!t (~)0.8.9!t[1] (~)0.9.0 {color daemon debug ipfilter ipv6 test xmlrpc}                                                                                Installed versions:  0.8.9!t[1](15:42:34 12/10/11)(color ipfilter xmlrpc -daemon -debug -ipv6 -test)
Comment 4 Tommy Pettersson 2012-04-14 16:35:32 UTC
I tried with the above listed USE flags and versions, and I still suffer from the 100% CPU problem.

Machine is an AMD64 SMP.

Downgrading to curl-7.21.4 makes the problem go away.
Comment 5 Kolan Sh. 2012-04-23 10:14:14 UTC
With the release of curl-7.25.0-r1 situation has not changed, rtorrent also loads cpu at 100%.
Comment 6 BBrain 2012-04-27 09:07:46 UTC
I confirm - the problem is exists. 
Downgrade curl from 7.24.0 to 7.21.4 solves the issue.
Comment 7 Kolan Sh. 2012-04-27 15:37:11 UTC
Created attachment 310273 [details]
Valgrind curl-7.21.4
Comment 8 Kolan Sh. 2012-04-27 15:37:40 UTC
Created attachment 310275 [details]
Valgrind curl-7.24.0
Comment 10 Kolan Sh. 2013-01-01 14:36:36 UTC
I don't observe this problem for several months. There are suspicions that the problem was neither in rtorrent, nor in curl, but somewhere at lower level.

If no one else is watching this bug, perhaps it should be marked as "RESOLVED-> FIXED".