Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126012 - sys-apps/file-4.17 build fails: "[magic.mgc] Segmentation fault"
Summary: sys-apps/file-4.17 build fails: "[magic.mgc] Segmentation fault"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 126085 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-12 20:48 UTC by Paul Taylor
Modified: 2007-03-16 09:32 UTC (History)
24 users (show)

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


Attachments
file-4.17-init-mem.patch (file-4.17-init-mem.patch,698 bytes, patch)
2006-03-13 15:50 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Taylor 2006-03-12 20:48:33 UTC
Upgrade from sys-apps/file-4.16 to file-4.17 fails with the error below.
Remerging sys-apps/file-4.16 works fine, so it doesn't appear to be a problem with the toolchain (e.g. today's portage update.)

# emerge -u file
[snip]

Making all in magic
make[2]: Entering directory `/var/tmp/portage/file-4.17/work/file-4.17/magic'
cat ./Header ./Localstuff > magic
../src/file -C -m ./magic.mime
for frag in Magdir/acorn Magdir/adi Magdir/adventure Magdir/allegro Magdir/alliant Magdir/alpha Magdir/amanda Magdir/amigaos Magdir/animation Magdir/apl Magdir/apple Magdir/applix Magdir/archive Magdir/asterix Magdir/att3b Magdir/audio Magdir/basis Magdir/bflt Magdir/blender Magdir/blit Magdir/bout Magdir/bsdi Magdir/btsnoop Magdir/cad Magdir/c-lang Magdir/c64 Magdir/cddb Magdir/chord Magdir/cisco Magdir/citrus Magdir/claris Magdir/clipper Magdir/cracklib Magdir/spec Magdir/commands Magdir/communications Magdir/compress Magdir/console Magdir/convex Magdir/ctags Magdir/dact Magdir/database Magdir/diamond Magdir/diff Magdir/digital Magdir/dolby Magdir/dump Magdir/editors Magdir/elf Magdir/encore Magdir/epoc Magdir/esri Magdir/fcs Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav Magdir/games Magdir/geos Magdir/gcc Magdir/gimp Magdir/gnu Magdir/grace Magdir/gringotts Magdir/hitachi-sh Magdir/hp Magdir/human68k Magdir/ibm370 Magdir/ibm6000 Magdir/iff Magdir/images Magdir/intel Magdir/interleaf Magdir/island Magdir/ispell Magdir/java Magdir/jpeg Magdir/karma Magdir/lecter Magdir/lex Magdir/lif Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic Magdir/mail.news Magdir/maple Magdir/mathematica Magdir/matroska Magdir/mcrypt Magdir/mime Magdir/mips Magdir/mirage Magdir/misctools Magdir/mkid Magdir/mlssa Magdir/mmdf Magdir/modem Magdir/motorola Magdir/msdos Magdir/msvc Magdir/mup Magdir/natinst Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news Magdir/nitpicker Magdir/ocaml Magdir/octave Magdir/olf Magdir/os2 Magdir/os9 Magdir/osf1 Magdir/palm Magdir/parix Magdir/pbm Magdir/pdf Magdir/pdp Magdir/perl Magdir/pgp Magdir/pkgadd Magdir/plan9 Magdir/plus5 Magdir/printer Magdir/project Magdir/psdbms Magdir/psion Magdir/pulsar Magdir/pyramid Magdir/python Magdir/revision Magdir/riff Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs Magdir/sendmail Magdir/sequent Magdir/sgi Magdir/sgml Magdir/sharc Magdir/sinclair Magdir/sketch Magdir/smalltalk Magdir/sniffer Magdir/dyadic Magdir/scientific Magdir/softquad Magdir/spectrum Magdir/sql Magdir/sun Magdir/sysex Magdir/teapot Magdir/terminfo Magdir/tex Magdir/tgif Magdir/ti-8x Magdir/timezone Magdir/troff Magdir/tuxedo Magdir/typeset Magdir/unknown Magdir/uuencode Magdir/varied.out Magdir/varied.script Magdir/vax Magdir/vicar Magdir/virtutech Magdir/visx Magdir/vms Magdir/vmware Magdir/vorbis Magdir/vxl Magdir/wordprocessors Magdir/xdelta Magdir/xenix Magdir/xo65 Magdir/xwindows Magdir/zilog Magdir/zyxel; do \
  if test -f ./$frag; then \
    f=./$frag; \
  else \
    f=$frag; \
  fi; \
          cat $f; \
done >> magic
../src/file -C -m magic
make[2]: *** [magic.mgc] Segmentation fault
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/magic'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17'
make: *** [all] Error 2

!!! ERROR: sys-apps/file-4.17 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.



Output from "emerge --info":

Portage 2.1_pre6-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.iinet.com.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo http://distfiles.gentoo.org/"
LANG="en_AU"
LC_ALL="en_AU"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 3dnow X acl alsa apache2 apm arts async avi berkdb bitmap-fonts chroot crypt cups dri dvd eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib ipv6 jpeg kde libclamav libg++ libwww lm_sensors mad maildir mikmod mmap mmx modperl motif mp3 mpeg ncurses nls nptl nptlonly nvidia ogg opengl oss pam pdflib perl png python qt quicktime readline sdl spamassassin spell ssl tcpd threads truetype truetype-fonts type1-fonts udev userlocales virus-scan vorbis xml xmms xv zlib elibc_glibc kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Rumen Yotov 2006-03-12 21:54:53 UTC
Hi,
Can confirm the info and error too.
Part of my log:
...BEGIN...
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/src'
Making all in magic
make[2]: Entering directory `/var/tmp/portage/file-4.17/work/file-4.17/magic'
cat ./Header ./Localstuff > magic
../src/file -C -m ./magic.mime
for frag in Magdir/acorn Magdir/adi Magdir/adventure Magdir/allegro Magdir/alliant Magdir/alpha Magdir/amanda Magdir/amigaos
Magdir/animation Magdir/apl Magdir/apple Magdir/applix Magdir/archive Magdir/asterix Magdir/att3b Magdir/audio Magdir/basis
Magdir/bflt Magdir/blender Magdir/blit Magdir/bout Magdir/bsdi Magdir/btsnoop Magdir/cad Magdir/c-lang Magdir/c64 Magdir/cddb
Magdir/chord Magdir/cisco Magdir/citrus Magdir/claris Magdir/clipper Magdir/cracklib Magdir/spec Magdir/commands
Magdir/communications Magdir/compress Magdir/console Magdir/convex Magdir/ctags Magdir/dact Magdir/database Magdir/diamond
Magdir/diff Magdir/digital Magdir/dolby Magdir/dump Magdir/editors Magdir/elf Magdir/encore Magdir/epoc Magdir/esri Magdir/fcs
Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav Magdir/games Magdir/geos Magdir/gcc Magdir/gimp
Magdir/gnu Magdir/grace Magdir/gringotts Magdir/hitachi-sh Magdir/hp Magdir/human68k Magdir/ibm370 Magdir/ibm6000 Magdir/iff
Magdir/images Magdir/intel Magdir/interleaf Magdir/island Magdir/ispell Magdir/java Magdir/jpeg Magdir/karma Magdir/lecter Magdir/lex
Magdir/lif Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic Magdir/mail.news Magdir/maple Magdir/mathematica
Magdir/matroska Magdir/mcrypt Magdir/mime Magdir/mips Magdir/mirage Magdir/misctools Magdir/mkid Magdir/mlssa Magdir/mmdf
Magdir/modem Magdir/motorola Magdir/msdos Magdir/msvc Magdir/mup Magdir/natinst Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news
Magdir/nitpicker Magdir/ocaml Magdir/octave Magdir/olf Magdir/os2 Magdir/os9 Magdir/osf1 Magdir/palm Magdir/parix Magdir/pbm
Magdir/pdf Magdir/pdp Magdir/perl Magdir/pgp Magdir/pkgadd Magdir/plan9 Magdir/plus5 Magdir/printer Magdir/project Magdir/psdbms
Magdir/psion Magdir/pulsar Magdir/pyramid Magdir/python Magdir/revision Magdir/riff Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs
Magdir/sendmail Magdir/sequent Magdir/sgi Magdir/sgml Magdir/sharc Magdir/sinclair Magdir/sketch Magdir/smalltalk Magdir/sniffer
Magdir/dyadic Magdir/scientific Magdir/softquad Magdir/spectrum Magdir/sql Magdir/sun Magdir/sysex Magdir/teapot Magdir/terminfo
Magdir/tex Magdir/tgif Magdir/ti-8x Magdir/timezone Magdir/troff Magdir/tuxedo Magdir/typeset Magdir/unknown Magdir/uuencode
Magdir/varied.out Magdir/varied.script Magdir/vax Magdir/vicar Magdir/virtutech Magdir/visx Magdir/vms Magdir/vmware Magdir/vorbis
Magdir/vxl Magdir/wordprocessors Magdir/xdelta Magdir/xenix Magdir/xo65 Magdir/xwindows Magdir/zilog Magdir/zyxel; do \
  if test -f ./$frag; then \
    f=./$frag; \
  else \
    f=$frag; \
  fi; \
          cat $f; \
done >> magic
../src/file -C -m magic
make[2]: *** [magic.mgc] Segmentation fault (core dumped)
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/magic'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17'
make: *** [all] Error 2

!!! ERROR: sys-apps/file-4.17 failed.
Call stack:
  ebuild.sh, line 1843:   Called dyn_compile
  ebuild.sh, line 964:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
...END...
PS: all ~x86 system
Thanks.Rumen
Comment 2 Jean Bréfort 2006-03-12 23:50:23 UTC
Got it too on an x86, but things work on an amd64
Comment 3 Christian Heim (RETIRED) gentoo-dev 2006-03-13 01:15:12 UTC
Reassigning to base-system@g.o, since they should be in charge
Comment 4 David J Andersson 2006-03-13 02:37:31 UTC
Bump, same error on x86, build segfaults on 
../src/file -C -m magic
make[2]: *** [magic.mgc] Segmenteringsfel
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/magic'
make[1]: *** [all-recursive] Fel 1
make[1]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17'
make: *** [all] Fel 2

!!! ERROR: sys-apps/file-4.17 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile
Comment 5 Michael Baer 2006-03-13 03:00:58 UTC
Same here:

Portage 2.1_pre6-r2 (default-linux/x86/2006.0, gcc-4.0.2, glibc-2.4-r0, 2.6.15.6 i686)
=================================================================
System uname: 2.6.15.6 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.2.3-r6, 2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control /var/spool/fax/etc /var/www/localhost/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -mtune=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks keepwork loadpolicy metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ndlug.nd.edu/pub/gentoo/"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/my-ebuilds /usr/local/overlays/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 acl acpi alsa apache2 apm arts avi bcmath berkdb bitmap-fonts bzip2 calendar caps cgi cli crypt cups curl dba dga doc dri drm dvd eds emboss encode esd flatfile foomaticdb fortran freetype gd gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal iconv imagemagick imap imlib ipv6 java jpeg kde kerberos ldap libg++ libwww mad maildir mhash mikmod mmx motif mp3 mpeg mysql ncurses nls nptl objc offensive ogg opengl oss pam pcre pdflib pear perl png python qt quicktime readline scanner sdl session soap sockets spell sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev usb vhosts vorbis win32codecs x264 xml xmms xsl xv xvid zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_ati video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS

--------------------------

but changing into /var/tmp/portage/file-4.17/work/file-4.17 and executing "make" is maybe a good workaround. Especcially if you're setting "keepwork" in make.conf (FEATURES="ccache sandbox loadpolicy keepwork") ;-)
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2006-03-13 09:37:46 UTC
All the people i've seen with this error, have been using glibc 2.4

..what about you guys?
Comment 7 Jean Bréfort 2006-03-13 09:55:22 UTC
glib-2.4 too, but it works on an amd64 with the same library
Comment 8 Jean-Francois Chevrette 2006-03-13 09:59:41 UTC
(In reply to comment #6)
> All the people i've seen with this error, have been using glibc 2.4
> 
> ..what about you guys?
> 

I just upgraded to glibc 2.4 too.
Comment 9 Sawk 2006-03-13 10:00:52 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > All the people i've seen with this error, have been using glibc 2.4
> > 
> > ..what about you guys?
> > 
> 
> I just upgraded to glibc 2.4 too.
> 

localhost sawk # cd /var/tmp/portage/file-4.17/work/file-4.17/
localhost file-4.17 # make
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/file-4.17/work/file-4.17'
Making all in src
make[2]: Entering directory `/var/tmp/portage/file-4.17/work/file-4.17/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/src'
Making all in magic
make[2]: Entering directory `/var/tmp/portage/file-4.17/work/file-4.17/magic'
../src/file -C -m magic
../src/file -C -m ./magic.mime
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/magic'
Making all in doc
make[2]: Entering directory `/var/tmp/portage/file-4.17/work/file-4.17/doc'
sed -e s@__CSECTION__@1@g \
    -e s@__FSECTION__@4@g \
    -e s@__VERSION__@4.17@g \
    -e s@__MAGIC__@/usr/share/misc/file/magic@g ./file.man > file.1
sed -e s@__CSECTION__@1@g \
    -e s@__FSECTION__@4@g \
    -e s@__VERSION__@4.17@g \
    -e s@__MAGIC__@/usr/share/misc/file/magic@g ./magic.man > magic.4
sed -e s@__CSECTION__@1@g \
    -e s@__FSECTION__@4@g \
    -e s@__VERSION__@4.17@g \
    -e s@__MAGIC__@/usr/share/misc/file/magic@g ./libmagic.man > libmagic.3
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/doc'
Making all in python
make[2]: Entering directory `/var/tmp/portage/file-4.17/work/file-4.17/python'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/python'
make[2]: Entering directory `/var/tmp/portage/file-4.17/work/file-4.17'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17'
make[1]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17'
localhost file-4.17 # 
Comment 10 FieldySnuts 2006-03-13 10:13:53 UTC
Same here. No glibc-2.4.

Portage 2.1_pre6-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15.6-ifc i686)
=================================================================
System uname: 2.6.15.6-ifc i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ http://ftp.rhnet.is/pub/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 alsa apm avi berkdb bitmap-fonts cdr chroot crypt dri dv dvd dvdr dvdread eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal imlib jpeg kde kdeenablefinal libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses network nls ogg oggvorbis opengl pam pdflib perl png pwdb python qt quicktime readline sdl spell sse ssl theora tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 11 Gregg Casillo 2006-03-13 10:15:28 UTC
Same here.

Portage 2.1_pre6-r2 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.mirrors.tds.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 bzlib cdr crypt cups dri dts dv dvd dvdr dvdread eds encode ffmpeg flac foomaticdb freetype gdbm gif gstreamer imap imlib innodb jpeg kde kdeenablefinal kdexdeltas libg++ libwww live mad maildir matroska mime mjpeg mmx mmxext mng mp3 mp4live mpeg mplayer mysql nas ncurses network nls nptl nptlonly nvidia ogg oggvorbis openal opengl oss pdflib perl png python qt quicktime rar readline real rtc sdl sndfile sockets speex sse sse2 ssl svg tcpd theora tidy tiff truetype truetype-fonts type1-fonts usb v4l2 vhosts vorbis win32codecs x264 xine xinerama xml2 xpm xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 12 FieldySnuts 2006-03-13 10:19:55 UTC
I have it happening on a second system as well (first is Comment #10).

Portage 2.1_pre6-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-rc5-mm2 i686)
=================================================================
System uname: 2.6.16-rc5-mm2 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm avi berkdb bitmap-fonts cdr chroot crypt dri dv dvd dvdr eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib jpeg kde kdeenablefinal libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png pwdb python qt quicktime readline sdl spell sse ssl tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 13 Sebastian Bergmann (RETIRED) gentoo-dev 2006-03-13 10:20:48 UTC
GCC 4.1 / GLIBC 2.4 here.
Comment 14 Sawk 2006-03-13 10:28:00 UTC
(In reply to comment #13)
> GCC 4.1 / GLIBC 2.4 here.
> 

I'm too
Comment 15 Guillaume Castagnino 2006-03-13 10:34:11 UTC
Same here, but glibc 2.3.6 on hardened system :

  if test -f ./$frag; then \
    f=./$frag; \
  else \
    f=$frag; \
  fi; \
          cat $f; \
done >> magic
../src/file -C -m magic
make[2]: *** [magic.mgc] Erreur de segmentation
make[2]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17/magic'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/file-4.17/work/file-4.17'
make: *** [all] Erreur 2


Portage 2.1_pre6-r2 (hardened/x86/2.6, gcc-3.4.5, glibc-2.3.6-r3, 2.6.14.6-xwing-r5 i686)
=================================================================
System uname: 2.6.14.6-xwing-r5 i686 Intel(R) Celeron(R) CPU 2.53GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -mtune=pentium4 -fomit-frame-pointer -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mtune=pentium4 -fomit-frame-pointer -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildsyspkg ccache distlocks fixpackages metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://r2d2.v6.xwing.info/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo/ http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/gcpan-portage /usr/local/portage"
SYNC="rsync://r2d2.v6.xwing.info/gentoo-portage"
USE="x86 4kstacks X509 acl acpi acpi4linux apache2 async bash-completion berkdb bzip2 clamav crypt dba dbx devmap dga dlloader enscript expat extensions fbcon freetype fs gd gdbm gif gmp hardened idled idn imagemagick imap imlib2 iproute2 ipv6 ithreads jpeg ldap maildir md5sum mhash mmx ncurses nls nptl nptlonly pam pcre perl php pic png python readline rrdtool sasl slang spf sse sse2 ssl sysfs syslog tcpd threads tiff truetype truetype-fonts type1 type1-fonts udev unicode usb userlocales xml2 zlib elibc_glibc kernel_linux linguas_fr userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS

Comment 16 Ed Catmur 2006-03-13 10:36:07 UTC
Reproduced on ~ppc, glibc 2.3.6-r3.

Note:

1. Segfault only happens in sandbox or sandboxshell

2. In sandboxshell, using file from file 4.16 gives:
[s]minerva magic # file -C -m magic
magic, 3745: Warning type `medate       x               Previous dump %s,' invalid
magic, 3746: Warning type `medate       x               This dump %s,' invalid
file: could not find any magic files!

3. Backtrace:
(gdb) r -C -m magic
Starting program: /var/tmp/portage/file-4.17/work/file-4.17/src/.libs/lt-file -C -m magic

Program received signal SIGSEGV, Segmentation fault.
0x0fe94a90 in memset () from /lib/libc.so.6
(gdb) bt full
#0  0x0fe94a90 in memset () from /lib/libc.so.6
No symbol table info available.
#1  0x0ffa49ec in parse (ms=0x10014e58, mentryp=0x7fb2bc64,
    nmentryp=0x7fb2bc68, line=0x7fb29c50 "0\tbelong\t9994\tESRI Shapefile",
    action=2) at apprentice.c:567
        i = 0
        me = (struct magic_entry *) 0x1002d898
        m = (struct magic *) 0x2008
        l = 0x7fb29c50 "0\tbelong\t9994\tESRI Shapefile"
        t = 0x0
        fops = 0xffb3874 "&|^+-*/%"
        val = 16776960
        cont_level = 0
        cont_count = 536872008
#2  0x0ffa4388 in apprentice_file (ms=0x10014e58, magicp=0x7fb2bca8,
    nmagicp=0x7fb2bcac, fn=0x10014160 "magic", action=2) at apprentice.c:405
        len = 29
        hdr = "cont\toffset\ttype\topcode\tmask\tvalue\tdesc"
        f = (FILE *) 0x1002b898
        line = "0\tbelong\t9994\tESRI Shapefile\000\000rary/whitepapers/pdfs/shapefile.pdf>\n\000", '-' <repeats 11 times>, "\n\000 Image\000\000\000\000)\n", '\0' <repeats 5155 times>, "\177
Comment 17 Ed Catmur 2006-03-13 10:36:07 UTC
Reproduced on ~ppc, glibc 2.3.6-r3.

Note:

1. Segfault only happens in sandbox or sandboxshell

2. In sandboxshell, using file from file 4.16 gives:
[s]minerva magic # file -C -m magic
magic, 3745: Warning type `medate       x               Previous dump %s,' invalid
magic, 3746: Warning type `medate       x               This dump %s,' invalid
file: could not find any magic files!

3. Backtrace:
(gdb) r -C -m magic
Starting program: /var/tmp/portage/file-4.17/work/file-4.17/src/.libs/lt-file -C -m magic

Program received signal SIGSEGV, Segmentation fault.
0x0fe94a90 in memset () from /lib/libc.so.6
(gdb) bt full
#0  0x0fe94a90 in memset () from /lib/libc.so.6
No symbol table info available.
#1  0x0ffa49ec in parse (ms=0x10014e58, mentryp=0x7fb2bc64,
    nmentryp=0x7fb2bc68, line=0x7fb29c50 "0\tbelong\t9994\tESRI Shapefile",
    action=2) at apprentice.c:567
        i = 0
        me = (struct magic_entry *) 0x1002d898
        m = (struct magic *) 0x2008
        l = 0x7fb29c50 "0\tbelong\t9994\tESRI Shapefile"
        t = 0x0
        fops = 0xffb3874 "&|^+-*/%"
        val = 16776960
        cont_level = 0
        cont_count = 536872008
#2  0x0ffa4388 in apprentice_file (ms=0x10014e58, magicp=0x7fb2bca8,
    nmagicp=0x7fb2bcac, fn=0x10014160 "magic", action=2) at apprentice.c:405
        len = 29
        hdr = "cont\toffset\ttype\topcode\tmask\tvalue\tdesc"
        f = (FILE *) 0x1002b898
        line = "0\tbelong\t9994\tESRI Shapefile\000\000rary/whitepapers/pdfs/shapefile.pdf>\n\000", '-' <repeats 11 times>, "\n\000 Image\000\000\000\000)\n", '\0' <repeats 5155 times>, "\177²°ð", '\0' <repeats 19 times>, "\0010\002p\0040\002xè\177²³\2000\000rX", '\0' <repeats 24 times>, "\177²±@", '\0' <repeats 12 tim---Type <return> to continue, or q <return> to quit---
es>, "\177²±@", '\0' <repeats 11 times>, "\b\177²±`0\000\005ß0\002p\0040\000\005ß\177²±`0\001\0000\000\000\000\000"...
        errs = 0
        marray = (struct magic_entry *) 0x1002ba08
        marraycount = 652
        i = 805402104
        mentrycount = 2142420112
#3  0x0ffa3a68 in apprentice_1 (ms=0x10014e58, fn=0x10014160 "magic",
    action=2, mlist=0x10014e30) at apprentice.c:171
        magic = (struct magic *) 0x0
        nmagic = 0
        ml = (struct mlist *) 0xff5af88
        rv = -1
        mapped = 268521008
#4  0x0ffa3f3c in file_apprentice (ms=0x10014e58, fn=0x10014160 "magic",
    action=2) at apprentice.c:281
        p = 0x0
        mfn = 0x10014160 "magic"
        afn = 0x0
        file_err = 267759512
        errs = -1
        mlist = (struct mlist *) 0x10014e30
#5  0x0ffa32e4 in magic_compile (ms=0x10014e58, magicfile=0x7fb2c24e "magic")
---Type <return> to continue, or q <return> to quit---
    at magic.c:168
        ml = (struct mlist *) 0xff5af98
#6  0x1000214c in main (argc=4, argv=0x7fb2c064) at file.c:291
        c = -1
        action = 2
        didsomefiles = 0
        errflg = 0
        flags = 0
        home = 0x7fb2cdae "/var/tmp/portage/homedir"
        usermagic = 0x10014e30 "\017õ¯\210\017õ¯\210/por\020\001N0\020\001N0"
        sb = {st_dev = 1152207013169774112, st_ino = 4294967296,
  st_mode = 269386744, st_nlink = 1140859940, st_uid = 269221888,
  st_gid = 269387024, st_rdev = 53682028008, __pad2 = 12290,
  st_size = 4563236997, st_blksize = 805401820,
  st_blocks = 9201625689722191873, st_atim = {tv_sec = 805405088,
    tv_nsec = 104836308}, st_mtim = {tv_sec = 2142420432,
    tv_nsec = 805401820}, st_ctim = {tv_sec = 268547732, tv_nsec = 805465668},
  __unused4 = 2142420464, __unused5 = 268442340}
        longindex = 0
        long_options = {{name = 0x10002d54 "version", has_arg = 0, flag = 0x0,
    val = 118}, {name = 0x10002d5c "help", has_arg = 0, flag = 0x0, val = 0}, {
    name = 0x10002d64 "brief", has_arg = 0, flag = 0x0, val = 98}, {
    name = 0x10002d6c "checking-printout", has_arg = 0, flag = 0x0, val = 99},
---Type <return> to continue, or q <return> to quit---
  {name = 0x10002d80 "debug", has_arg = 0, flag = 0x0, val = 100}, {
    name = 0x10002d88 "files-from", has_arg = 1, flag = 0x0, val = 102}, {
    name = 0x10002d94 "separator", has_arg = 1, flag = 0x0, val = 70}, {
    name = 0x10002da0 "mime", has_arg = 0, flag = 0x0, val = 105}, {
    name = 0x10002da8 "keep-going", has_arg = 0, flag = 0x0, val = 107}, {
    name = 0x10002db4 "dereference", has_arg = 0, flag = 0x0, val = 76}, {
    name = 0x10002dc0 "no-dereference", has_arg = 0, flag = 0x0, val = 104}, {
    name = 0x10002dd0 "magic-file", has_arg = 1, flag = 0x0, val = 109}, {
    name = 0x10002ddc "preserve-date", has_arg = 0, flag = 0x0, val = 112}, {
    name = 0x10002dec "uncompress", has_arg = 0, flag = 0x0, val = 122}, {
    name = 0x10002df8 "raw", has_arg = 0, flag = 0x0, val = 114}, {
    name = 0x10002dfc "no-buffer", has_arg = 0, flag = 0x0, val = 110}, {
    name = 0x10002e08 "no-pad", has_arg = 0, flag = 0x0, val = 78}, {
    name = 0x10002e10 "special-files", has_arg = 0, flag = 0x0, val = 115}, {
    name = 0x10002e20 "compile", has_arg = 0, flag = 0x0, val = 67}, {
    name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
Comment 18 Patrick McLean gentoo-dev 2006-03-13 11:40:48 UTC
I am getting this same problem on a system running glibc-2.3.6-r3

Portage 2.1_pre6-r2 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r2 i686)
=================================================================
System uname: 2.6.15-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -Os -ffast-math -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/gnome /usr/share/hwdata /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/udev /usr/share/gnome/apps /usr/share/gnome/bonobo /usr/share/gnome/capplets /usr/share/gnome/cursor-fonts /usr/share/gnome/fonts /usr/share/gnome/help /usr/share/gnome/html /usr/share/gnome/panel /usr/share/gnome/ui /usr/share/gnome/vfolders /usr/share/gnome/vino /usr/share/gnome/wm-properties /etc/env.d"
CXXFLAGS="-march=pentium2 -Os -ffast-math -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en_GB fr zh_CN zh_TW"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentopia /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 accessibility acpi ada alsa arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cairo caps cdparanoia cdr cpudetection crypt css ctype cups curl custom-cflags dbus divx4linux doc dpms dri dts dv dvd dvdr dvdread eds emacs emboss encode esd evo examples exif expat ffmpeg fftw firefox flac foomaticdb fortran ftp gb gcc-libffi gcj gd gdbm gif gimp gimpprint glibc-omitfp glitz glut gmp gnome gnomedb gnuplot gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile gzip hal haskell i8x0 icu idea idn image imagemagick imap imlib imlib2 inkjar ipv6 jabber java jpeg junit kde largeterminal latex lcms ldap libg++ libgda libwww live lzo mad matroska mikmod mjpeg mmap mmx mng mono motif mozdevelop mozilla mozsvg mp3 mpeg mule mysql ncurses netboot network nfs nis nls no-old-linux no_wxgtk1 nonfsv4 nptl nptlonly objc odbc ogg oggvorbis openal opengl pam pam_console pascal patented pcre pda pdf pdflib perl php plugin png posix postgres povray ppds python qt quicktime quotas radeon rdesktop readline real rtc ruby samba scanner sdk sdl session shorten silverxp sndfile sox speex spell sql sqlite ssl stream subversion svg tcltk tcpd tetex tga theora tiff transcode truetype truetype-fonts type1-fonts unicode usb userlocales vcd vidix vim-with-x vorbis win32codecs wmf wxwindows xanim xemacs xine xml xml2 xmms xpm xprint xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_void input_devices_wacom kernel_linux linguas_en_GB linguas_fr linguas_zh_CN linguas_zh_TW userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fglrx video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_newport video_cards_nsc video_cards_nv video_cards_nvidia video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS

Comment 19 Alexander Skwar 2006-03-13 12:42:46 UTC
AOL: I'm also at glibc 2.4.
Comment 20 Paul Taylor 2006-03-13 12:53:38 UTC
(In reply to comment #6)
> All the people i've seen with this error, have been using glibc 2.4
> 
> ..what about you guys?
 
glibc-2.4 and gcc-3.4.5, but as I said in the original bug report, file-4.16 builds fine in the same environment.  Something in the code and/or patch differences may be falling foul of the new glibc, though.
Comment 21 Sawk 2006-03-13 12:58:08 UTC
(In reply to comment #19)
> (In reply to comment #6)
> > All the people i've seen with this error, have been using glibc 2.4
> > 
> > ..what about you guys?
> 
> glibc-2.4 and gcc-3.4.5, but as I said in the original bug report, file-4.16
> builds fine in the same environment.  Something in the code and/or patch
> differences may be falling foul of the new glibc, though.
> 

with manual make compilation works.... i think is Portage's problem
Comment 22 FieldySnuts 2006-03-13 13:13:14 UTC
I am not using glibc-2.4 on either of two systems. The emerge --info output of which can be found in Comment #10 and Comment #12 .
Comment 23 SpanKY gentoo-dev 2006-03-13 13:47:23 UTC
there's no point in people continuing to say "me too"

this bug is unrelated to glibc/gcc/portage/sandbox version

it's a bug in file-4.17, so just settle down
Comment 24 Sawk 2006-03-13 14:44:26 UTC
(In reply to comment #22)
> there's no point in people continuing to say "me too"
> 
> this bug is unrelated to glibc/gcc/portage/sandbox version
> 
> it's a bug in file-4.17, so just settle down
> 

file-4.17 can be compile correctly (with manual make). 
I think is a portage's bug
Comment 25 Sawk 2006-03-13 14:48:16 UTC
See comment #9
Comment 26 Michal Jakubowski 2006-03-13 15:01:29 UTC
SOLVED -> don't use in FEATURES sandbox but only -sandbox

Salute
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 15:09:23 UTC
*** Bug 126085 has been marked as a duplicate of this bug. ***
Comment 28 Paul Taylor 2006-03-13 15:18:55 UTC
(In reply to comment #25)
> SOLVED -> don't use in FEATURES sandbox but only -sandbox

That's a workaround.  :)

To confirm what SpanKY said, the problem exists with portage 2.0.54 through 2.1_pre6-r2 inclusive, and probably earlier (I only reverted as far as 2.0.54.)
Comment 29 Timothy Kilbourn 2006-03-13 15:47:03 UTC
(In reply to comment #25)
> SOLVED -> don't use in FEATURES sandbox but only -sandbox
> 
> Salute
> 

Didn't work for me. I still get the same segfault.
Comment 30 SpanKY gentoo-dev 2006-03-13 15:50:03 UTC
> > SOLVED -> don't use in FEATURES sandbox but only -sandbox
> 
> That's a workaround.  :)

that isnt even a workaround, that's ignoring the problem

the bug is in file itself ... turning sandbox on just happens to make the bug come out ... turning it off causes the bug to not be triggered
Comment 31 SpanKY gentoo-dev 2006-03-13 15:50:44 UTC
Created attachment 82055 [details, diff]
file-4.17-init-mem.patch

should fix it
Comment 32 Ed Catmur 2006-03-13 16:24:13 UTC
Patch works here.
Comment 33 SpanKY gentoo-dev 2006-03-13 16:44:01 UTC
thanks for testing, patch added to 4.17-r1