Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-108646

SMB core dump with large file set copy from Mac

    XMLWordPrintable

    Details

      Description

      When copying large file sets (was using trees with ~2-4k smaller files) from my Macs (running latest Catalina) via SMB on the latest TrueNAS Scale, the transfer will eventually stop at some random point with the following message on the Mac:

      "The operation can’t be completed because an item with the name “<some-file-name>” already exists."

      The TrueNAS Scale console reports a core dump.  I'm including a couple examples below, but what I "think" is happening is that Samba is core dumping (for whatever reason) and when it comes back up the Mac re-connects and tries to send the last file again which I'm guessing already exists because it happened to have been written before the dump.  Just a guess though :) 

      The filesystem was created with "SMB" set, and I've tried a variety of SMB share settings including the default, smb+afp, and private with just Apple character encoding.  Here are a couple examples:

       

      Mac error: 

      The operation can’t be completed because an item with the name “index.js” already exists.

      TrueNAS Scale console:

      truenas# 2020 Dec 13 23:27:03 truenas Process 2695864 (smbd) of user 0 dumped core.

      Stack trace of thread 2695864:
      #0  0x00007f833324bdb1 __GI_raise (libc.so.6 + 0x3bdb1)
      #1  0x00007f8333235537 __GI_abort (libc.so.6 + 0x25537)
      #2  0x00007f83336f8e10 dump_core (libsmbconf.so.0 + 0x29e10)
      #3  0x00007f8333718a51 smb_panic_s3 (libsmbconf.so.0 + 0x49a51)
      #4  0x00007f83337a4d67 smb_panic (libsamba-util.so.0 + 0x19d67)
      #5  0x00007f83339f19b2 n/a (libsmbd-base.so.0 + 0x1dd9b2)
      #6  0x00007f83334db8e6 n/a (libtalloc.so.2 + 0x48e6)
      #7  0x00007f83339ea231 set_delete_on_close (libsmbd-base.so.0 + 0x1d6231)
      #8  0x00007f8330cdd84e n/a (fruit.so + 0xd84e)
      #9  0x00007f833396431c vfs_pwrite_data (libsmbd-base.so.0 + 0x15031c)
      #10 0x00007f83338fcaa8 write_file (libsmbd-base.so.0 + 0xe8aa8)
      #11 0x00007f833399ab36 smbd_smb2_request_process_write (libsmbd-base.so.0 + 0x186b36)
      #12 0x00007f833398c2d0 smbd_smb2_request_dispatch (libsmbd-base.so.0 + 0x1782d0)
      #13 0x00007f833398de07 n/a (libsmbd-base.so.0 + 0x179e07)
      #14 0x00007f833377d10d tevent_common_invoke_fd_handler (libtevent.so.0 + 0x710d)
      #15 0x00007f8333783497 n/a (libtevent.so.0 + 0xd497)
      #16 0x00007f8333781617 n/a (libtevent.so.0 + 0xb617)
      #17 0x00007f833377c7b4 _tevent_loop_once (libtevent.so.0 + 0x67b4)
      #18 0x00007f833377ca9b tevent_common_loop_wait (libtevent.so.0 + 0x6a9b)
      #19 0x00007f83337815b7 n/a (libtevent.so.0 + 0xb5b7)
      #20 0x00007f833397abe0 smbd_process (libsmbd-base.so.0 + 0x166be0)
      #21 0x00005602c1e9a0f5 n/a (smbd + 0xb0f5)
      #22 0x00007f833377d10d tevent_common_invoke_fd_handler (libtevent.so.0 + 0x710d)
      #23 0x00007f8333783497 n/a (libtevent.so.0 + 0xd497)
      #24 0x00007f8333781617 n/a (libtevent.so.0 + 0xb617)
      #25 0x00007f833377c7b4 _tevent_loop_once (libtevent.so.0 + 0x67b4)
      #26 0x00007f833377ca9b tevent_common_loop_wait (libtevent.so.0 + 0x6a9b)
      #27 0x00007f83337815b7 n/a (libtevent.so.0 + 0xb5b7)
      #28 0x00005602c1e97b61 main (smbd + 0x8b61)
      #29 0x00007f8333236cca __libc_start_main (libc.so.6 + 0x26cca)
      #30 0x00005602c1e97dba _start (smbd + 0x8dba)

       

      Mac error: 

      The operation can’t be completed because an item with the name “HISTORY.md” already exists.

      TrueNAS Scale console:

      Stack trace of thread 2672248:
      #0  0x00007ff2f0560db1 __GI_raise (libc.so.6 + 0x3bdb1)
      #1  0x00007ff2f054a537 __GI_abort (libc.so.6 + 0x25537)
      #2  0x00007ff2f0a0de10 dump_core (libsmbconf.so.0 + 0x29e10)
      #3  0x00007ff2f0a2da51 smb_panic_s3 (libsmbconf.so.0 + 0x49a51)
      #4  0x00007ff2f0ab9d67 smb_panic (libsamba-util.so.0 + 0x19d67)
      #5  0x00007ff2f0d00150 n/a (libsmbd-base.so.0 + 0x1d7150)
      #6  0x00007ff2f07f08e6 n/a (libtalloc.so.2 + 0x48e6)
      #7  0x00007ff2f0d06d65 n/a (libsmbd-base.so.0 + 0x1ddd65)
      #8  0x00007ff2f0a27c9e n/a (libsmbconf.so.0 + 0x43c9e)
      #9  0x00007ff2f050341d n/a (libdbwrap.so.0 + 0x641d)
      #10 0x00007ff2f01327f9 tdb_parse_record (libtdb.so.1 + 0x57f9)
      #11 0x00007ff2f0503899 n/a (libdbwrap.so.0 + 0x6899)
      #12 0x00007ff2f0a25054 n/a (libsmbconf.so.0 + 0x41054)
      #13 0x00007ff2f0a29b78 g_lock_dump (libsmbconf.so.0 + 0x45b78)
      #14 0x00007ff2f0d091b2 share_mode_do_locked (libsmbd-base.so.0 + 0x1e01b2)
      #15 0x00007ff2f0cfe2c0 do_lock (libsmbd-base.so.0 + 0x1d52c0)
      #16 0x00007ff2ee00a440 n/a (fruit.so + 0xa440)
      #17 0x00007ff2f0cab555 smbd_smb2_request_process_create (libsmbd-base.so.0 + 0x182555)
      #18 0x00007ff2f0ca14dd smbd_smb2_request_dispatch (libsmbd-base.so.0 + 0x1784dd)
      #19 0x00007ff2f0ca2e07 n/a (libsmbd-base.so.0 + 0x179e07)
      #20 0x00007ff2f0a9210d tevent_common_invoke_fd_handler (libtevent.so.0 + 0x710d)
      #21 0x00007ff2f0a98497 n/a (libtevent.so.0 + 0xd497)
      #22 0x00007ff2f0a96617 n/a (libtevent.so.0 + 0xb617)
      #23 0x00007ff2f0a917b4 _tevent_loop_once (libtevent.so.0 + 0x67b4)
      #24 0x00007ff2f0a91a9b tevent_common_loop_wait (libtevent.so.0 + 0x6a9b)
      #25 0x00007ff2f0a965b7 n/a (libtevent.so.0 + 0xb5b7)
      #26 0x00007ff2f0c8fbe0 smbd_process (libsmbd-base.so.0 + 0x166be0)
      #27 0x000055eb7073b0f5 n/a (smbd + 0xb0f5)
      #28 0x00007ff2f0a9210d tevent_common_invoke_fd_handler (libtevent.so.0 + 0x710d)
      #29 0x00007ff2f0a98497 n/a (libtevent.so.0 + 0xd497)
      #30 0x00007ff2f0a96617 n/a (libtevent.so.0 + 0xb617)
      #31 0x00007ff2f0a917b4 _tevent_loop_once (libtevent.so.0 + 0x67b4)
      #32 0x00007ff2f0a91a9b tevent_common_loop_wait (libtevent.so.0 + 0x6a9b)
      #33 0x00007ff2f0a965b7 n/a (libtevent.so.0 + 0xb5b7)
      #34 0x000055eb70738b61 main (smbd + 0x8b61)
      #35 0x00007ff2f054bcca __libc_start_main (libc.so.6 + 0x26cca)
      #36 0x000055eb70738dba _start (smbd + 0x8dba)
       

       

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  releng Triage Team
                  Reporter:
                  Moonshine James Pooton
                  Watchers:
                  Andrew Walker, Bonnie Follweiler, James Pooton, William Grzybowski
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: