Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24238 - "sdiff" segfaults when used with --tabsize
Summary: "sdiff" segfaults when used with --tabsize
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tavis Ormandy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-10 09:40 UTC by dallas.morlock
Modified: 2003-08-01 11:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dallas.morlock 2003-07-10 09:40:41 UTC
sdiff crashes when I use the --tabsize option.

    $ sdiff --tabsize=4 f1 f2
    Segmentation fault

On other Gentoo boxes, I see

    $ sdiff --tabsize=4 f1 f2
    /usr/bin/diff: program error
    Segmentation fault


Reproducible: Always
Steps to Reproduce:




Portage 2.0.48-r1 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r8)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses
pdflib quicktime spell truetype xml2 xmms xv alsa arts berkdb cdr esd gdbm gif
gnome-libs gpm gtk guile imlib java kde libwww motif mozilla mysql nls oggvorbis
opengl pam perl png postgres python qt readline scanner sdl slang ssl svga tcltk
tcpd tetex tiff X"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="fixpackages sandbox buildpkg ccache distcc userpriv usersandbox
notitles noclean noauto cvs keeptemp keepwork"


Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20 i686 Intel(R) Pentium(R) III CPU family      1400MHz
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 crypt gif imlib jpeg libg++ libwww mmx ncurses nls pdflib png sdl spell
xml2 zlib berkdb slang readline java mysql pam ssl perl python -3dnow -apm -arts
-avi -cups -encode -gdbm -gnome -gpm -gtk -kde -mikmod -motif -mpeg -oggvorbis
-opengl -oss -qt -qtmt -quicktime sse -svga -tcpd -truetype -X -xmms -xv"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j4"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="fixpackages sandbox buildpkg ccache distcc userpriv usersandbox
notitles noclean noauto cvs keeptemp keepwork"


Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="gnome zlib mysql perl x86 -oss -3dnow -apm -arts -avi berkdb crypt -cups
-encode -gdbm gif gpm -gtk imlib java jpeg -kde libg++ libwww -mikmod mmx -motif
-mpeg ncurses nls -oggvorbis -opengl pam pdflib png python -qt -qtmt -quicktime
readline sdl slang spell ssl -svga -tcpd -truetype -X xml2 -xmms -xv"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="fixpackages sandbox buildpkg ccache distcc userpriv usersandbox
notitles noclean noauto cvs keeptemp keepwork"
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2003-08-01 11:03:17 UTC
Interesting, Assigning to self...
Comment 2 Tavis Ormandy (RETIRED) gentoo-dev 2003-08-01 11:19:28 UTC
found it.

typo in diff.c, patch checked in and is in diffutils-2.8.4-r4.ebuild

Nice find, thanks reporter.
Comment 3 Tavis Ormandy (RETIRED) gentoo-dev 2003-08-01 11:20:22 UTC
FIXED.