Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488328 - app-portage/eix - segmentation fault in PrintFormat::recPrint(OutputString*, void*, void (*)
Summary: app-portage/eix - segmentation fault in PrintFormat::recPrint(OutputString*, ...
Status: RESOLVED DUPLICATE of bug 483392
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-17 08:26 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2013-10-17 16:14 UTC (History)
3 users (show)

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 Michael Mair-Keimberger (iamnr3) 2013-10-17 08:26:09 UTC
I'm getting SIGSEGV when i'm typing following:

eix adobe-flash --format '<bestversion:depend>'

The complete error is:
Received SIGSEGV - you probably found a bug in eix.
Please proceed with the following few instructions and help us find the bug:
 * install gdb (sys-dev/gdb)
 * reemerge eix with FEATURES="nostrip" USE="debug"
   or with FEATURES="nostrip" CXXFLAGS="-g -ggdb3" LDFLAGS=""
 * enter gdb with "gdb --args eix your_arguments_for_eix"
 * type "run" and wait for the segfault to happen
 * type "bt" to get a backtrace (this helps us a lot)
 * post a bugreport and be sure to include the output from gdb ..

Sorry for the inconvenience and thanks in advance!


Interestingly this doesn't happen if i compile eix with FEATURES="nostrip" and USE="debug" which i suppose todo to create an backtrace. Sadly, that's why i can't provide an backtrace or at least one which might be useless..


with debug-symbols:

GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/eix...done.
(gdb) run
Starting program: /usr/bin/eix adobe-flash --format \<bestversion:depend\>
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[1] /home/michael/overlay/local
No matches found.
[Inferior 1 (process 27470) exited with code 01]
(gdb) bt
No stack.
(gdb) quit


without debug symbols:

GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/eix...Reading symbols from /usr/lib64/debug/usr/bin/eix.debug...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/eix --format \<bestversion:depend\>
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
0x00000000004be1e4 in PrintFormat::recPrint(OutputString*, void*, void (*)(OutputString*, PrintFormat const*, void*, std::string const&), Node*) const ()
(gdb) bt
#0  0x00000000004be1e4 in PrintFormat::recPrint(OutputString*, void*, void (*)(OutputString*, PrintFormat const*, void*, std::string const&), Node*) const ()
#1  0x00000000004cbd38 in PrintFormat::COLON_PKG_BESTVERSION(Package*, std::string const&) const ()
#2  0x00000000004ca012 in PrintFormat::get_pkg_property(OutputString*, Package*, std::string const&) const ()
#3  0x00000000004be7bd in PrintFormat::recPrint(OutputString*, void*, void (*)(OutputString*, PrintFormat const*, void*, std::string const&), Node*) const ()
#4  0x00000000004bf48f in PrintFormat::print(void*, void (*)(OutputString*, PrintFormat const*, void*, std::string const&), Node*, DBHeader const*, VarDbPkg*, PortageSettings const*, SetStability const*) ()
#5  0x00000000004d8edb in run_eix(int, char**) ()
#6  0x0000000000406529 in main ()


emerge --info eix:
Portage 2.2.1 (default/linux/amd64/13.0/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.10.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L7100_@_1.20GHz-with-gentoo-2.2
KiB Mem:     3979516 total,   1092412 free
KiB Swap:    2104508 total,   1883544 free
Timestamp of tree: Wed, 16 Oct 2013 10:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/michael/overlay/local"
USE="X acl alsa amd64 berkdb bluetooth bzip2 cdr cli consolekit cracklib crypt cups cxx dbus dri dvd exif flac fortran gallium gdbm gif gnutls graphite iconv icu ipv6 jabber jpeg kde kipi lzma mad mmx mmxext modules mp3 mudflap ncurses nls nptl opengl openmp pam pcre phonon plasma png policykit qt4 readline sdl semantic-desktop session sip spell sse sse2 ssl ssse3 tcpd threads tiff truetype udev unicode v4l2 vorbis vpx xv zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-portage/eix-0.29.3 was built with the following:
USE="dep nls optimization (-clang) -debug -doc -security -sqlite -strong-optimization -strong-security -swap-remote -tools -zsh-completion" LINGUAS="-de -ru"
Comment 1 Greg Kubaryk 2013-10-17 09:31:26 UTC
For whatever it's worth, this appears to be fixed in version 0.29.6, which is currently in ~amd64.  Additionally, I can confirm that the same error occurs in 0.29.3 on x86 (i.e., it is not confined to amd64).
Comment 2 Martin Väth 2013-10-17 16:14:47 UTC
This is probably bug 483392 which was fixed in eix-0.29.4

*** This bug has been marked as a duplicate of bug 483392 ***