Hi, after upgrading from 4.19 to 4.20 I see lots of PANIC errors in log.smbd. I see it every time I'm trying to write a file into samba share using Dolphin. [2025/02/02 16:56:09.823293, 0] ../../lib/util/fault.c:193(smb_panic_log) PANIC (pid 8625): async open timeout in 4.20.7 [2025/02/02 16:56:09.827129, 0] ../../lib/util/fault.c:304(log_stack_trace) BACKTRACE: 20 stack frames: #0 0x3645750f6ec7 <log_stack_trace+0x37> at /usr/local/lib/samba4/private/libgenrand-private-samba.so #1 0x3645750f6f9e <smb_panic+0xe> at /usr/local/lib/samba4/private/libgenrand-private-samba.so #2 0x36456b707b24 <smbd_exit_server+0x1b4> at /usr/local/lib/samba4/private/libsmbd-base-private-samba.so #3 0x36456b707981 <smbd_exit_server+0x11> at /usr/local/lib/samba4/private/libsmbd-base-private-samba.so #4 0x364575394bcc <exit_server+0x1c> at /usr/local/lib/samba4/private/libsmbd-shim-private-samba.so #5 0x36456b6b2b10 <delete_all_streams> at /usr/local/lib/samba4/private/libsmbd-base-private-samba.so #6 0x364575935dff <tevent_common_invoke_timer_handler+0x18f> at /usr/local/lib/libtevent.so.0 #7 0x364575935fa4 <tevent_common_loop_timer_delay+0x94> at /usr/local/lib/libtevent.so.0 #8 0x3645759337c5 <tevent_context_same_loop+0xb15> at /usr/local/lib/libtevent.so.0 #9 0x36457592f36a <_tevent_loop_once+0xea> at /usr/local/lib/libtevent.so.0 #10 0x36457592f5f2 <tevent_common_loop_wait+0x32> at /usr/local/lib/libtevent.so.0 #11 0x36456b6cd34b <smbd_process+0x83b> at /usr/local/lib/samba4/private/libsmbd-base-private-samba.so #12 0x363d4788f9bd <main+0x42fd> at /usr/local/sbin/smbd #13 0x36457593067e <tevent_common_invoke_fd_handler+0x9e> at /usr/local/lib/libtevent.so.0 #14 0x364575933a44 <tevent_context_same_loop+0xd94> at /usr/local/lib/libtevent.so.0 #15 0x36457592f36a <_tevent_loop_once+0xea> at /usr/local/lib/libtevent.so.0 #16 0x36457592f5f2 <tevent_common_loop_wait+0x32> at /usr/local/lib/libtevent.so.0 #17 0x363d4788df3f <main+0x287f> at /usr/local/sbin/smbd #18 0x363d4788cbac <main+0x14ec> at /usr/local/sbin/smbd #19 0x36457742ac3a <__libc_start1+0x12a> at /lib/libc.so.7
I had the same thing, and I'm pretty sure that it's caused by one of the high numbered patches (0099, 0100, 0101, or 0102), all of which I disabled and then stuff began to work. Did not delve much further. I've been running 4.20, 4.21, and now even 4.22rc1 without those and no complaints with my setup.
(In reply to Raivo Hool from comment #1) > caused by one of the high numbered patches (0099, 0100, 0101, or 0102), > all of which I disabled and then stuff began to work 0099 is already excluded by port's Makefile. Without 0102 the build is failed. I tried to build it without 0100 and 0101 (and with 0102). It started, but when I tried to open a share in Dolphin I'm getting The file or folder smb://nas/data does not exist. and empty view. Could you share your smb4.conf?
(In reply to Denis Shaposhnikov from comment #2) Careful now; patch 0100 is the one that fixed time machine for 4.19: https://cgit.freebsd.org/ports/commit/?id=aa8c5beb655f79c21e6ec7837b4b669919fcb89f
I can confirm - Samba 4.20.7_1, FreeBSD 14.2-Release Both AD member and standalone. No successful write on ZFS residing shares. I couldn't test if this depends on the file system type. Feb 11 21:47:58 leo smbd[4373]: =============================================================== Feb 11 21:47:58 leo smbd[4373]: [2025/02/11 21:47:58.809493, 0] ../../lib/util/fault.c:185(smb_panic_log) Feb 11 21:47:58 leo smbd[4373]: INTERNAL ERROR: async open timeout in smbd () (client [ip]) pid 4373 (4.20.7) Feb 11 21:47:58 leo smbd[4373]: [2025/02/11 21:47:58.809520, 0] ../../lib/util/fault.c:190(smb_panic_log) Feb 11 21:47:58 leo smbd[4373]: 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, see https://wiki.samba.org/index.php/Bug_Reporting Feb 11 21:47:58 leo smbd[4373]: [2025/02/11 21:47:58.809534, 0] ../../lib/util/fault.c:191(smb_panic_log) Feb 11 21:47:58 leo smbd[4373]: =============================================================== Feb 11 21:47:58 leo smbd[4373]: [2025/02/11 21:47:58.809550, 0] ../../lib/util/fault.c:193(smb_panic_log) Feb 11 21:47:58 leo smbd[4373]: PANIC (pid 4373): async open timeout in 4.20.7 Feb 11 21:47:58 leo smbd[4373]: [2025/02/11 21:47:58.810322, 0] ../../lib/util/fault.c:304(log_stack_trace) Feb 11 21:47:58 leo smbd[4373]: BACKTRACE: 20 stack frames: Feb 11 21:47:58 leo smbd[4373]: #0 0x1599756ebec7 <log_stack_trace+0x37> at /usr/local/lib/samba4/private/libgenrand-private-samba.so Feb 11 21:47:58 leo smbd[4373]: #1 0x1599756ebf9e <smb_panic+0xe> at /usr/local/lib/samba4/private/libgenrand-private-samba.so Feb 11 21:47:58 leo smbd[4373]: #2 0x159969c62b14 <smbd_exit_server+0x1b4> at /usr/local/lib/samba4/private/libsmbd-base-private-samba.so Feb 11 21:47:58 leo smbd[4373]: #3 0x159969c62971 <smbd_exit_server+0x11> at /usr/local/lib/samba4/private/libsmbd-base-private-samba.so Feb 11 21:47:58 leo smbd[4373]: #4 0x1599751a5bcc <exit_server+0x1c> at /usr/local/lib/samba4/private/libsmbd-shim-private-samba.so Feb 11 21:47:58 leo smbd[4373]: #5 0x159969c0daf0 <delete_all_streams> at /usr/local/lib/samba4/private/libsmbd-base-private-samba.so Feb 11 21:47:58 leo smbd[4373]: #6 0x159977e46dff <tevent_common_invoke_timer_handler+0x18f> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #7 0x159977e46fa4 <tevent_common_loop_timer_delay+0x94> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #8 0x159977e447c5 <tevent_context_same_loop+0xb15> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #9 0x159977e4036a <_tevent_loop_once+0xea> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #10 0x159977e405f2 <tevent_common_loop_wait+0x32> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #11 0x159969c2833b <smbd_process+0x83b> at /usr/local/lib/samba4/private/libsmbd-base-private-samba.so Feb 11 21:47:58 leo smbd[4373]: #12 0x1591471a89bd <main+0x42fd> at /usr/local/sbin/smbd Feb 11 21:47:58 leo smbd[4373]: #13 0x159977e4167e <tevent_common_invoke_fd_handler+0x9e> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #14 0x159977e44a44 <tevent_context_same_loop+0xd94> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #15 0x159977e4036a <_tevent_loop_once+0xea> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #16 0x159977e405f2 <tevent_common_loop_wait+0x32> at /usr/local/lib/libtevent.so.0 Feb 11 21:47:58 leo smbd[4373]: #17 0x1591471a6f3f <main+0x287f> at /usr/local/sbin/smbd Feb 11 21:47:58 leo smbd[4373]: #18 0x1591471a5bac <main+0x14ec> at /usr/local/sbin/smbd Feb 11 21:47:58 leo smbd[4373]: #19 0x15997896bc3a <__libc_start1+0x12a> at /lib/libc.so.7 Feb 11 21:47:58 leo smbd[4373]: [2025/02/11 21:47:58.810502, 0] ../../source3/lib/dumpcore.c:310(dump_core) Feb 11 21:47:58 leo smbd[4373]: unable to change to %N.core Reverting back to net/samba419 solves the problem.