<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>24238</bug_id>
          
          <creation_ts>2003-07-10 09:40 0000</creation_ts>
          <short_desc>&quot;sdiff&quot; segfaults when used with --tabsize</short_desc>
          <delta_ts>2003-08-01 11:20:22 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dallas.morlock@gmail.com</reporter>
          <assigned_to>taviso@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>dallas.morlock@gmail.com</who>
            <bug_when>2003-07-10 09:40:41 0000</bug_when>
            <thetext>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=&quot;http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;&quot;
USE=&quot;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&quot;
COMPILER=&quot;&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=i686 -O3 -pipe&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
ACCEPT_KEYWORDS=&quot;x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;fixpackages sandbox buildpkg ccache distcc userpriv usersandbox
notitles noclean noauto cvs keeptemp keepwork&quot;


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=&quot;ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;&quot;
USE=&quot;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&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium3 -O3 -pipe&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
ACCEPT_KEYWORDS=&quot;x86&quot;
MAKEOPTS=&quot;-j4&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;fixpackages sandbox buildpkg ccache distcc userpriv usersandbox
notitles noclean noauto cvs keeptemp keepwork&quot;


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=&quot;ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;&quot;
USE=&quot;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&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium3 -O3 -pipe&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
ACCEPT_KEYWORDS=&quot;x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;fixpackages sandbox buildpkg ccache distcc userpriv usersandbox
notitles noclean noauto cvs keeptemp keepwork&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-08-01 11:03:17 0000</bug_when>
            <thetext>Interesting, Assigning to self...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-08-01 11:19:28 0000</bug_when>
            <thetext>found it.

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

Nice find, thanks reporter.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-08-01 11:20:22 0000</bug_when>
            <thetext>FIXED.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>