You are not logged in.

#1 2021-10-02 15:52:51

lboregard
Member
Registered: 2014-05-19
Posts: 17

[SOLVED] samba crash

I'm getting the following crash

Oct 02 10:44:31 hermes smbd[13859]: [2021/10/02 10:44:31.646029,  0] ../../source3/modules/vfs_streams_xattr.c:499(streams_xattr_unlink_internal)
Oct 02 10:44:31 hermes smbd[13859]:   PANIC: assert failed at ../../source3/modules/vfs_streams_xattr.c(499): smb_fname->fsp != NULL
Oct 02 10:44:31 hermes smbd[13859]: [2021/10/02 10:44:31.646072,  0] ../../lib/util/fault.c:172(smb_panic_log)
Oct 02 10:44:31 hermes smbd[13859]:   ===============================================================
Oct 02 10:44:31 hermes smbd[13859]: [2021/10/02 10:44:31.646088,  0] ../../lib/util/fault.c:173(smb_panic_log)
Oct 02 10:44:31 hermes smbd[13859]:   INTERNAL ERROR: assert failed: smb_fname->fsp != NULL in pid 13859 (4.15.0)
Oct 02 10:44:31 hermes smbd[13859]: [2021/10/02 10:44:31.646103,  0] ../../lib/util/fault.c:177(smb_panic_log)
Oct 02 10:44:31 hermes smbd[13859]:   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
Oct 02 10:44:31 hermes smbd[13859]: [2021/10/02 10:44:31.646116,  0] ../../lib/util/fault.c:182(smb_panic_log)
Oct 02 10:44:31 hermes smbd[13859]:   ===============================================================
Oct 02 10:44:31 hermes smbd[13859]: [2021/10/02 10:44:31.646130,  0] ../../lib/util/fault.c:183(smb_panic_log)
Oct 02 10:44:31 hermes smbd[13859]:   PANIC (pid 13859): assert failed: smb_fname->fsp != NULL in 4.15.0
Oct 02 10:44:31 hermes smbd[13859]: [2021/10/02 10:44:31.646447,  0] ../../lib/util/fault.c:287(log_stack_trace)
Oct 02 10:44:31 hermes smbd[13859]:   BACKTRACE: 29 stack frames:
Oct 02 10:44:31 hermes smbd[13859]:    #0 /usr/lib/libsamba-util.so.0(log_stack_trace+0x31) [0x7fb3ac3cb8c1]
Oct 02 10:44:31 hermes smbd[13859]:    #1 /usr/lib/libsamba-util.so.0(smb_panic+0xa) [0x7fb3ac3cbb2a]
Oct 02 10:44:31 hermes smbd[13859]:    #2 /usr/lib/samba/vfs/streams_xattr.so(+0x5ddc) [0x7fb3a706bddc]
Oct 02 10:44:31 hermes smbd[13859]:    #3 /usr/lib/samba/vfs/fruit.so(+0xb5c3) [0x7fb3a704e5c3]
Oct 02 10:44:31 hermes smbd[13859]:    #4 /usr/lib/samba/vfs/fruit.so(+0xedd5) [0x7fb3a7051dd5]
Oct 02 10:44:31 hermes smbd[13859]:    #5 /usr/lib/samba/vfs/catia.so(+0x6329) [0x7fb3a703b329]
Oct 02 10:44:31 hermes smbd[13859]:    #6 /usr/lib/samba/libsmbd-base-samba4.so(close_file+0x16a6) [0x7fb3ac552376]
Oct 02 10:44:31 hermes smbd[13859]:    #7 /usr/lib/samba/libsmbd-base-samba4.so(+0x15af92) [0x7fb3ac58cf92]
Oct 02 10:44:31 hermes smbd[13859]:    #8 /usr/lib/samba/libsmbd-base-samba4.so(smbd_smb2_request_process_close+0x222) [0x7fb3ac58d782]
Oct 02 10:44:31 hermes smbd[13859]:    #9 /usr/lib/samba/libsmbd-base-samba4.so(smbd_smb2_request_dispatch+0x17db) [0x7fb3ac5815fb]
Oct 02 10:44:31 hermes smbd[13859]:    #10 /usr/lib/samba/libsmbd-base-samba4.so(smbd_smb2_request_dispatch_immediate+0x51) [0x7fb3ac5827d1]
Oct 02 10:44:31 hermes smbd[13859]:    #11 /usr/lib/libtevent.so.0(tevent_common_invoke_immediate_handler+0x193) [0x7fb3ac02b8b3]
Oct 02 10:44:31 hermes smbd[13859]:    #12 /usr/lib/libtevent.so.0(tevent_common_loop_immediate+0x1b) [0x7fb3ac02b8db]
Oct 02 10:44:31 hermes smbd[13859]:    #13 /usr/lib/libtevent.so.0(+0xd7b0) [0x7fb3ac0317b0]
Oct 02 10:44:31 hermes smbd[13859]:    #14 /usr/lib/libtevent.so.0(+0xbaa9) [0x7fb3ac02faa9]
Oct 02 10:44:31 hermes smbd[13859]:    #15 /usr/lib/libtevent.so.0(_tevent_loop_once+0x95) [0x7fb3ac02a735]
Oct 02 10:44:31 hermes smbd[13859]:    #16 /usr/lib/libtevent.so.0(tevent_common_loop_wait+0x1c) [0x7fb3ac02aa3c]
Oct 02 10:44:31 hermes smbd[13859]:    #17 /usr/lib/libtevent.so.0(+0xba49) [0x7fb3ac02fa49]
Oct 02 10:44:31 hermes smbd[13859]:    #18 /usr/lib/samba/libsmbd-base-samba4.so(smbd_process+0x89b) [0x7fb3ac56ed4b]
Oct 02 10:44:31 hermes smbd[13859]:    #19 /usr/bin/smbd(+0xdde1) [0x557d73510de1]
Oct 02 10:44:31 hermes smbd[13859]:    #20 /usr/lib/libtevent.so.0(tevent_common_invoke_fd_handler+0x93) [0x7fb3ac02b323]
Oct 02 10:44:31 hermes smbd[13859]:    #21 /usr/lib/libtevent.so.0(+0xd9e8) [0x7fb3ac0319e8]
Oct 02 10:44:31 hermes smbd[13859]:    #22 /usr/lib/libtevent.so.0(+0xbaa9) [0x7fb3ac02faa9]
Oct 02 10:44:31 hermes smbd[13859]:    #23 /usr/lib/libtevent.so.0(_tevent_loop_once+0x95) [0x7fb3ac02a735]
Oct 02 10:44:31 hermes smbd[13859]:    #24 /usr/lib/libtevent.so.0(tevent_common_loop_wait+0x1c) [0x7fb3ac02aa3c]
Oct 02 10:44:31 hermes smbd[13859]:    #25 /usr/lib/libtevent.so.0(+0xba49) [0x7fb3ac02fa49]
Oct 02 10:44:31 hermes smbd[13859]:    #26 /usr/bin/smbd(main+0x1b75) [0x557d7350abb5]
Oct 02 10:44:31 hermes smbd[13859]:    #27 /usr/lib/libc.so.6(__libc_start_main+0xd5) [0x7fb3abd28b25]
Oct 02 10:44:31 hermes smbd[13859]:    #28 /usr/bin/smbd(_start+0x2e) [0x557d7350b14e]
Oct 02 10:44:31 hermes smbd[13859]: [2021/10/02 10:44:31.646602,  0] ../../source3/lib/dumpcore.c:317(dump_core)
Oct 02 10:44:31 hermes smbd[13859]:   coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern

My smb.conf is pretty standard, except I have vfs enabled and samba was working until today when I upgraded my system

#### VFS ####
   vfs objects = catia fruit streams_xattr
   fruit:resource = stream
   fruit:metadata = stream

Looks like streams_xattr is broken, any thoughts ?

Last edited by lboregard (2021-10-14 16:07:31)

Offline

#2 2021-10-02 17:06:06

lboregard
Member
Registered: 2014-05-19
Posts: 17

Re: [SOLVED] samba crash

Samba 4.15.0, has completely rewritten vfs, so I figured something had to give.

There are no specific breaking changes mentioned in the release notes, but man vfs_fruit still mentions fruit:resource = stream as experimental and not recommened with streams_xattr

I've changed my vfs smb.conf to

#### VFS ####
   min protocol = SMB2
   vfs objects = fruit streams_xattr
   fruit:aapl = yes
#   fruit:resource = stream
   fruit:metadata = stream


Tried deleting, viewing and adding files to a folder from my Mac and it seems to be working fine.

I'll keep an eye on things smile

Offline

Board footer

Powered by FluxBB