Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549504 - >=net-misc/curl-7.40.0 - 100% CPU usage
Summary: >=net-misc/curl-7.40.0 - 100% CPU usage
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-14 22:35 UTC by Victor
Modified: 2016-02-14 19:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info net-misc/curl (net-misc-curl.txt,6.55 KB, text/plain)
2015-05-15 09:24 UTC, Victor
Details
test curl --proxytunnel (test_curl_conn.sh,551 bytes, application/x-shellscript)
2016-02-14 19:30 UTC, Victor
Details
test curl --proxytunnel proxy:[port] (test_curl_conn.sh,526 bytes, application/x-shellscript)
2016-02-14 19:48 UTC, Victor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2015-05-14 22:35:17 UTC
curl 7.42.1, curl 7.42.0 CPU 100 % 

I rolled to version 7.39 ((

Reproducible: Always
Comment 1 Tomáš Mózes 2015-05-15 06:01:57 UTC
Can you please post some information about you environment? Something like emerge --info net-misc/curl and the command that triggered this behavior.
Comment 2 Victor 2015-05-15 09:24:16 UTC
Created attachment 403322 [details]
emerge --info net-misc/curl
Comment 3 Anthony Basile gentoo-dev 2015-05-31 14:06:08 UTC
i wasn't able to every reproduce this.  is there any other info you can give me about when it happens?
Comment 4 Victor 2015-07-30 21:45:37 UTC
curl -compressed --proxytunnel --proxy  10.0.0.1:8080 ....
Comment 5 Anthony Basile gentoo-dev 2015-07-30 22:34:39 UTC
(In reply to Victor from comment #4)
> curl -compressed --proxytunnel --proxy  10.0.0.1:8080 ....

I ran that against provioxy using 

curl -compressed --proxytunnel --proxy  127.0.0.1:8118 http://www.google.com

and it terminated in less than a second.

Can you put the process into the background, strace it an post the output.  Make sure to use -f to get all the children as well.
Comment 6 Victor 2015-07-30 23:48:50 UTC
curl 100 % CPU usage when a connection to the proxytunnel (connect proxy) 

If the proxy is slow, it is very noticeable
Comment 7 Anthony Basile gentoo-dev 2015-07-31 10:45:20 UTC
(In reply to Victor from comment #6)
> curl 100 % CPU usage when a connection to the proxytunnel (connect proxy) 
> 
> If the proxy is slow, it is very noticeable

Okay but I still need the strace to see where its getting stuck.  Sounds to me like some busywaiting but it would be hard to locate without some idea.  You can also try gdb.  Get the process to dump core when its consuming 100% and get a backtrace.
Comment 8 Anthony Basile gentoo-dev 2015-11-25 23:27:54 UTC
I don't have enough to act on this.  Please reopen if you have more information.
Comment 9 Victor 2016-02-14 19:16:37 UTC
curl_ 100 % CPU usage when a connection to the proxytunnel (connect proxy) 

for curl option --proxytunnel
for libcurl option CURLOPT_HTTPPROXYTUNNEL

If the proxy is slow or not work, it is very noticeable


sorry for my English
Comment 10 Victor 2016-02-14 19:30:16 UTC
Created attachment 425514 [details]
test curl --proxytunnel
Comment 11 Victor 2016-02-14 19:48:27 UTC
Created attachment 425516 [details]
test curl --proxytunnel proxy:[port]