CURL 7.35 hang
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have been working on Ubuntu Server 14.04 LTS
Curl version is:
curl 7.35.0 (x86_64-
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
In my project I have In background a lot of php processes working and executing curl commands. After some time (less than one day) processes stop.
Log file shows that they stop on execution curl function and never go forward.
It's bad because process still working and system doesn't recognize when it's hanging.
strace of the process showed me this:
$ sudo strace -p 30343
Process 30343 attached
restart_
clock_gettime(
clock_gettime(
poll([{fd=5, events=
clock_gettime(
clock_gettime(
clock_gettime(
clock_gettime(
clock_gettime(
poll([{fd=5, events=POLLIN}], 1, 1000) = 0 (Timeout)
clock_gettime(
clock_gettime(
poll([{fd=5, events=
Looks like it retries over and over to read/write data in file descriptor 5.
Look at file descriptors:
sudo ls -l /proc/30343/fd/
total 0
lr-x------ 1 se se 64 Feb 12 03:09 0 -> /dev/null
l-wx------ 1 se se 64 Feb 12 03:09 1 -> /var/www/
l-wx------ 1 se se 64 Feb 12 03:09 2 -> /var/www/
lrwx------ 1 se se 64 Feb 12 03:09 3 -> socket:[32681601]
lrwx------ 1 se se 64 Feb 12 03:09 4 -> /var/lib/
lrwx------ 1 se se 64 Feb 12 03:09 5 -> socket:[33112628]
fd=5 - means our socket and I am sure that this is my curl.
I know the problem could be inside lib_curl library, but the question is simple.
Why didn't you updated lib_curl from version 7.35 to 7.40 (which is latest and probably bug is fixed there).
In comparison Linux AMI (fedora in their case) now has 7.40 in their repository.
Looking forward for you answer...
Thanks,
- Oleg
Status changed to 'Confirmed' because the bug affects multiple users.