Hi there,
I'm running Debian on OpenMediaVault and I've encountered an error with Samba. I can copy a file to my NAS but it fails halfwaythrough with a network error and I get a "Panic or Segfault in Samba" error from the NAS.
I am not a Linux expert - so please do let me know what is needed to diagnose - but I think I've managed to access the SAMBA logs and they look like this:
The OMV team said they cannot help as this is a Samba issue within Debian. Any suggestions please?
I think I'm running Samba smbd version 4.17.12-Debian and Linux 6.1.0-31-amd64
Thanks a lot!
I'm running Debian on OpenMediaVault and I've encountered an error with Samba. I can copy a file to my NAS but it fails halfwaythrough with a network error and I get a "Panic or Segfault in Samba" error from the NAS.
I am not a Linux expert - so please do let me know what is needed to diagnose - but I think I've managed to access the SAMBA logs and they look like this:
Code:
[2025/02/17 13:38:03.576961, 0] ../../source3/smbd/fd_handle.c:39(fd_handle_destructor) PANIC: assert failed at ../../source3/smbd/fd_handle.c(39): (fh->fd == -1) || (fh->fd == AT_FDCWD)[2025/02/17 13:38:03.577101, 0] ../../lib/util/fault.c:173(smb_panic_log) ===============================================================[2025/02/17 13:38:03.577165, 0] ../../lib/util/fault.c:174(smb_panic_log) INTERNAL ERROR: assert failed: (fh->fd == -1) || (fh->fd == AT_FDCWD) in pid 2794 (4.17.12-Debian)[2025/02/17 13:38:03.577217, 0] ../../lib/util/fault.c:178(smb_panic_log) 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[2025/02/17 13:38:03.577272, 0] ../../lib/util/fault.c:183(smb_panic_log) ===============================================================[2025/02/17 13:38:03.577321, 0] ../../lib/util/fault.c:184(smb_panic_log) PANIC (pid 2794): assert failed: (fh->fd == -1) || (fh->fd == AT_FDCWD) in 4.17.12-Debian[2025/02/17 13:38:03.615907, 0] ../../lib/util/fault.c:292(log_stack_trace) BACKTRACE: 27 stack frames: #0 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(log_stack_trace+0x2e) [0x7fddc6acc55e] #1 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(smb_panic+0x9) [0x7fddc6acc7b9] #2 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(+0x4f23b) [0x7fddc6eaa23b] #3 /lib/x86_64-linux-gnu/libtalloc.so.2(+0x47af) [0x7fddc6a857af] #4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(file_free+0xd6) [0x7fddc6eaff36] #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(+0xbd031) [0x7fddc6f18031] #6 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_smb2_request_process_close+0x211) [0x7fddc6f187b1] #7 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_smb2_request_dispatch+0x1b02) [0x7fddc6f0bfb2] #8 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(+0xb2111) [0x7fddc6f0d111] #9 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x7fddc6a728c1] #10 /lib/x86_64-linux-gnu/libtevent.so.0(+0xee07) [0x7fddc6a78e07] #11 /lib/x86_64-linux-gnu/libtevent.so.0(+0xcef7) [0x7fddc6a76ef7] #12 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x91) [0x7fddc6a71ba1] #13 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7fddc6a71e7b] #14 /lib/x86_64-linux-gnu/libtevent.so.0(+0xce97) [0x7fddc6a76e97] #15 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_process+0x82f) [0x7fddc6efa21f] #16 /usr/sbin/smbd(+0x9e00) [0x55c975a64e00] #17 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x7fddc6a728c1] #18 /lib/x86_64-linux-gnu/libtevent.so.0(+0xee07) [0x7fddc6a78e07] #19 /lib/x86_64-linux-gnu/libtevent.so.0(+0xcef7) [0x7fddc6a76ef7] #20 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x91) [0x7fddc6a71ba1] #21 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7fddc6a71e7b] #22 /lib/x86_64-linux-gnu/libtevent.so.0(+0xce97) [0x7fddc6a76e97] #23 /usr/sbin/smbd(main+0x1489) [0x55c975a62269] #24 /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7fddc68b024a] #25 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7fddc68b0305] #26 /usr/sbin/smbd(_start+0x21) [0x55c975a62b41][2025/02/17 13:38:03.616416, 0] ../../source3/lib/util.c:702(smb_panic_s3) smb_panic(): calling panic action [/usr/share/samba/panic-action 2794][2025/02/17 13:38:04.121642, 0] ../../source3/lib/util.c:709(smb_panic_s3) smb_panic(): action returned status 0[2025/02/17 13:38:04.121884, 0] ../../source3/lib/dumpcore.c:315(dump_core) dumping core in /var/log/samba/cores/smbd
I think I'm running Samba smbd version 4.17.12-Debian and Linux 6.1.0-31-amd64
Thanks a lot!
Statistics: Posted by Tony359 — 2025-02-17 13:51 — Replies 4 — Views 173