Dear Maintainer,
Copying around 50GB consisting of 3-4MB JPG and 400MB to 4.9GB MP4 files
from an SD card mounted by a Windows 10 Version 10.0.19044.1526 client
over a home mesh WiFi to an AMD64 NAS running Debian 11 and smbd
Version 4.13.13-Debian stored in a usershare on a ZFS filesystem.
I first tried copying a large directory from the SD card(D:\DCIM\).
The Windows GUI client reported an error and asked if I wanted to try again.
Trying again fixed the current file, but usually later another file failed
and had to be repeated.
When I tried Beyond Compare 4's directory comparison function and selected
the failed files to by re-copied, and more copied, but this time I saved the error text:
"An unexpected network error occurred"
When windows GUI client failed to copy a file, it left a zero-byte file
on the NAS. When I repeated the copy with beyond-compare, most of the failed
files were correctly copied and only one remained.
It seems each time the "network error occurred" smbd actually crashed and left a coredump.
I tried installing libc6-dbg, but after reproducing was unable to get the backtrace to
resolve calls inside libc6.so.6. I reviewed the source code of volume_label()
in loadparm.c - it seems the only libc function call there is a call to strcpy(),
so perhaps the label pointer was NULL or otherwise invalid?
I've saved a copy of the coredump, but would prefer not to post it publicly.
It seems 4.13 is out of maintenance with upstream, but when I have time I'll try
to pull down the latest from upstream and see if I can reproduce and create a bug
there if needed or otherwise report back.