[Bug 241714] /usr/bin/diff --tabsize dies with SIGSEGV

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 5 00:23:52 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241714

            Bug ID: 241714
           Summary: /usr/bin/diff --tabsize dies with SIGSEGV
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: rlwestlund at gmail.com

On the three systems I've tried, /usr/bin/diff with --tabsize dies with
SIGSEGV, regardless of any other options or arguments.

I'm observing the crash on FreeBSD 12.1-RELEASE.
uname -a: FreeBSD coppermind 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC 
amd64
freebsd-version -kur:
12.1-RELEASE
12.1-RELEASE
12.1-RELEASE

Outside of --tabsize, diff works normally.

The synopsis in diff(1) indicates that the option is a standalone. Later in the
man page it's shown as '-tabsize' (as opposed to --tabsize), and said to take
an argument (which makes sense); however I think the single dash is a typo
because when I run diff -tabsize 3 file1 file2, I get "diff: invalid option --
z".

I've also tested this on two 12.0-RELEASE-p10 systems (DO droplets), and seen
the crash on them as well. I updated the userland of those systems to
12.0-RELEASE-p11 and the same thing happened. The DO droplets are also amd64
machines with GENERIC kernel.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list