• smbd regularly panicking and dumping core


    nathan47
    • Urgent

    I have been unable to reach my shares that I use for photo store and for time machine. Both shares are on ZFS pools that I share over smb. I've noticed this problem since upgrading to 6.9.0rc2 that every time any of the Macs in my household attempt a connection to these shares, smbd on Unraid panics and dumps core:

     

    Feb  2 21:47:02 TaylorPlex smbd[10956]: [2021/02/02 21:47:02.747403,  0] ../../source3/lib/sysquotas.c:565(sys_get_quota)

    Feb  2 21:47:02 TaylorPlex smbd[10956]:   sys_path_to_bdev() failed for path [.]!

    Feb  2 21:47:02 TaylorPlex smbd[10956]: [2021/02/02 21:47:02.747487,  0] ../../source3/lib/sysquotas.c:565(sys_get_quota)

    Feb  2 21:47:02 TaylorPlex smbd[10956]:   sys_path_to_bdev() failed for path [.]!

    Feb  2 21:47:02 TaylorPlex smbd[10956]: [2021/02/02 21:47:02.747543,  0] ../../source3/lib/sysquotas.c:565(sys_get_quota)

    Feb  2 21:47:02 TaylorPlex smbd[10956]:   sys_path_to_bdev() failed for path [.]!

    Feb  2 21:47:02 TaylorPlex smbd[10956]: [2021/02/02 21:47:02.747603,  0] ../../source3/lib/sysquotas.c:565(sys_get_quota)

    Feb  2 21:47:02 TaylorPlex smbd[10956]:   sys_path_to_bdev() failed for path [.]!

    Feb  2 21:47:02 TaylorPlex smbd[10956]: [2021/02/02 21:47:02.774289,  0] ../../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)

    Feb  2 21:47:02 TaylorPlex smbd[10956]:   Bad talloc magic value - unknown value

    Feb  2 21:47:02 TaylorPlex smbd[10956]: [2021/02/02 21:47:02.774326,  0] ../../source3/lib/util.c:829(smb_panic_s3)

    Feb  2 21:47:02 TaylorPlex smbd[10956]:   PANIC (pid 10956): Bad talloc magic value - unknown value

    Feb  2 21:47:02 TaylorPlex smbd[10956]: [2021/02/02 21:47:02.774406,  0] ../../lib/util/fault.c:222(log_stack_trace)

    Feb  2 21:47:02 TaylorPlex smbd[10956]:   BACKTRACE:

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #0 log_stack_trace + 0x39 [ip=0x1485eed71139] [sp=0x7ffd6205f180]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #1 smb_panic_s3 + 0x23 [ip=0x1485eed20ee3] [sp=0x7ffd6205fac0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #2 smb_panic + 0x2f [ip=0x1485eed7134f] [sp=0x7ffd6205fae0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #3 <unknown symbol> [ip=0x1485ee40d497] [sp=0x7ffd6205fbf0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #4 get_share_mode_lock + 0x32d [ip=0x1485eeff48dd] [sp=0x7ffd6205fc20]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #5 smbd_contend_level2_oplocks_begin + 0xd1 [ip=0x1485eef67741] [sp=0x7ffd6205fc80]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #6 brl_lock + 0x563 [ip=0x1485eefeccd3] [sp=0x7ffd6205fd50]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #7 dcesrv_setup_ncacn_ip_tcp_sockets + 0x2fe [ip=0x1485eefe91ee] [sp=0x7ffd6205fe20]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #8 release_posix_lock_posix_flavour + 0x1cd7 [ip=0x1485eeff2ca7] [sp=0x7ffd6205feb0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #9 db_open + 0xbae [ip=0x1485eed1740e] [sp=0x7ffd6205fee0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #10 db_open_rbt + 0x7dd [ip=0x1485ee055a9d] [sp=0x7ffd6205ff70]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #11 dbwrap_do_locked + 0x5d [ip=0x1485ee05331d] [sp=0x7ffd62060020]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #12 db_open + 0x67e [ip=0x1485eed16ede] [sp=0x7ffd62060070]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #13 dbwrap_do_locked + 0x5d [ip=0x1485ee05331d] [sp=0x7ffd620600f0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #14 share_mode_do_locked + 0xe2 [ip=0x1485eeff4ce2] [sp=0x7ffd62060140]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #15 do_lock + 0x128 [ip=0x1485eefe9e88] [sp=0x7ffd62060190]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #16 <unknown symbol> [ip=0x1485e9a7e9bc] [sp=0x7ffd62060280]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #17 smbd_smb2_request_process_create + 0xb15 [ip=0x1485eef44e85] [sp=0x7ffd62060390]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #18 smbd_smb2_request_dispatch + 0xd3e [ip=0x1485eef3c4ae] [sp=0x7ffd620604f0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #19 smbd_smb2_request_dispatch_immediate + 0x730 [ip=0x1485eef3d1c0] [sp=0x7ffd62060580]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #20 tevent_common_invoke_fd_handler + 0x7d [ip=0x1485ee3ca70d] [sp=0x7ffd620605f0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #21 tevent_wakeup_recv + 0x1097 [ip=0x1485ee3d0a77] [sp=0x7ffd62060620]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #22 tevent_cleanup_pending_signal_handlers + 0xb7 [ip=0x1485ee3cec07] [sp=0x7ffd62060680]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #23 _tevent_loop_once + 0x94 [ip=0x1485ee3c9df4] [sp=0x7ffd620606a0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #24 tevent_common_loop_wait + 0x1b [ip=0x1485ee3ca09b] [sp=0x7ffd620606d0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #25 tevent_cleanup_pending_signal_handlers + 0x57 [ip=0x1485ee3ceba7] [sp=0x7ffd620606f0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #26 smbd_process + 0x7a7 [ip=0x1485eef2c5d7] [sp=0x7ffd62060710]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #27 start_mdssd + 0x2791 [ip=0x56242a18f621] [sp=0x7ffd620607a0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #28 tevent_common_invoke_fd_handler + 0x7d [ip=0x1485ee3ca70d] [sp=0x7ffd62060870]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #29 tevent_wakeup_recv + 0x1097 [ip=0x1485ee3d0a77] [sp=0x7ffd620608a0]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #30 tevent_cleanup_pending_signal_handlers + 0xb7 [ip=0x1485ee3cec07] [sp=0x7ffd62060900]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #31 _tevent_loop_once + 0x94 [ip=0x1485ee3c9df4] [sp=0x7ffd62060920]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #32 tevent_common_loop_wait + 0x1b [ip=0x1485ee3ca09b] [sp=0x7ffd62060950]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #33 tevent_cleanup_pending_signal_handlers + 0x57 [ip=0x1485ee3ceba7] [sp=0x7ffd62060970]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #34 main + 0x1b2f [ip=0x56242a189c1f] [sp=0x7ffd62060990]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #35 __libc_start_main + 0xeb [ip=0x1485ee201e6b] [sp=0x7ffd62060d40]

    Feb  2 21:47:02 TaylorPlex smbd[10956]:    #36 _start + 0x2a [ip=0x56242a189ffa] [sp=0x7ffd62060e00]

    Feb  2 21:47:02 TaylorPlex smbd[10956]: [2021/02/02 21:47:02.792872,  0] ../../source3/lib/dumpcore.c:315(dump_core)

    Feb  2 21:47:02 TaylorPlex smbd[10956]:   dumping core in /var/log/samba/cores/smbd

    Feb  2 21:47:02 TaylorPlex smbd[10956]:

     

    My Macs haven't backed up in over a month now, and I can't access my photo library.

    taylorplex-diagnostics-20210202-2216.zip




    User Feedback

    Recommended Comments

    On mobile now so can't look at Diagnostics yet. 

     

    Does this problem happen if you boot in SAFE mode? (no plugins)

     

     

     

    Link to comment

    You can go directly to the correct support thread for any of your plugins by clicking its Support link on the Plugins page.

    Link to comment
    25 minutes ago, nathan47 said:

    This was not an issue with 6.8.3 with the exact same configuration. Wont booting without my plug disable my ZFS pools? 

     

    Yes, it will. But that's the point. This area of the forum is for reporting bugs in pre-release versions of Unraid so it must be tested clean, without any plugins. Plugins need to work with Unraid, not the other way round. What version of the plugin are you using? It seems it was updated very recently. Have you tried the new version?

     

     

    Link to comment

    I can reproduce this issue on a standard Unraid share on the array marked for Time Machine usage. When Time Machine accesses it, smdb panics with: 

     

    Feb  4 16:52:30 TaylorPlex smbd[25740]:   PANIC (pid 25740): Bad talloc magic value - unknown value

     

    This is a crash and a loss of functionality, not tied to any specific plugin.

    Link to comment

    If you hope to be taken seriously you'll need to provide more than a single line from your syslog. Start in safe mode, reproduce the issue and post your diagnostics.

    Link to comment

    Reproduces in safe mode with same share on array.

     

    Feb  7 21:16:44 TaylorPlex smbd[10461]: [2021/02/07 21:16:44.314327,  0] ../../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)

    Feb  7 21:16:44 TaylorPlex smbd[10461]:   Bad talloc magic value - unknown value

    Feb  7 21:16:44 TaylorPlex smbd[10461]: [2021/02/07 21:16:44.314408,  0] ../../source3/lib/util.c:829(smb_panic_s3)

    Feb  7 21:16:44 TaylorPlex smbd[10461]:   PANIC (pid 10461): Bad talloc magic value - unknown value

    Feb  7 21:16:44 TaylorPlex smbd[10461]: [2021/02/07 21:16:44.314542,  0] ../../lib/util/fault.c:222(log_stack_trace)

    Feb  7 21:16:44 TaylorPlex smbd[10461]:   BACKTRACE:

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #0 log_stack_trace + 0x39 [ip=0x14a5d7bd9139] [sp=0x7ffe26d40160]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #1 smb_panic_s3 + 0x23 [ip=0x14a5d7b88ee3] [sp=0x7ffe26d40aa0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #2 smb_panic + 0x2f [ip=0x14a5d7bd934f] [sp=0x7ffe26d40ac0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #3 <unknown symbol> [ip=0x14a5d7275497] [sp=0x7ffe26d40bd0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #4 get_share_mode_lock + 0x32d [ip=0x14a5d7e5c8dd] [sp=0x7ffe26d40c00]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #5 smbd_contend_level2_oplocks_begin + 0xd1 [ip=0x14a5d7dcf741] [sp=0x7ffe26d40c60]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #6 brl_lock + 0x563 [ip=0x14a5d7e54cd3] [sp=0x7ffe26d40d30]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #7 dcesrv_setup_ncacn_ip_tcp_sockets + 0x2fe [ip=0x14a5d7e511ee] [sp=0x7ffe26d40e00]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #8 release_posix_lock_posix_flavour + 0x1cd7 [ip=0x14a5d7e5aca7] [sp=0x7ffe26d40e90]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #9 db_open + 0xbae [ip=0x14a5d7b7f40e] [sp=0x7ffe26d40ec0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #10 db_open_rbt + 0x7dd [ip=0x14a5d6ebfa9d] [sp=0x7ffe26d40f50]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #11 dbwrap_do_locked + 0x5d [ip=0x14a5d6ebd31d] [sp=0x7ffe26d41000]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #12 db_open + 0x67e [ip=0x14a5d7b7eede] [sp=0x7ffe26d41050]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #13 dbwrap_do_locked + 0x5d [ip=0x14a5d6ebd31d] [sp=0x7ffe26d410d0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #14 share_mode_do_locked + 0xe2 [ip=0x14a5d7e5cce2] [sp=0x7ffe26d41120]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #15 do_lock + 0x128 [ip=0x14a5d7e51e88] [sp=0x7ffe26d41170]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #16 <unknown symbol> [ip=0x14a5d2b289bc] [sp=0x7ffe26d41260]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #17 smbd_smb2_request_process_create + 0xb15 [ip=0x14a5d7dace85] [sp=0x7ffe26d41370]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #18 smbd_smb2_request_dispatch + 0xd3e [ip=0x14a5d7da44ae] [sp=0x7ffe26d414d0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #19 smbd_smb2_request_dispatch_immediate + 0x730 [ip=0x14a5d7da51c0] [sp=0x7ffe26d41560]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #20 tevent_common_invoke_fd_handler + 0x7d [ip=0x14a5d723470d] [sp=0x7ffe26d415d0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #21 tevent_wakeup_recv + 0x1097 [ip=0x14a5d723aa77] [sp=0x7ffe26d41600]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #22 tevent_cleanup_pending_signal_handlers + 0xb7 [ip=0x14a5d7238c07] [sp=0x7ffe26d41660]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #23 _tevent_loop_once + 0x94 [ip=0x14a5d7233df4] [sp=0x7ffe26d41680]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #24 tevent_common_loop_wait + 0x1b [ip=0x14a5d723409b] [sp=0x7ffe26d416b0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #25 tevent_cleanup_pending_signal_handlers + 0x57 [ip=0x14a5d7238ba7] [sp=0x7ffe26d416d0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #26 smbd_process + 0x7a7 [ip=0x14a5d7d945d7] [sp=0x7ffe26d416f0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #27 start_mdssd + 0x2791 [ip=0x55b166e35621] [sp=0x7ffe26d41780]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #28 tevent_common_invoke_fd_handler + 0x7d [ip=0x14a5d723470d] [sp=0x7ffe26d41850]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #29 tevent_wakeup_recv + 0x1097 [ip=0x14a5d723aa77] [sp=0x7ffe26d41880]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #30 tevent_cleanup_pending_signal_handlers + 0xb7 [ip=0x14a5d7238c07] [sp=0x7ffe26d418e0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #31 _tevent_loop_once + 0x94 [ip=0x14a5d7233df4] [sp=0x7ffe26d41900]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #32 tevent_common_loop_wait + 0x1b [ip=0x14a5d723409b] [sp=0x7ffe26d41930]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #33 tevent_cleanup_pending_signal_handlers + 0x57 [ip=0x14a5d7238ba7] [sp=0x7ffe26d41950]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #34 main + 0x1b2f [ip=0x55b166e2fc1f] [sp=0x7ffe26d41970]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #35 __libc_start_main + 0xeb [ip=0x14a5d706be6b] [sp=0x7ffe26d41d20]

    Feb  7 21:16:44 TaylorPlex smbd[10461]:    #36 _start + 0x2a [ip=0x55b166e2fffa] [sp=0x7ffe26d41de0]

    Feb  7 21:16:44 TaylorPlex smbd[10461]: [2021/02/07 21:16:44.335837,  0] ../../source3/lib/dumpcore.c:315(dump_core)

    Feb  7 21:16:44 TaylorPlex smbd[10461]:   dumping core in /var/log/samba/cores/smbd

     

    smbd keeps panicing while TimeMachine from my Mac attempts to discover and connect to the share, just to enable Time Machine with the share.

    taylorplex-diagnostics-20210207-2118.zip syslog.txt

    Link to comment

    It looks like a real bug in smbd. A web search for "smbd bad talloc magic value" gives a number of hits but none I can see that are less than a couple of years old and presumably thought to be fixed.

    Link to comment
    5 hours ago, nathan47 said:

    smbd keeps panicing while TimeMachine from my Mac attempts to discover and connect to the share, just to enable Time Machine with the share.

     

    If it only happens when Time Machine initiates a connection I wonder if it's "fruit" related. I gave up using network shares as Time Machine backup destinations some time ago and have since disabled the "Enhanced macOS interoperability" option in SMB Settings.

     

    Link to comment

    One thread I found seemed to indicate it was a build issue with samba, and the builtin version would work. Wonder if there is a version mismatch between samba and netatalk.

     

    My machines were backing up reliably prior to this issue. I have found that backing to the array via smb is problematic, which is why I was backing up to a separate ZFS pool. It had been both reliable and fast until I upgrade to 6.9.0.

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.