I have a system that appears to reset several smb client every few days. I suspect a possible client dirty disconnect as the prime suspect. Can someone please look at this trace and tell me if I am on the right track? There are no smbd message within a day of this event leading up to the fault. The system does recover itself but at the expense of all clients (Mac OSX) having to re-cache their files. Oct 6 18:58:45 Brad smbd[820341]: [2021/10/06 18:58:45.384310, 0] ../../source3/smbd/close.c:648(assert_no_pending_aio) Oct 6 18:58:45 Brad smbd[820341]: assert_no_pending_aio: fsp->num_aio_requests=1 Oct 6 18:58:45 Brad smbd[820341]: [2021/10/06 18:58:45.384546, 0] ../../source3/lib/util.c:830(smb_panic_s3) Oct 6 18:58:45 Brad smbd[820341]: PANIC (pid 820341): can not close with outstanding aio requests Oct 6 18:58:45 Brad smbd[820341]: [2021/10/06 18:58:45.394973, 0] ../../lib/util/fault.c:265(log_stack_trace) Oct 6 18:58:45 Brad smbd[820341]: BACKTRACE: 34 stack frames: Oct 6 18:58:45 Brad smbd[820341]: #0 /lib64/libsamba-util.so.0(log_stack_trace+0x34) [0x7faf0d2bb264] Oct 6 18:58:45 Brad smbd[820341]: #1 /lib64/libsmbconf.so.0(smb_panic_s3+0x29) [0x7faf0d24b639] Oct 6 18:58:45 Brad smbd[820341]: #2 /lib64/libsamba-util.so.0(smb_panic+0x31) [0x7faf0d2bb361] Oct 6 18:58:45 Brad smbd[820341]: #3 /usr/lib64/samba/libsmbd-base-samba4.so(+0x1d9fff) [0x7faf0cf33fff] Oct 6 18:58:45 Brad smbd[820341]: #4 /usr/lib64/samba/libsmbd-base-samba4.so(close_file+0xc8) [0x7faf0cf34998] Oct 6 18:58:45 Brad smbd[820341]: #5 /usr/lib64/samba/libsmbd-base-samba4.so(file_close_user+0x3d) [0x7faf0cecfacd] Oct 6 18:58:45 Brad smbd[820341]: #6 /usr/lib64/samba/libsmbd-base-samba4.so(smbXsrv_session_logoff+0x51) [0x7faf0cf7e1e1] Oct 6 18:58:45 Brad smbd[820341]: #7 /usr/lib64/samba/libsmbd-base-samba4.so(+0x22458a) [0x7faf0cf7e58a] Oct 6 18:58:45 Brad smbd[820341]: #8 /usr/lib64/samba/libdbwrap-samba4.so(+0x50c4) [0x7faf0ae3c0c4] Oct 6 18:58:45 Brad smbd[820341]: #9 /usr/lib64/samba/libdbwrap-samba4.so(+0x52fe) [0x7faf0ae3c2fe] Oct 6 18:58:45 Brad smbd[820341]: #10 /usr/lib64/samba/libdbwrap-samba4.so(dbwrap_traverse+0xb) [0x7faf0ae3a85b] Oct 6 18:58:45 Brad smbd[820341]: #11 /usr/lib64/samba/libsmbd-base-samba4.so(smbXsrv_session_logoff_all+0x5b) [0x7faf0cf7e74b] Oct 6 18:58:45 Brad smbd[820341]: #12 /usr/lib64/samba/libsmbd-base-samba4.so(+0x229e5e) [0x7faf0cf83e5e] Oct 6 18:58:45 Brad smbd[820341]: #13 /usr/lib64/samba/libsmbd-base-samba4.so(+0x22a3c4) [0x7faf0cf843c4] Oct 6 18:58:45 Brad smbd[820341]: #14 /usr/lib64/samba/libsmbd-shim-samba4.so(exit_server_cleanly+0x18) [0x7faf0c71ca38] Oct 6 18:58:45 Brad smbd[820341]: #15 /usr/lib64/samba/libsmbd-base-samba4.so(smbd_server_connection_terminate_ex+0x162) [0x7faf0cf5ed12] Oct 6 18:58:45 Brad smbd[820341]: #16 /usr/lib64/samba/libsmbd-base-samba4.so(+0x208d19) [0x7faf0cf62d19] Oct 6 18:58:45 Brad smbd[820341]: #17 /lib64/libtevent.so.0(tevent_common_invoke_fd_handler+0x83) [0x7faf0c0a2533] Oct 6 18:58:45 Brad smbd[820341]: #18 /lib64/libtevent.so.0(+0xdacf) [0x7faf0c0a8acf] Oct 6 18:58:45 Brad smbd[820341]: #19 /lib64/libtevent.so.0(+0xbadb) [0x7faf0c0a6adb] Oct 6 18:58:45 Brad smbd[820341]: #20 /lib64/libtevent.so.0(_tevent_loop_once+0x95) [0x7faf0c0a1c05] Oct 6 18:58:45 Brad smbd[820341]: #21 /lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7faf0c0a1eab] Oct 6 18:58:45 Brad smbd[820341]: #22 /lib64/libtevent.so.0(+0xba6b) [0x7faf0c0a6a6b] Oct 6 18:58:45 Brad smbd[820341]: #23 /usr/lib64/samba/libsmbd-base-samba4.so(smbd_process+0x7bf) [0x7faf0cf510ef] Oct 6 18:58:45 Brad smbd[820341]: #24 /usr/sbin/smbd(+0xdd20) [0x5568c8a44d20] Oct 6 18:58:45 Brad smbd[820341]: #25 /lib64/libtevent.so.0(tevent_common_invoke_fd_handler+0x83) [0x7faf0c0a2533] Oct 6 18:58:45 Brad smbd[820341]: #26 /lib64/libtevent.so.0(+0xdacf) [0x7faf0c0a8acf] Oct 6 18:58:45 Brad smbd[820341]: #27 /lib64/libtevent.so.0(+0xbadb) [0x7faf0c0a6adb] Oct 6 18:58:45 Brad smbd[820341]: #28 /lib64/libtevent.so.0(_tevent_loop_once+0x95) [0x7faf0c0a1c05] Oct 6 18:58:45 Brad smbd[820341]: #29 /lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7faf0c0a1eab] Oct 6 18:58:45 Brad smbd[820341]: #30 /lib64/libtevent.so.0(+0xba6b) [0x7faf0c0a6a6b] Oct 6 18:58:45 Brad smbd[820341]: #31 /usr/sbin/smbd(main+0x1bd2) [0x5568c8a3f2c2] Oct 6 18:58:45 Brad smbd[820341]: #32 /lib64/libc.so.6(__libc_start_main+0xf3) [0x7faf0badb7b3] Oct 6 18:58:45 Brad smbd[820341]: #33 /usr/sbin/smbd(_start+0x2e) [0x5568c8a3f67e] JD
On Thu, Oct 07, 2021 at 02:39:20PM +0000, Deas, Jim via samba wrote:>I have a system that appears to reset several smb client every few days. I suspect a possible client dirty disconnect as the prime suspect. Can someone please look at this trace and tell me if I am on the right track? There are no smbd message within a day of this event leading up to the fault. >The system does recover itself but at the expense of all clients (Mac OSX) having to re-cache their files.What version of Samba ? This looks like a bug that got fixed (and released) recently.