• [6.11.0-rc5] SMB errors thrown in log when connected to timemachine


    Jclendineng
    • Minor

    I set up a share, make it a timemachine share, and connect my mac to it. When I go to start a backup I get the below log event, every time, its reproducible consistently for me.

     

    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.348693,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 16 14:50:02 Tower  smbd[20057]:   talloc: access after free error - first free may be at ../../tevent_req.c:291
    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.348737,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 16 14:50:02 Tower  smbd[20057]:   Bad talloc magic value - access after free
    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.348751,  0] ../../lib/util/fault.c:172(smb_panic_log)
    Sep 16 14:50:02 Tower  smbd[20057]:   ===============================================================
    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.348764,  0] ../../lib/util/fault.c:173(smb_panic_log)
    Sep 16 14:50:02 Tower  smbd[20057]:   INTERNAL ERROR: Bad talloc magic value - access after free in pid 20057 (4.16.5)
    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.348776,  0] ../../lib/util/fault.c:177(smb_panic_log)
    Sep 16 14:50:02 Tower  smbd[20057]:   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
    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.348789,  0] ../../lib/util/fault.c:182(smb_panic_log)
    Sep 16 14:50:02 Tower  smbd[20057]:   ===============================================================
    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.348801,  0] ../../lib/util/fault.c:183(smb_panic_log)
    Sep 16 14:50:02 Tower  smbd[20057]:   PANIC (pid 20057): Bad talloc magic value - access after free in 4.16.5
    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.348902,  0] ../../lib/util/fault.c:245(log_stack_trace)
    Sep 16 14:50:02 Tower  smbd[20057]:   BACKTRACE:
    Sep 16 14:50:02 Tower  smbd[20057]:    #0 log_stack_trace + 0x39 [ip=0x14ebf1e46159] [sp=0x7fff3fe8e0e0]
    Sep 16 14:50:02 Tower  smbd[20057]:    #1 smb_panic + 0x9 [ip=0x14ebf1e464c9] [sp=0x7fff3fe8ea20]
    Sep 16 14:50:02 Tower  smbd[20057]:    #2 <unknown symbol> [ip=0x14ebf1d6aaf8] [sp=0x7fff3fe8ea30]
    Sep 16 14:50:02 Tower  smbd[20057]:    #3 fsp_set_fd + 0x46b8 [ip=0x14ebf2181e48] [sp=0x7fff3fe8ea60]
    Sep 16 14:50:02 Tower  smbd[20057]:    #4 tevent_common_invoke_immediate_handler + 0x17a [ip=0x14ebf1d57cfa] [sp=0x7fff3fe8ea90]
    Sep 16 14:50:02 Tower  smbd[20057]:    #5 tevent_common_loop_immediate + 0x16 [ip=0x14ebf1d57d16] [sp=0x7fff3fe8eaf0]
    Sep 16 14:50:02 Tower  smbd[20057]:    #6 tevent_wakeup_recv + 0xf5b [ip=0x14ebf1d5da7b] [sp=0x7fff3fe8eb00]
    Sep 16 14:50:02 Tower  smbd[20057]:    #7 tevent_signal_get_tag + 0xb7 [ip=0x14ebf1d5bd77] [sp=0x7fff3fe8eb60]
    Sep 16 14:50:02 Tower  smbd[20057]:    #8 _tevent_loop_once + 0x91 [ip=0x14ebf1d56b61] [sp=0x7fff3fe8eb80]
    Sep 16 14:50:02 Tower  smbd[20057]:    #9 tevent_common_loop_wait + 0x1b [ip=0x14ebf1d56e3b] [sp=0x7fff3fe8ebb0]
    Sep 16 14:50:02 Tower  smbd[20057]:    #10 tevent_signal_get_tag + 0x57 [ip=0x14ebf1d5bd17] [sp=0x7fff3fe8ebd0]
    Sep 16 14:50:02 Tower  smbd[20057]:    #11 smbd_process + 0x817 [ip=0x14ebf22064d7] [sp=0x7fff3fe8ebf0]
    Sep 16 14:50:02 Tower  smbd[20057]:    #12 _start + 0x22e0 [ip=0x55a967225df0] [sp=0x7fff3fe8ec80]
    Sep 16 14:50:02 Tower  smbd[20057]:    #13 tevent_common_invoke_fd_handler + 0x91 [ip=0x14ebf1d57791] [sp=0x7fff3fe8ed50]
    Sep 16 14:50:02 Tower  smbd[20057]:    #14 tevent_wakeup_recv + 0x1167 [ip=0x14ebf1d5dc87] [sp=0x7fff3fe8ed80]
    Sep 16 14:50:02 Tower  smbd[20057]:    #15 tevent_signal_get_tag + 0xb7 [ip=0x14ebf1d5bd77] [sp=0x7fff3fe8ede0]
    Sep 16 14:50:02 Tower  smbd[20057]:    #16 _tevent_loop_once + 0x91 [ip=0x14ebf1d56b61] [sp=0x7fff3fe8ee00]
    Sep 16 14:50:02 Tower  smbd[20057]:    #17 tevent_common_loop_wait + 0x1b [ip=0x14ebf1d56e3b] [sp=0x7fff3fe8ee30]
    Sep 16 14:50:02 Tower  smbd[20057]:    #18 tevent_signal_get_tag + 0x57 [ip=0x14ebf1d5bd17] [sp=0x7fff3fe8ee50]
    Sep 16 14:50:02 Tower  smbd[20057]:    #19 main + 0x1bba [ip=0x55a96722398a] [sp=0x7fff3fe8ee70]
    Sep 16 14:50:02 Tower  smbd[20057]:    #20 __libc_start_call_main + 0x67 [ip=0x14ebf1b71177] [sp=0x7fff3fe8f1a0]
    Sep 16 14:50:02 Tower  smbd[20057]:    #21 __libc_start_main + 0x85 [ip=0x14ebf1b71235] [sp=0x7fff3fe8f240]
    Sep 16 14:50:02 Tower  smbd[20057]:    #22 _start + 0x21 [ip=0x55a967223b31] [sp=0x7fff3fe8f290]
    Sep 16 14:50:02 Tower  smbd[20057]: [2022/09/16 14:50:02.360330,  0] ../../source3/lib/dumpcore.c:315(dump_core)
    Sep 16 14:50:02 Tower  smbd[20057]:   dumping core in /var/log/samba/cores/smbd
    Sep 16 14:50:02 Tower  smbd[20057]: 




    User Feedback

    Recommended Comments

    With no SMB settings in Extras:

     

    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.418723,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 20 12:48:55 Tower  smbd[8566]:   talloc: access after free error - first free may be at ../../tevent_req.c:291
    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.418781,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 20 12:48:55 Tower  smbd[8566]:   Bad talloc magic value - access after free
    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.418799,  0] ../../lib/util/fault.c:172(smb_panic_log)
    Sep 20 12:48:55 Tower  smbd[8566]:   ===============================================================
    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.418816,  0] ../../lib/util/fault.c:173(smb_panic_log)
    Sep 20 12:48:55 Tower  smbd[8566]:   INTERNAL ERROR: Bad talloc magic value - access after free in pid 8566 (4.16.5)
    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.418833,  0] ../../lib/util/fault.c:177(smb_panic_log)
    Sep 20 12:48:55 Tower  smbd[8566]:   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
    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.418849,  0] ../../lib/util/fault.c:182(smb_panic_log)
    Sep 20 12:48:55 Tower  smbd[8566]:   ===============================================================
    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.418861,  0] ../../lib/util/fault.c:183(smb_panic_log)
    Sep 20 12:48:55 Tower  smbd[8566]:   PANIC (pid 8566): Bad talloc magic value - access after free in 4.16.5
    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.418962,  0] ../../lib/util/fault.c:245(log_stack_trace)
    Sep 20 12:48:55 Tower  smbd[8566]:   BACKTRACE:
    Sep 20 12:48:55 Tower  smbd[8566]:    #0 log_stack_trace + 0x39 [ip=0x1507cebc1159] [sp=0x7ffc71327bf0]
    Sep 20 12:48:55 Tower  smbd[8566]:    #1 smb_panic + 0x9 [ip=0x1507cebc14c9] [sp=0x7ffc71328530]
    Sep 20 12:48:55 Tower  smbd[8566]:    #2 <unknown symbol> [ip=0x1507ceae5af8] [sp=0x7ffc71328540]
    Sep 20 12:48:55 Tower  smbd[8566]:    #3 fsp_set_fd + 0x46b8 [ip=0x1507ceefce48] [sp=0x7ffc71328570]
    Sep 20 12:48:55 Tower  smbd[8566]:    #4 tevent_common_invoke_immediate_handler + 0x17a [ip=0x1507cead2cfa] [sp=0x7ffc713285a0]
    Sep 20 12:48:55 Tower  smbd[8566]:    #5 tevent_common_loop_immediate + 0x16 [ip=0x1507cead2d16] [sp=0x7ffc71328600]
    Sep 20 12:48:55 Tower  smbd[8566]:    #6 tevent_wakeup_recv + 0xf5b [ip=0x1507cead8a7b] [sp=0x7ffc71328610]
    Sep 20 12:48:55 Tower  smbd[8566]:    #7 tevent_signal_get_tag + 0xb7 [ip=0x1507cead6d77] [sp=0x7ffc71328670]
    Sep 20 12:48:55 Tower  smbd[8566]:    #8 _tevent_loop_once + 0x91 [ip=0x1507cead1b61] [sp=0x7ffc71328690]
    Sep 20 12:48:55 Tower  smbd[8566]:    #9 tevent_common_loop_wait + 0x1b [ip=0x1507cead1e3b] [sp=0x7ffc713286c0]
    Sep 20 12:48:55 Tower  smbd[8566]:    #10 tevent_signal_get_tag + 0x57 [ip=0x1507cead6d17] [sp=0x7ffc713286e0]
    Sep 20 12:48:55 Tower  smbd[8566]:    #11 smbd_process + 0x817 [ip=0x1507cef814d7] [sp=0x7ffc71328700]
    Sep 20 12:48:55 Tower  smbd[8566]:    #12 _start + 0x22e0 [ip=0x5556021cfdf0] [sp=0x7ffc71328790]
    Sep 20 12:48:55 Tower  smbd[8566]:    #13 tevent_common_invoke_fd_handler + 0x91 [ip=0x1507cead2791] [sp=0x7ffc71328860]
    Sep 20 12:48:55 Tower  smbd[8566]:    #14 tevent_wakeup_recv + 0x1167 [ip=0x1507cead8c87] [sp=0x7ffc71328890]
    Sep 20 12:48:55 Tower  smbd[8566]:    #15 tevent_signal_get_tag + 0xb7 [ip=0x1507cead6d77] [sp=0x7ffc713288f0]
    Sep 20 12:48:55 Tower  smbd[8566]:    #16 _tevent_loop_once + 0x91 [ip=0x1507cead1b61] [sp=0x7ffc71328910]
    Sep 20 12:48:55 Tower  smbd[8566]:    #17 tevent_common_loop_wait + 0x1b [ip=0x1507cead1e3b] [sp=0x7ffc71328940]
    Sep 20 12:48:55 Tower  smbd[8566]:    #18 tevent_signal_get_tag + 0x57 [ip=0x1507cead6d17] [sp=0x7ffc71328960]
    Sep 20 12:48:55 Tower  smbd[8566]:    #19 main + 0x1bba [ip=0x5556021cd98a] [sp=0x7ffc71328980]
    Sep 20 12:48:55 Tower  smbd[8566]:    #20 __libc_start_call_main + 0x67 [ip=0x1507ce8ec177] [sp=0x7ffc71328cb0]
    Sep 20 12:48:55 Tower  smbd[8566]:    #21 __libc_start_main + 0x85 [ip=0x1507ce8ec235] [sp=0x7ffc71328d50]
    Sep 20 12:48:55 Tower  smbd[8566]:    #22 _start + 0x21 [ip=0x5556021cdb31] [sp=0x7ffc71328da0]
    Sep 20 12:48:55 Tower  smbd[8566]: [2022/09/20 12:48:55.430112,  0] ../../source3/lib/dumpcore.c:315(dump_core)
    Sep 20 12:48:55 Tower  smbd[8566]:   dumping core in /var/log/samba/cores/smbd
    Sep 20 12:48:55 Tower  smbd[8566]: 

    Link to comment

    Thank you for the diags.  Please retest with 6.11 stable which has update Samba.  I was able to perform a complete TM backup from wife's iMac to an Unraid server using 6.11.

     

     

    Link to comment

    Updated to 11 Stable and same issue, attached is the diag.  Thanks!

     

    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177087,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 23 13:44:29 Tower  smbd[24274]:   talloc: access after free error - first free may be at ../../tevent_req.c:291
    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177154,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 23 13:44:29 Tower  smbd[24274]:   Bad talloc magic value - access after free
    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177171,  0] ../../lib/util/fault.c:173(smb_panic_log)
    Sep 23 13:44:29 Tower  smbd[24274]:   ===============================================================
    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177195,  0] ../../lib/util/fault.c:174(smb_panic_log)
    Sep 23 13:44:29 Tower  smbd[24274]:   INTERNAL ERROR: Bad talloc magic value - access after free in pid 24274 (4.17.0)
    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177214,  0] ../../lib/util/fault.c:178(smb_panic_log)
    Sep 23 13:44:29 Tower  smbd[24274]:   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
    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177239,  0] ../../lib/util/fault.c:183(smb_panic_log)
    Sep 23 13:44:29 Tower  smbd[24274]:   ===============================================================
    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177256,  0] ../../lib/util/fault.c:184(smb_panic_log)
    Sep 23 13:44:29 Tower  smbd[24274]:   PANIC (pid 24274): Bad talloc magic value - access after free in 4.17.0
    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177520,  0] ../../lib/util/fault.c:292(log_stack_trace)
    Sep 23 13:44:29 Tower  smbd[24274]:   BACKTRACE: 23 stack frames:
    Sep 23 13:44:29 Tower  smbd[24274]:    #0 /usr/lib64/libgenrand-samba4.so(log_stack_trace+0x2e) [0x14b3320a464e]
    Sep 23 13:44:29 Tower  smbd[24274]:    #1 /usr/lib64/libgenrand-samba4.so(smb_panic+0x9) [0x14b3320a48a9]
    Sep 23 13:44:29 Tower  smbd[24274]:    #2 /usr/lib64/libtalloc.so.2(+0x3af8) [0x14b332053af8]
    Sep 23 13:44:29 Tower  smbd[24274]:    #3 /usr/lib64/libsmbd-base-samba4.so(+0x55df8) [0x14b33248cdf8]
    Sep 23 13:44:29 Tower  smbd[24274]:    #4 /usr/lib64/libtevent.so.0(tevent_common_invoke_immediate_handler+0x17a) [0x14b332067cfa]
    Sep 23 13:44:29 Tower  smbd[24274]:    #5 /usr/lib64/libtevent.so.0(tevent_common_loop_immediate+0x16) [0x14b332067d16]
    Sep 23 13:44:29 Tower  smbd[24274]:    #6 /usr/lib64/libtevent.so.0(+0xea7b) [0x14b33206da7b]
    Sep 23 13:44:29 Tower  smbd[24274]:    #7 /usr/lib64/libtevent.so.0(+0xcd77) [0x14b33206bd77]
    Sep 23 13:44:29 Tower  smbd[24274]:    #8 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x14b332066b61]
    Sep 23 13:44:29 Tower  smbd[24274]:    #9 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x14b332066e3b]
    Sep 23 13:44:29 Tower  smbd[24274]:    #10 /usr/lib64/libtevent.so.0(+0xcd17) [0x14b33206bd17]
    Sep 23 13:44:29 Tower  smbd[24274]:    #11 /usr/lib64/libsmbd-base-samba4.so(smbd_process+0x817) [0x14b3324dac77]
    Sep 23 13:44:29 Tower  smbd[24274]:    #12 /usr/sbin/smbd(+0xb090) [0x564450216090]
    Sep 23 13:44:29 Tower  smbd[24274]:    #13 /usr/lib64/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x14b332067791]
    Sep 23 13:44:29 Tower  smbd[24274]:    #14 /usr/lib64/libtevent.so.0(+0xec87) [0x14b33206dc87]
    Sep 23 13:44:29 Tower  smbd[24274]:    #15 /usr/lib64/libtevent.so.0(+0xcd77) [0x14b33206bd77]
    Sep 23 13:44:29 Tower  smbd[24274]:    #16 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x14b332066b61]
    Sep 23 13:44:29 Tower  smbd[24274]:    #17 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x14b332066e3b]
    Sep 23 13:44:29 Tower  smbd[24274]:    #18 /usr/lib64/libtevent.so.0(+0xcd17) [0x14b33206bd17]
    Sep 23 13:44:29 Tower  smbd[24274]:    #19 /usr/sbin/smbd(main+0x1489) [0x564450213259]
    Sep 23 13:44:29 Tower  smbd[24274]:    #20 /lib64/libc.so.6(+0x23177) [0x14b331e72177]
    Sep 23 13:44:29 Tower  smbd[24274]:    #21 /lib64/libc.so.6(__libc_start_main+0x85) [0x14b331e72235]
    Sep 23 13:44:29 Tower  smbd[24274]:    #22 /usr/sbin/smbd(_start+0x21) [0x564450213b31]
    Sep 23 13:44:29 Tower  smbd[24274]: [2022/09/23 13:44:29.177751,  0] ../../source3/lib/dumpcore.c:315(dump_core)
    Sep 23 13:44:29 Tower  smbd[24274]:   dumping core in /var/log/samba/cores/smbd
    Sep 23 13:44:29 Tower  smbd[24274]: 
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.827559,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 23 13:45:20 Tower  smbd[25221]:   talloc: access after free error - first free may be at ../../tevent_req.c:291
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.827612,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 23 13:45:20 Tower  smbd[25221]:   Bad talloc magic value - access after free
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.827627,  0] ../../lib/util/fault.c:173(smb_panic_log)
    Sep 23 13:45:20 Tower  smbd[25221]:   ===============================================================
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.827644,  0] ../../lib/util/fault.c:174(smb_panic_log)
    Sep 23 13:45:20 Tower  smbd[25221]:   INTERNAL ERROR: Bad talloc magic value - access after free in pid 25221 (4.17.0)
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.827661,  0] ../../lib/util/fault.c:178(smb_panic_log)
    Sep 23 13:45:20 Tower  smbd[25221]:   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
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.827688,  0] ../../lib/util/fault.c:183(smb_panic_log)
    Sep 23 13:45:20 Tower  smbd[25221]:   ===============================================================
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.827701,  0] ../../lib/util/fault.c:184(smb_panic_log)
    Sep 23 13:45:20 Tower  smbd[25221]:   PANIC (pid 25221): Bad talloc magic value - access after free in 4.17.0
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.827936,  0] ../../lib/util/fault.c:292(log_stack_trace)
    Sep 23 13:45:20 Tower  smbd[25221]:   BACKTRACE: 23 stack frames:
    Sep 23 13:45:20 Tower  smbd[25221]:    #0 /usr/lib64/libgenrand-samba4.so(log_stack_trace+0x2e) [0x14b3320a464e]
    Sep 23 13:45:20 Tower  smbd[25221]:    #1 /usr/lib64/libgenrand-samba4.so(smb_panic+0x9) [0x14b3320a48a9]
    Sep 23 13:45:20 Tower  smbd[25221]:    #2 /usr/lib64/libtalloc.so.2(+0x3af8) [0x14b332053af8]
    Sep 23 13:45:20 Tower  smbd[25221]:    #3 /usr/lib64/libsmbd-base-samba4.so(+0x55df8) [0x14b33248cdf8]
    Sep 23 13:45:20 Tower  smbd[25221]:    #4 /usr/lib64/libtevent.so.0(tevent_common_invoke_immediate_handler+0x17a) [0x14b332067cfa]
    Sep 23 13:45:20 Tower  smbd[25221]:    #5 /usr/lib64/libtevent.so.0(tevent_common_loop_immediate+0x16) [0x14b332067d16]
    Sep 23 13:45:20 Tower  smbd[25221]:    #6 /usr/lib64/libtevent.so.0(+0xea7b) [0x14b33206da7b]
    Sep 23 13:45:20 Tower  smbd[25221]:    #7 /usr/lib64/libtevent.so.0(+0xcd77) [0x14b33206bd77]
    Sep 23 13:45:20 Tower  smbd[25221]:    #8 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x14b332066b61]
    Sep 23 13:45:20 Tower  smbd[25221]:    #9 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x14b332066e3b]
    Sep 23 13:45:20 Tower  smbd[25221]:    #10 /usr/lib64/libtevent.so.0(+0xcd17) [0x14b33206bd17]
    Sep 23 13:45:20 Tower  smbd[25221]:    #11 /usr/lib64/libsmbd-base-samba4.so(smbd_process+0x817) [0x14b3324dac77]
    Sep 23 13:45:20 Tower  smbd[25221]:    #12 /usr/sbin/smbd(+0xb090) [0x564450216090]
    Sep 23 13:45:20 Tower  smbd[25221]:    #13 /usr/lib64/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x14b332067791]
    Sep 23 13:45:20 Tower  smbd[25221]:    #14 /usr/lib64/libtevent.so.0(+0xec87) [0x14b33206dc87]
    Sep 23 13:45:20 Tower  smbd[25221]:    #15 /usr/lib64/libtevent.so.0(+0xcd77) [0x14b33206bd77]
    Sep 23 13:45:20 Tower  smbd[25221]:    #16 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x14b332066b61]
    Sep 23 13:45:20 Tower  smbd[25221]:    #17 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x14b332066e3b]
    Sep 23 13:45:20 Tower  smbd[25221]:    #18 /usr/lib64/libtevent.so.0(+0xcd17) [0x14b33206bd17]
    Sep 23 13:45:20 Tower  smbd[25221]:    #19 /usr/sbin/smbd(main+0x1489) [0x564450213259]
    Sep 23 13:45:20 Tower  smbd[25221]:    #20 /lib64/libc.so.6(+0x23177) [0x14b331e72177]
    Sep 23 13:45:20 Tower  smbd[25221]:    #21 /lib64/libc.so.6(__libc_start_main+0x85) [0x14b331e72235]
    Sep 23 13:45:20 Tower  smbd[25221]:    #22 /usr/sbin/smbd(_start+0x21) [0x564450213b31]
    Sep 23 13:45:20 Tower  smbd[25221]: [2022/09/23 13:45:20.828090,  0] ../../source3/lib/dumpcore.c:315(dump_core)
    Sep 23 13:45:20 Tower  smbd[25221]:   dumping core in /var/log/samba/cores/smbd
    Sep 23 13:45:20 Tower  smbd[25221]: 

    tower-diagnostics-20220923-1346.zip

    Link to comment

    1 thing to note, I did test with and without encryption set up in time machine and the non-encrypted test worked, so its just the encrypted backup thats causing the above trace. 

    Link to comment

    I have the same problem on Unraid 6.11.0. I'm using encrypted btrfs disks and am trying to do an encrypted Time Machine back-up and am unable to complete (or even start) a Time Machine backup. My logs look similar to those of the other users, it appears that the samba daemon is crashing.

     

    Without Time Machine encryption enabled, the backup does start successfully.

     

    Sep 28 11:41:40 Nasje  smbd[1353]:   talloc: access after free error - first free may be at ../../tevent_req.c:291
    Sep 28 11:41:40 Nasje  smbd[1353]: [2022/09/28 11:41:40.426443,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 28 11:41:40 Nasje  smbd[1353]:   Bad talloc magic value - access after free
    Sep 28 11:41:40 Nasje  smbd[1353]: [2022/09/28 11:41:40.426463,  0] ../../lib/util/fault.c:173(smb_panic_log)
    Sep 28 11:41:40 Nasje  smbd[1353]:   ===============================================================
    Sep 28 11:41:40 Nasje  smbd[1353]: [2022/09/28 11:41:40.426487,  0] ../../lib/util/fault.c:174(smb_panic_log)
    Sep 28 11:41:40 Nasje  smbd[1353]:   INTERNAL ERROR: Bad talloc magic value - access after free in pid 1353 (4.17.0)
    Sep 28 11:41:40 Nasje  smbd[1353]: [2022/09/28 11:41:40.426507,  0] ../../lib/util/fault.c:178(smb_panic_log)
    Sep 28 11:41:40 Nasje  smbd[1353]:   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
    Sep 28 11:41:40 Nasje  smbd[1353]: [2022/09/28 11:41:40.426529,  0] ../../lib/util/fault.c:183(smb_panic_log)
    Sep 28 11:41:40 Nasje  smbd[1353]:   ===============================================================
    Sep 28 11:41:40 Nasje  smbd[1353]: [2022/09/28 11:41:40.426547,  0] ../../lib/util/fault.c:184(smb_panic_log)
    Sep 28 11:41:40 Nasje  smbd[1353]:   PANIC (pid 1353): Bad talloc magic value - access after free in 4.17.0
    Sep 28 11:41:40 Nasje  smbd[1353]: [2022/09/28 11:41:40.426853,  0] ../../lib/util/fault.c:292(log_stack_trace)
    Sep 28 11:41:40 Nasje  smbd[1353]:   BACKTRACE: 23 stack frames:
    Sep 28 11:41:40 Nasje  smbd[1353]:    #0 /usr/lib64/libgenrand-samba4.so(log_stack_trace+0x2e) [0x1460ff94a64e]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #1 /usr/lib64/libgenrand-samba4.so(smb_panic+0x9) [0x1460ff94a8a9]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #2 /usr/lib64/libtalloc.so.2(+0x3af8) [0x1460ff8f9af8]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #3 /usr/lib64/libsmbd-base-samba4.so(+0x55df8) [0x1460ffd32df8]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #4 /usr/lib64/libtevent.so.0(tevent_common_invoke_immediate_handler+0x17a) [0x1460ff90dcfa]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #5 /usr/lib64/libtevent.so.0(tevent_common_loop_immediate+0x16) [0x1460ff90dd16]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #6 /usr/lib64/libtevent.so.0(+0xea7b) [0x1460ff913a7b]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #7 /usr/lib64/libtevent.so.0(+0xcd77) [0x1460ff911d77]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #8 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x1460ff90cb61]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #9 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x1460ff90ce3b]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #10 /usr/lib64/libtevent.so.0(+0xcd17) [0x1460ff911d17]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #11 /usr/lib64/libsmbd-base-samba4.so(smbd_process+0x817) [0x1460ffd80c77]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #12 /usr/sbin/smbd(+0xb090) [0x55a13241b090]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #13 /usr/lib64/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x1460ff90d791]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #14 /usr/lib64/libtevent.so.0(+0xec87) [0x1460ff913c87]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #15 /usr/lib64/libtevent.so.0(+0xcd77) [0x1460ff911d77]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #16 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x1460ff90cb61]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #17 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x1460ff90ce3b]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #18 /usr/lib64/libtevent.so.0(+0xcd17) [0x1460ff911d17]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #19 /usr/sbin/smbd(main+0x1489) [0x55a132418259]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #20 /lib64/libc.so.6(+0x23177) [0x1460ff719177]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #21 /lib64/libc.so.6(__libc_start_main+0x85) [0x1460ff719235]
    Sep 28 11:41:40 Nasje  smbd[1353]:    #22 /usr/sbin/smbd(_start+0x21) [0x55a132418b31]
    Sep 28 11:41:40 Nasje  smbd[1353]: [2022/09/28 11:41:40.427614,  0] ../../source3/lib/dumpcore.c:315(dump_core)
    Sep 28 11:41:40 Nasje  smbd[1353]:   dumping core in /var/log/samba/cores/smbd
    Sep 28 11:41:40 Nasje  smbd[1353]: 
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.708657,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 28 11:43:17 Nasje  smbd[2708]:   talloc: access after free error - first free may be at ../../tevent_req.c:291
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.708722,  0] ../../lib/cmdline/cmdline.c:56(_samba_cmdline_talloc_log)
    Sep 28 11:43:17 Nasje  smbd[2708]:   Bad talloc magic value - access after free
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.708742,  0] ../../lib/util/fault.c:173(smb_panic_log)
    Sep 28 11:43:17 Nasje  smbd[2708]:   ===============================================================
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.708766,  0] ../../lib/util/fault.c:174(smb_panic_log)
    Sep 28 11:43:17 Nasje  smbd[2708]:   INTERNAL ERROR: Bad talloc magic value - access after free in pid 2708 (4.17.0)
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.708785,  0] ../../lib/util/fault.c:178(smb_panic_log)
    Sep 28 11:43:17 Nasje  smbd[2708]:   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
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.708806,  0] ../../lib/util/fault.c:183(smb_panic_log)
    Sep 28 11:43:17 Nasje  smbd[2708]:   ===============================================================
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.708830,  0] ../../lib/util/fault.c:184(smb_panic_log)
    Sep 28 11:43:17 Nasje  smbd[2708]:   PANIC (pid 2708): Bad talloc magic value - access after free in 4.17.0
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.709240,  0] ../../lib/util/fault.c:292(log_stack_trace)
    Sep 28 11:43:17 Nasje  smbd[2708]:   BACKTRACE: 23 stack frames:
    Sep 28 11:43:17 Nasje  smbd[2708]:    #0 /usr/lib64/libgenrand-samba4.so(log_stack_trace+0x2e) [0x1460ff94a64e]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #1 /usr/lib64/libgenrand-samba4.so(smb_panic+0x9) [0x1460ff94a8a9]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #2 /usr/lib64/libtalloc.so.2(+0x3af8) [0x1460ff8f9af8]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #3 /usr/lib64/libsmbd-base-samba4.so(+0x55df8) [0x1460ffd32df8]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #4 /usr/lib64/libtevent.so.0(tevent_common_invoke_immediate_handler+0x17a) [0x1460ff90dcfa]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #5 /usr/lib64/libtevent.so.0(tevent_common_loop_immediate+0x16) [0x1460ff90dd16]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #6 /usr/lib64/libtevent.so.0(+0xea7b) [0x1460ff913a7b]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #7 /usr/lib64/libtevent.so.0(+0xcd77) [0x1460ff911d77]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #8 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x1460ff90cb61]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #9 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x1460ff90ce3b]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #10 /usr/lib64/libtevent.so.0(+0xcd17) [0x1460ff911d17]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #11 /usr/lib64/libsmbd-base-samba4.so(smbd_process+0x817) [0x1460ffd80c77]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #12 /usr/sbin/smbd(+0xb090) [0x55a13241b090]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #13 /usr/lib64/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x1460ff90d791]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #14 /usr/lib64/libtevent.so.0(+0xec87) [0x1460ff913c87]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #15 /usr/lib64/libtevent.so.0(+0xcd77) [0x1460ff911d77]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #16 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x1460ff90cb61]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #17 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x1460ff90ce3b]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #18 /usr/lib64/libtevent.so.0(+0xcd17) [0x1460ff911d17]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #19 /usr/sbin/smbd(main+0x1489) [0x55a132418259]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #20 /lib64/libc.so.6(+0x23177) [0x1460ff719177]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #21 /lib64/libc.so.6(__libc_start_main+0x85) [0x1460ff719235]
    Sep 28 11:43:17 Nasje  smbd[2708]:    #22 /usr/sbin/smbd(_start+0x21) [0x55a132418b31]
    Sep 28 11:43:17 Nasje  smbd[2708]: [2022/09/28 11:43:17.710130,  0] ../../source3/lib/dumpcore.c:315(dump_core)
    Sep 28 11:43:17 Nasje  smbd[2708]:   dumping core in /var/log/samba/cores/smbd
    Sep 28 11:43:17 Nasje  smbd[2708]: 
    

     

    Edited by Obbut
    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.