Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287245 - app-portage/eix cores when searching for cscope
Summary: app-portage/eix cores when searching for cscope
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High blocker (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-01 16:36 UTC by steve
Modified: 2009-10-11 17:47 UTC (History)
1 user (show)

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


Attachments
Let eix output some debug info (eix-debug.patch,1.22 KB, patch)
2009-10-01 19:47 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description steve 2009-10-01 16:36:19 UTC
Trying to emerge cscope I did enter the command 'eix cscope' and sadness ensued.

<start sadness>
[lambda: Gentoo]$ eix cscope
* dev-util/cscope
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)
 * compile eix with FEATURES="nostrip" CXXFLAGS="-g -ggdb3"
 * 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!
     Available versions:  [lambda: Gentoo]$ eix cscope
</not the end of sadness>

Reproducible: Always

Steps to Reproduce:
1.eix cscope
2.
3.

Actual Results:  
eix cores

Expected Results:  
eix returns information about the cscope application

here Is my updated make.conf since I needed to rebuild eix (actually just did an emerge -e world)

<make.conf>
CFLAGS="-ggdb3 -O2 -pipe -march=nocona"
#FEATURES="splitdebug installsources"
FEATURES="splitdebug"
CXXFLAGS="${CFLAGS}"
</make.conf>

Here is the backtrace from 'gdb --args eix cscope'

<backtrace>
(gdb) run
Starting program: /Users/steves/Library/Gentoo/usr/bin/eix cscope
Reading symbols for shared libraries ++++. done
* dev-util/cscope

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffffc
0x001debc9 in __gnu_cxx::__exchange_and_add ()
(gdb) bt
#0  0x001debc9 in __gnu_cxx::__exchange_and_add ()
#1  0x001c4b6f in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string ()
#2  0x00004a72 in ExBasic::~ExBasic ()
#3  0x9704fa49 in unw_get_proc_info ()
#4  0x9704faa8 in _Unwind_GetLanguageSpecificData ()
#5  0x001e675e in __gxx_personality_v0 ()
#6  0x0025135c in _Unwind_RaiseException_Phase2 ()
#7  0x00251810 in _Unwind_Resume ()
#8  0x00081697 in PrintFormat::get_pkg_property ()
#9  0x0008235b in get_package_property ()
#10 0x0007740c in PrintFormat::recPrint ()
#11 0x0007e1cc in PrintFormat::get_versions_versorted ()
#12 0x00080e42 in PrintFormat::get_pkg_property ()
#13 0x0008235b in get_package_property ()
#14 0x000772c1 in PrintFormat::recPrint ()
#15 0x00077205 in PrintFormat::recPrint ()
#16 0x00077205 in PrintFormat::recPrint ()
#17 0x0007773d in PrintFormat::print ()
#18 0x0008a5e2 in run_eix ()
#19 0x000cb0af in main ()
(gdb) 
</backtrace>

Here is my emerge --info data:

<info>
[lambda: Gentoo]$ emerge --info
Portage 2.2.00.14200-prefix (prefix/darwin/macos/10.6/x86, gcc-4.2.1, unavailable, 10.0.0 i386)
=================================================================
System uname: Darwin-10.0.0-i386-32bit
Timestamp of tree: Thu, 01 Oct 2009 15:18:13 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p33
dev-lang/python:     2.6.2-r2
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.2
ACCEPT_KEYWORDS="~x86-macos"
CBUILD="i686-apple-darwin10"
CFLAGS="-ggdb3 -O2 -pipe -march=nocona"
CHOST="i686-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CPPFLAGS="-I/Users/steves/Library/Gentoo/usr/include"
CXXFLAGS="-ggdb3 -O2 -pipe -march=nocona"
DISTDIR="/Users/steves/Library/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-search_paths_first -L/Users/steves/Library/Gentoo/usr/lib -L/Users/steves/Library/Gentoo/lib"
PKGDIR="/Users/steves/Library/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/steves/Library/Gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Users/steves/Library/Gentoo/var/tmp"
PORTDIR="/Users/steves/Library/Gentoo/usr/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib mmx mmxext modules ncurses objc objc++ prefix readline sse sse2 ssl x86-macos zlib" APACHE2_MODULES="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 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" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
</info>
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-01 16:40:48 UTC
What version??
Comment 2 steve 2009-10-01 16:44:40 UTC
[lambda: /Users/steves]$ eix eix
[I] app-portage/eix
     Available versions:  *0.17.0 ~*0.17.1 ~*0.18.0 (~)0.18.1 {+bzip2 (+)deprecated doc nls sqlite tools}
     Installed versions:  0.18.1(12:01:10 10/01/2009)(bzip2 -deprecated -doc -nls -sqlite -tools)

Sorry about that.

(In reply to comment #1)
> What version??
> 

Comment 3 Martin Väth 2009-10-01 19:47:49 UTC
Created attachment 205779 [details, diff]
Let eix output some debug info

Despite I recompiled with exactly the same FLAGS, I cannot reproduce it here.
Maybe it helps if you send me your /var/cache/eix (by pm), but I am not
optimistic about that.
Please recompile with the attached patch and send the output of the last few
lines.
Comment 4 steve 2009-10-08 00:12:03 UTC
I followed these instructions from a PM conversation with Martin:
<instructions>
svn co https://svn.gentooexperimental.org/eix/trunk
cd trunk
./autogen.sh
export CXXFLAGS="-O2 -g -ggdb3"
./configure
make
src/eix cscope (or with gdb or whatever).
# edit, view differences ("svn diff") or revert edits ("svn revert file")
make
src/eix cscope
# next edit phase...
make
src/eix cscope
...
</instructions>

The built an eix that seems to work perfectly for me (perfectly being random testing for < 5 minutes)
but this cscope performs far better than one currently installed.

Doing a little digging I found that I am running (portage has installed) version 18.1.

The code I svn checkout build version 18.2.

It appears whatever has changed has fixed my problem(s). Does anyone know when 18.2 will become an available for a ~ system? Presumably when that happen this bug can be closed.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-08 04:06:33 UTC
(In reply to comment #4)

> Does anyone know when
> 18.2 will become an available for a ~ system? Presumably when that happen this
> bug can be closed.

How about when it is released? Don't worry, the time will come ;)
http://sourceforge.net/projects/eix/files/
Comment 6 Martin Väth 2009-10-08 20:22:53 UTC
> It appears whatever has changed has fixed my problem(s).

I am not so optimistic, since nothing was changed which could obviously fix
a segfault; I am afraid that it is a subtle bug concerning pointers or
iterators going into nirvana somewhere, and just by accident it does not
occur now.

Anyway, since I see no way how to find the real cause, I will release 0.18.2.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-11 17:47:13 UTC
0.18.2 is in the tree.