I am still able to reproduce this problem with rsync 3.1.3 with the exact same 
test case about 3 years after I originally reported it. I'm running Ubuntu 
18.04 which comes with 3.1.2, but I compiled 3.1.3 from source and get the same 
behavior. I'm also able to reproduce the problem (although it hangs on a 
different file), on an independent 18.04.1 system from the one that I 
originally observed the problem. On the other system, I see this strace output:
strace rsync --debug=all -avz /tmp/html2 /tmp/rsynctest/
<snip>
read(3, "db1567566d32ccb07257a842a3bdc8a5", 32) = 32
close(3)                                = 0
write(1, "sender finished /tmp/html2/atsc_"..., 50sender finished 
/tmp/html2/atsc__pad_8h__incl.md5
) = 50
write(1, "send_files(343, /tmp/html2/atsc_"..., 51send_files(343, 
/tmp/html2/atsc__pad_8h__incl.png)
) = 51
open("html2/atsc__pad_8h__incl.png", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0664, st_size=280274, ...}) = 0
write(1, "html2/atsc__pad_8h__incl.png\n", 29html2/atsc__pad_8h__incl.png
) = 29
read(3, 
"\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\n\333\0\0\2\345\10\6\0\0\0\257\303\313"..., 
262144) = 262144
select(6, [5], [4], [5], {60, 0})       = 2 (in [5], out [4], left {59, 999998})
read(5, 
"\0\0\0\0\0\0\0\1\0\240\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\240\0\0\0"..., 95) 
= 95
write(4, 
"z\375\0\7\177\377\217\246\253\200\252\252\351\3324H\203t\267H\203t7\10(\35\322)!Hw7"...,
 64894) = 64894
select(5, [], [4], [], {60, 0})         = 1 (out [4], left {59, 999998})
write(4, 
"\202\312\0\7\177\377|\275\5XU[\3245|\24\5i\224\20I\25A:\244[\244\21\tI\351\356"...,
 51846) = 51846
select(5, [], [4], [], {60, 0})         = 0 (Timeout)
select(5, [], [4], [], {60, 0})         = 0 (Timeout)
select(5, [], [4], [], {60, 0}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1528921

Title:
  rsync hangs on select(5, [], [4], [], {60, 0}

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rsync/+bug/1528921/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to