[Bug 15066] New: tail with option -c fails on large files

bugzilla at busybox.net bugzilla at busybox.net
Thu Oct 20 04:35:57 UTC 2022


https://bugs.busybox.net/show_bug.cgi?id=15066

            Bug ID: 15066
           Summary: tail with option -c fails on large files
           Product: Busybox
           Version: 1.34.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: kurien.mathew at mediakind.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

tail from
BusyBox v1.34.1 (2022-06-06 22:12:17 UTC) multi-call binary.
when used with the "-c +<byte-offset>" option on a large file (several GB)
we encounter the error "tail: write error: Bad address". The error is sometimes
fatal since retries do not always help progress the offset to EOF

For eg
user at mkd:~/test$ kubectl exec -it recorder-9f955c7d4-fjqpl -c generator --
/bin/sh -c "ls -al /data/content.tar.gz"
-rw-r--r--    1 daemon   daemon   2969605492 Oct 20 00:45 /data/content.tar.gz
user at mkd:~/test$ kubectl exec recorder-9f955c7d4-fjqpl -c generator --
/usr/bin/tail -c +2963709953 /data/content.tar.gz
tail: write error: Bad address
command terminated with exit code 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list