uname -a: Linux gen24 2.6.4-gentoo-r1 #2 SMP Mon Apr 5 15:11:26 GMT 2004 i686 Pentium III(Coppermine) GenuineIntel GNU/Linux I compiled the id-utils-3.2, in which mkid uses strtok in libc.so.6 of glibc-2.3.2-r9. when mkid runs without args, it generates segment fault. I unzipped the glibc-2.3.2-r9.tar.gz and put the function definition in sysdeps/generic/strtok.c to libidu/walker.c of id-utils and recompiled it. Then mkid never generates any segment faults. Reproducible: Always Steps to Reproduce: 1. The following is the /etc/make.conf I used to compile gentoo linux: # These settings were set by the catalyst build script that automatically built this stage CFLAGS="-O2 -mcpu=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" SYNC="rsync://beer.ux6.net/gentoo-portage" USE="gtk gnome -qt -kde dvd alsa cdr" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/init.d" 2. build the system of gentoo linux with the /etc/make.conf 3. download http://ftp.gnu.org/pub/gnu/id-utils/id-utils-3.2.tar.gz 4. unzip it, ./configure, make and make install 5. run mkid without any args. Actual Results: Segment Fault Expected Results: it shall generate a file named ID. Gentoo Base System version 1.4.3.13 Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-gentoo- r1) ================================================================= System uname: 2.6.4-gentoo-r1 i686 Pentium III (Coppermine) Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2 /share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://beer.ux6.net/gentoo-portage" USE="X alsa apm arts avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
id-utils isnt even in portage