samba-segfault-when-moving-copy-file-from-a-non-btrfs-partition-to-btrfs-partition windows10 error =============== Error 0x8007003B: An unexpected network error occurred Samba Server Segfault ====================== Dec 22 20:47:51 debian smbd[1260]: [2023/12/22 20:47:51.280760, 0] ../../lib/util/fault.c:179(smb_panic_log) Dec 22 20:47:51 debian smbd[1260]: INTERNAL ERROR: Signal 11: Segmentation fault in smbd (smbd[192.168.11) (client [192.168.115.84]) pid 1260 (4.19.3-Debian) Dec 22 20:47:51 debian smbd[1260]: [2023/12/22 20:47:51.281612, 0] ../../lib/util/fault.c:186(smb_panic_log) Dec 22 20:47:51 debian smbd[1260]: If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, s> Dec 22 20:47:51 debian smbd[1260]: [2023/12/22 20:47:51.281640, 0] ../../lib/util/fault.c:191(smb_panic_log) Dec 22 20:47:51 debian smbd[1260]: =============================================================== Dec 22 20:47:51 debian smbd[1260]: [2023/12/22 20:47:51.281654, 0] ../../lib/util/fault.c:192(smb_panic_log) Dec 22 20:47:51 debian smbd[1260]: PANIC (pid 1260): Signal 11: Segmentation fault in 4.19.3-Debian Dec 22 20:47:51 debian smbd[1260]: [2023/12/22 20:47:51.284925, 0] ../../lib/util/fault.c:303(log_stack_trace) Dec 22 20:47:51 debian smbd[1260]: BACKTRACE: 29 stack frames: Dec 22 20:47:51 debian smbd[1260]: #0 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(log_stack_trace+0x2e) [0x7f8b826a45be] Dec 22 20:47:51 debian smbd[1260]: #1 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(smb_panic+0x9) [0x7f8b826a4859] Dec 22 20:47:51 debian smbd[1260]: #2 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(+0x28f1) [0x7f8b826a48f1] Dec 22 20:47:51 debian smbd[1260]: #3 /lib/x86_64-linux-gnu/libc.so.6(+0x3bfd0) [0x7f8b82485fd0] Dec 22 20:47:51 debian smbd[1260]: #4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(vfs_offload_token_db_fetch_fsp+0x37) [0x7f8b82a73147] Dec 22 20:47:51 debian smbd[1260]: #5 /usr/lib/x86_64-linux-gnu/samba/vfs/btrfs.so(+0x3332) [0x7f8b7dc72332] Dec 22 20:47:51 debian smbd[1260]: #6 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(+0xc3140) [0x7f8b82aec140] Dec 22 20:47:51 debian smbd[1260]: #7 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smb2_ioctl_network_fs+0x863) [0x7f8b82aed0f3] Dec 22 20:47:51 debian smbd[1260]: #8 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_smb2_request_process_ioctl+0x575) [0x7f8b82ae9ee5] Dec 22 20:47:51 debian smbd[1260]: #9 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_smb2_request_dispatch+0x1b74) [0x7f8b82ad8a54] Dec 22 20:47:51 debian smbd[1260]: #10 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(+0xb0bb1) [0x7f8b82ad9bb1] Dec 22 20:47:51 debian smbd[1260]: #11 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x7f8b826339e1] Dec 22 20:47:51 debian smbd[1260]: #12 /lib/x86_64-linux-gnu/libtevent.so.0(+0xef97) [0x7f8b82639f97] Dec 22 20:47:51 debian smbd[1260]: #13 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd2b7) [0x7f8b826382b7] Dec 22 20:47:51 debian smbd[1260]: #14 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x91) [0x7f8b82632c11] Dec 22 20:47:51 debian smbd[1260]: #15 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f8b82632f0b] Dec 22 20:47:51 debian smbd[1260]: #16 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd257) [0x7f8b82638257] Dec 22 20:47:51 debian smbd[1260]: #17 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_process+0x82c) [0x7f8b82ac6c6c] Dec 22 20:47:51 debian smbd[1260]: #18 smbd: client [192.168.115.84](+0x9e8e) [0x55c6361b5e8e] Dec 22 20:47:51 debian smbd[1260]: #19 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x7f8b826339e1] Dec 22 20:47:51 debian smbd[1260]: #20 /lib/x86_64-linux-gnu/libtevent.so.0(+0xef97) [0x7f8b82639f97] Dec 22 20:47:51 debian smbd[1260]: #21 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd2b7) [0x7f8b826382b7] Dec 22 20:47:51 debian smbd[1260]: #22 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x91) [0x7f8b82632c11] Dec 22 20:47:51 debian smbd[1260]: #23 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f8b82632f0b] Dec 22 20:47:51 debian smbd[1260]: #24 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd257) [0x7f8b82638257] Dec 22 20:47:51 debian smbd[1260]: #25 smbd: client [192.168.115.84](main+0x149b) [0x55c6361b329b] Dec 22 20:47:51 debian smbd[1260]: #26 /lib/x86_64-linux-gnu/libc.so.6(+0x271ca) [0x7f8b824711ca] Dec 22 20:47:51 debian smbd[1260]: #27 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f8b82471285] Dec 22 20:47:51 debian smbd[1260]: #28 smbd: client [192.168.115.84](_start+0x21) [0x55c6361b3b81] Dec 22 20:47:51 debian smbd[1260]: [2023/12/22 20:47:51.286328, 0] ../../source3/lib/util.c:691(smb_panic_s3) Dec 22 20:47:51 debian smbd[1260]: smb_panic(): calling panic action [/usr/share/samba/panic-action 1260] Dec 22 20:47:51 debian smbd[1260]: [2023/12/22 20:47:51.352522, 0] ../../source3/lib/util.c:698(smb_panic_s3) Dec 22 20:47:51 debian smbd[1260]: smb_panic(): action returned status 0 Dec 22 20:47:51 debian smbd[1260]: [2023/12/22 20:47:51.353235, 0] ../../source3/lib/dumpcore.c:315(dump_core) Dec 22 20:47:51 debian smbd[1260]: dumping core in /var/log/samba/cores/smbd ====================== smb.conf shares ================ [global] workgroup = WORKGROUP server string = %h server dns proxy = no log level = 0 log file = /var/log/samba/log.%m max log size = 1000 logging = syslog panic action = /usr/share/samba/panic-action %d passdb backend = tdbsam obey pam restrictions = no unix password sync = no passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes socket options = TCP_NODELAY IPTOS_LOWDELAY guest account = nobody load printers = no disable spoolss = yes printing = bsd printcap name = /dev/null unix extensions = yes wide links = no create mask = 0777 directory mask = 0777 use sendfile = yes aio read size = 1 aio write size = 1 time server = no wins support = no disable netbios = yes multicast dns register = no server min protocol = SMB2_02 # Special configuration for Apple's Time Machine fruit:aapl = yes fruit:copyfile = yes fruit:nfs_aces = no #======================= Share Definitions ======================= [BTRFS] path = /srv/dev-disk-by-id-ata-VBOX_HARDDISK_VBd4bd2101-a37e420f/BTRFS/ guest ok = yes guest only = no read only = no browseable = yes inherit acls = no inherit permissions = no ea support = no store dos attributes = no shadow:mountpoint = /srv/dev-disk-by-id-ata-VBOX_HARDDISK_VBd4bd2101-a37e420f/ shadow:snapdir = /srv/dev-disk-by-id-ata-VBOX_HARDDISK_VBd4bd2101-a37e420f/.snapshots/ shadow:basedir = /srv/dev-disk-by-id-ata-VBOX_HARDDISK_VBd4bd2101-a37e420f/BTRFS/ shadow:sort = desc shadow:format = _%Y%m%dT%H%M%S shadow:delimiter = _ shadow:snapprefix = ^BTRFS\(@hourly\)\{0,1\}\(@daily\)\{0,1\}\(@weekly\)\{0,1\}\(@monthly\)\{0,1\}\(@yearly\)\{0,1\}$ shadow:localtime = no dfree command = /usr/sbin/omv-btrfs-dfree dfree cache time = 30 vfs objects = btrfs shadow_copy2 printable = no create mask = 0664 force create mode = 0664 directory mask = 0775 force directory mode = 0775 hide special files = yes follow symlinks = yes hide dot files = yes valid users = invalid users = read list = write list = [EXT4] path = /srv/dev-disk-by-uuid-ed19f0b8-eaf3-4fb7-96ac-ef1b04004176/EXT4/ guest ok = yes guest only = no read only = no browseable = yes inherit acls = no inherit permissions = no ea support = no store dos attributes = no vfs objects = printable = no create mask = 0664 force create mode = 0664 directory mask = 0775 force directory mode = 0775 hide special files = yes follow symlinks = yes hide dot files = yes valid users = invalid users = read list = write list = ==================== Software versions ==================== root@debian:~# uname -a Linux debian 6.1.0-16-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12) x86_64 GNU/Linux root@debian:~# dpkg -l | egrep "samba|btrfs" ii btrfs-progs 6.2-1 amd64 Checksumming Copy on Write Filesystem utilities ii libldb2:amd64 2:2.8.0+samba4.19.3+dfsg-1~bpo12+1 amd64 LDAP-like embedded database - shared library ii python3-ldb 2:2.8.0+samba4.19.3+dfsg-1~bpo12+1 amd64 Python 3 bindings for LDB ii python3-samba 2:4.19.3+dfsg-1~bpo12+1 amd64 Python 3 bindings for Samba ii samba 2:4.19.3+dfsg-1~bpo12+1 amd64 SMB/CIFS file, print, and login server for Unix ii samba-ad-provision 2:4.19.3+dfsg-1~bpo12+1 all Samba files needed for AD domain provision ii samba-common 2:4.19.3+dfsg-1~bpo12+1 all common files used by both the Samba server and client ii samba-common-bin 2:4.19.3+dfsg-1~bpo12+1 amd64 Samba common files used by both the server and the client ii samba-dsdb-modules:amd64 2:4.19.3+dfsg-1~bpo12+1 amd64 Samba Directory Services Database ii samba-libs:amd64 2:4.19.3+dfsg-1~bpo12+1 amd64 Samba core libraries ii samba-vfs-modules:amd64 2:4.19.3+dfsg-1~bpo12+1 amd64 Samba Virtual FileSystem plugins