Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-106185

mmap segfaulting on some files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Engineering Closed (View Workflow)
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: 11.3-RELEASE
    • Fix Version/s: N/A
    • Component/s: OS
    • Labels:

      JEditor

        Description

        A reopen of Bug #47668 from the old system.

        cp fails to copy some files with the error: Bad Address.

        Our Case:

        System uptime 84 days.

        Copying approx 18000 files locally on the same ZFS share.

        Randomly, approx 5 of them will fail with "Bad Adress". All are around 200kb in size.

        cp: ./boost_1_73_0/boost/phoenix/object/detail/cpp03/preprocessed/construct_expr_50.hpp: Bad address
        cp: ./boost_1_73_0/boost/phoenix/operator/detail/cpp03/preprocessed/mem_fun_ptr_eval_40.hpp: Bad address
        cp: ./boost_1_73_0/boost/polygon/detail/polygon_arbitrary_formation.hpp: Bad address
        cp: ./boost_1_73_0/boost/fusion/container/map/detail/cpp03/preprocessed/as_map50.hpp: Bad address

         

        Truss output for one of the failed copies:

        stat("<output file>",0x7fffffffe938) ERR#2 'No such file or directory'
        openat(AT_FDCWD,"<input file>",O_RDONLY,00) = 3 (0x3)
        openat(AT_FDCWD,"<output file>",O_WRONLY|O_CREAT|O_TRUNC,0100644) = 4 (0x4)
        mmap(0x0,134681,PROT_READ,MAP_SHARED,3,0x0)      = 34366312448 (0x800645000)
        write(4,"/*=============================="...,134681) ERR#14 'Bad address'
        write(2,"cp: ",4)                                = 4 (0x4)
        write(2,"<output file trimmed>"...,83) = 83 (0x53)
        write(2,": ",2)                                  = 2 (0x2)
        write(2,"Bad address\n",12)                      = 12 (0xc)
        munmap(0x800645000,134681)                       = 0 (0x0)
        futimens(4,{ 1589987039.485719267, 1589986667.732862967 }) = 0 (0x0)
        fstat(4,{ mode=-rwxrwxrwx ,inode=2849020,size=131072,blksize=131072 }) = 0 (0x0)
        fchown(4,138,11)                                 = 0 (0x0)
        fchmod(4,0644)                                   = 0 (0x0)
        fpathconf(0x3,0x40)                              = 1 (0x1)
        __acl_get_fd(3,ACL_TYPE_NFS4,0x800ebc000)        = 0 (0x0)
        close(4)                                         = 0 (0x0)
        close(3)                                         = 0 (0x0)

         

         

         

          Attachments

            Attachments

              Activity

                People

                Assignee:
                releng Release Council
                Reporter:
                kernelpanic Chris Parsons
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: