Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104083 - app-portage/eix-0.3.0 segfaults on amd64
Summary: app-portage/eix-0.3.0 segfaults on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-28 17:59 UTC by Octavio Ruiz (Ta^3)
Modified: 2005-08-29 12:53 UTC (History)
2 users (show)

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


Attachments
Fix datatype-mix (0.3.0-fix_catheader_amd64.patch,2.02 KB, patch)
2005-08-29 04:29 UTC, Emil Beinroth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Octavio Ruiz (Ta^3) 2005-08-28 17:59:33 UTC
$ eix -s eix
Segmentation fault

backtrace:

(gdb) run -s eix
Starting program: /usr/bin/eix -s eix

Program received signal SIGSEGV, Segmentation fault.
0x00002aaaab0ab6d9 in free () from /lib/tls/libc.so.6
#0  0x00002aaaab0ab6d9 in free () from /lib/tls/libc.so.6
#1  0x00002aaaab0ad2a2 in malloc () from /lib/tls/libc.so.6
#2  0x00002aaaab0d700c in fnmatch () from /lib/tls/libc.so.6
#3  0x00002aaaab0e307f in re_set_registers () from /lib/tls/libc.so.6
#4  0x00002aaaab0e48f3 in regexec () from /lib/tls/libc.so.6
#5  0x0000000000412f32 in ?? ()
#6  0x0000000000412e3d in ?? ()
#7  0x00000000004315dc in std::operator+<char, std::char_traits<char>,
std::allocator<char> > ()
#8  0x00000000004314a7 in std::operator+<char, std::char_traits<char>,
std::allocator<char> > ()
#9  0x0000000000431511 in std::operator+<char, std::char_traits<char>,
std::allocator<char> > ()
......


$ emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre6
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.12
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-g3 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo
/etc/texmf/web2c /etc/env.d"
CXXFLAGS="-g3 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache collision-protect distlocks keeptemp
multilib-strict noauto parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 GAPING_SECURITY_HOLE X Xaw3d aac aim alsa avi bash-completion berkdb
bitmap-fonts bluetooth buttons bzip2 cdparanoia cdr crypt cups curl dga directfb
dvd dvdread eds emacs encode fam fbcon flac foomaticdb fortran gdbm gif
gimpprint gpgme gpm gstreamer gtk gtk2 hlapi icq imagemagick imap imlib ipv6 irc
jabber java javascript jpeg justify leim libcaca libwww lzw lzw-tiff mad mikmod
mng motif mozdevelop mozsvg mp3 mpeg mpi msn ncurses new-login nls nptl nvidia
offensive ogg oggvorbis opengl oss pam pcre pdflib perl png python quicktime
readline real rtc samba scanner sdl sms spell ssl svg symlink tcpd tetex tiff
truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wmf xml2 xmms
xpm xprint xv xvid yahoo zlib linguas_es userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Mike Cvet 2005-08-28 18:16:22 UTC
Same here

# eix vim
Segmentation fault


(gdb) run eix
Starting program: /usr/bin/eix eix

Program received signal SIGSEGV, Segmentation fault.
0x00002aaaab0d7037 in fnmatch () from /lib/tls/libc.so.6
(gdb) bt
#0  0x00002aaaab0d7037 in fnmatch () from /lib/tls/libc.so.6
#1  0x00002aaaab0e30af in re_set_registers () from /lib/tls/libc.so.6
#2  0x00002aaaab0e4923 in regexec () from /lib/tls/libc.so.6
#3  0x000000000040ab5a in SearchTest::localMatch (this=0x548b30, pkg=0x54d9e0)
at basic_string.h:1458
#4  0x000000000040b4c1 in SearchTest::match (this=0x548b30, pkg=0x54d9e0) at
searchtests.h:138
#5  0x000000000042f295 in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbmatchcriteria.h:161
#6  0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#7  0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#8  0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#9  0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#10 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#11 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#12 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#13 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#14 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#15 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#16 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#17 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#18 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58
#19 0x000000000042f39c in DatabaseMatchIterator::next (this=0x7fffffd18660) at
dbselector.cc:58

...

Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -ggdb3"
CHOST="x86_64-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/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -ggdb3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks multilib-strict nostrip sandbox sfperms
strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/
http:://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib alsa avi berkdb bitmap-fonts cdr crypt cups curl debug eds
encode esd fam foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 guile
imagemagick imlib ipv6 jpeg junit libwww lzw lzw-tiff motif mp3 mpeg ncurses nls
nptl ogg opengl pam pdflib perl png postgres python qt quicktime readline sdl
spell sqlite ssl tcltk tcpd tetex tiff truetype-fonts type1-fonts usb
userlocales vorbis xine xml xml2 xmms xpm xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Comment 2 Octavio Ruiz (Ta^3) 2005-08-28 18:21:01 UTC
I forgot FEATURES="nostrip".

That's the result with "nostrip" enabled in FEATURES:

FEATURES="autoconfig candy ccache collision-protect distlocks keeptemp
multilib-strict noauto nostrip parallel-fetch sandbox sfperms strict userpriv
usersandbox"

#0  0x00002aaaab0ad860 in realloc () from /lib/tls/libc.so.6
#1  0x00002aaaab0d700c in fnmatch () from /lib/tls/libc.so.6
#2  0x00002aaaab0e307f in re_set_registers () from /lib/tls/libc.so.6
#3  0x00002aaaab0e48f3 in regexec () from /lib/tls/libc.so.6
#4  0x0000000000412f32 in SearchTest::localMatch (this=0x55eb30, pkg=0x5610f0)
at searchtests.h:79
#5  0x0000000000412e3d in SearchTest::match (this=0x55eb30, pkg=0x5610f0) at
searchtests.h:138
#6  0x00000000004315dc in DBMatchCriteria::match (this=0x55e0d0, p=0x5610f0) at
dbmatchcriteria.h:161
#7  0x00000000004314a7 in DatabaseMatchIterator::next (this=0x7fffff802e60) at
dbselector.cc:52
#8  0x0000000000431511 in DatabaseMatchIterator::next (this=0x7fffff802e60) at
dbselector.cc:58
#9  0x0000000000431511 in DatabaseMatchIterator::next (this=0x7fffff802e60) at
dbselector.cc:58
#10 0x0000000000431511 in DatabaseMatchIterator::next (this=0x7fffff802e60) at
dbselector.cc:58
#11 0x0000000000431511 in DatabaseMatchIterator::next (this=0x7fffff802e60) at
dbselector.cc:58
Comment 3 Emil Beinroth 2005-08-29 04:29:07 UTC
Created attachment 67160 [details, diff]
Fix datatype-mix

This should fix the problem. Please test.
Comment 4 marvin rouge 2005-08-29 08:22:11 UTC
to #3: after patching, it's OK here.
thanks.

Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2005-08-29 12:53:10 UTC
in cvs, thanks