Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350321 - app-portage/eix-0.22.5 --end segfaults
Summary: app-portage/eix-0.22.5 --end segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-01 21:25 UTC by John
Modified: 2011-01-31 20:09 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,4.86 KB, text/plain)
2011-01-01 21:26 UTC, John
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John 2011-01-01 21:25:06 UTC
Running eix with --end something results in seg fault:


Program received signal SIGSEGV, Segmentation fault.
0x080fd18e in std::auto_ptr<BaseAlgorithm>::get (this=0x10) at /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/backward/auto_ptr.h:209
209           get() const throw() { return _M_ptr; }
(gdb) bt
#0  0x080fd18e in std::auto_ptr<BaseAlgorithm>::get (this=0x10) at /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/backward/auto_ptr.h:209
#1  0x080fd08d in std::auto_ptr<BaseAlgorithm>::operator= (this=0x10, __ref=...) at /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/backward/auto_ptr.h:264
#2  0x080fc9a2 in PackageTest::setAlgorithm (this=0x0, p=0x8219b98) at ./search/packagetest.h:93
#3  0x080fbb5b in parse_cli (matchtree=0x8246178, eixrc=..., varpkg_db=..., portagesettings=..., stability=..., header=..., marked_list=0xbfffeae8, arg=..., end=...) at cli.cc:440
#4  0x080f01f4 in run_eix (argc=3, argv=0xbffff264) at eix.cc:646
#5  0x0813762d in run_program (argc=3, argv=0xbffff264) at main/main.cc:151
#6  0x081376e5 in main (argc=3, argv=0xbffff264) at main/main.cc:182

I'm leaving the debug session open for some time.


Reproducible: Always

Steps to Reproduce:
1. eix --end log

Actual Results:  
Program received signal SIGSEGV, Segmentation fault.
0x080fd18e in std::auto_ptr<BaseAlgorithm>::get (this=0x10) at /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/backward/auto_ptr.h:209
209           get() const throw() { return _M_ptr; }
(gdb) bt
#0  0x080fd18e in std::auto_ptr<BaseAlgorithm>::get (this=0x10) at /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/backward/auto_ptr.h:209
#1  0x080fd08d in std::auto_ptr<BaseAlgorithm>::operator= (this=0x10, __ref=...) at /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/backward/auto_ptr.h:264
#2  0x080fc9a2 in PackageTest::setAlgorithm (this=0x0, p=0x8219b98) at ./search/packagetest.h:93
#3  0x080fbb5b in parse_cli (matchtree=0x8246178, eixrc=..., varpkg_db=..., portagesettings=..., stability=..., header=..., marked_list=0xbfffeae8, arg=..., end=...) at cli.cc:440
#4  0x080f01f4 in run_eix (argc=3, argv=0xbffff264) at eix.cc:646
#5  0x0813762d in run_program (argc=3, argv=0xbffff264) at main/main.cc:151
#6  0x081376e5 in main (argc=3, argv=0xbffff264) at main/main.cc:182


Expected Results:  
All packages ending in "log"
Comment 1 John 2011-01-01 21:26:28 UTC
Created attachment 258593 [details]
emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2011-01-02 01:17:30 UTC
have you tried with -O2 ?
Comment 3 John 2011-01-02 04:48:48 UTC
(In reply to comment #2)
> have you tried with -O2 ?
> 

Now I did, but didn't change anything.
Comment 4 Mike Gilbert gentoo-dev 2011-01-02 08:26:19 UTC
Please update the summary with the version of eix you are using.
Comment 5 John 2011-01-02 08:45:21 UTC
Oops, sorry.
Comment 6 Martin Väth 2011-01-02 20:50:48 UTC
Thanks for the report:
There was an initialization command (USE_TEST) missing for O_END_ALGO in cli.cc
This is now fixed in eix svn trunk which will probably be >=eix-0.22.7
Comment 7 Martin Väth 2011-01-02 20:56:05 UTC
Until >=eix-0.22.7 is released you can use as a workaround the sequence
  --begin --end
instead of
  --end
(Reason: --begin does the required initialization of the PackageTest class)
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-01-31 20:09:01 UTC
+*eix-0.22.7 (31 Jan 2011)
+
+  31 Jan 2011; Jeremy Olexa <darkside@gentoo.org> +eix-0.22.7.ebuild:
+  Version bump from upstream, fixed gentoo bug 350321 and other small fixes