Bug 10970 - infinite loop after moving file cross partition
Summary: infinite loop after moving file cross partition
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.6.24
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-27 17:28 UTC by Xuefer
Modified: 2020-11-18 16:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xuefer 2014-11-27 17:28:47 UTC
2 partition (ext4 and ntfs) mounted on server side as dir1 dir2, which are all symlinked together and access-able with in 1 samba share

i tried in windows 8.1 moving file from dir1 to dir2, after some seconds waiting for the progress ping/pong back and forth windows says failed, and when i look at samba side, smbd is eating CPU resource, so i strace -p pid of the busy process i get

sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)
sendfile(30, 33, [59188192], 56352)     = -1 EAGAIN (Resource temporarily unavailable)

lsof shows
smbd    19167 downloader   30u  inet 125533       0t0     TCP 192.168.1.2:microsoft-ds->192.168.1.3:5693 (ESTABLISHED)
smbd    19167 downloader   31r   DIR   8,19      4096   10586 /mnt/downloads/Video/\xe6\x95\x99\xe8\x82\xb2\xe7\x89\x87/C++/CppCon
smbd    19167 downloader   32r   DIR   8,19      8192       5 /mnt/downloads
smbd    19167 downloader   33u   REG    8,4 715106305 9964897 /mnt/data/downloader/Incoming/HalpernOverviewofParallel_high.mp4
smbd    19167 downloader   34u   REG   8,19 715106305    6068 /mnt/downloads/Video/\xe6\x95\x99\xe8\x82\xb2\xe7\x89\x87/C++/CppCon/HalpernOverviewofParallel_high.mp4


the move (cut & paste) is done using explorer. this doesn't happen when copying (copy & paste)
Comment 1 Volker Lendecke 2014-11-27 20:15:05 UTC
What happens if you set "use sendfile = no"?
Comment 2 Xuefer 2014-11-29 09:33:08 UTC
with "use sendfile = no" the copy is done and file is same, but explorer still says error

Error: 0x8007003B: An unexpected network error occurred.
Comment 3 Jeremy Allison 2014-12-01 18:44:11 UTC
Can you get a debug level 10 log + wireshark capture trace and post here please ?
Comment 4 Xuefer 2014-12-04 14:18:40 UTC
the file is as big as 1~2GB, so i don't think i can attach wireshark dump file i any way. but i can't reproduce the bug for now, maybe because i did a clean rebuild of samba
Comment 5 Xuefer 2014-12-12 05:24:22 UTC
still happens, don't close this bug yet.
this time with samba 4.0.21 (build in openwrt tobiaswaldvogel), trying to get a level 10 log
Comment 6 Björn Jacke 2020-11-18 16:27:14 UTC
no feedback, closing this bug.