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"
Created attachment 258593 [details] emerge --info
have you tried with -O2 ?
(In reply to comment #2) > have you tried with -O2 ? > Now I did, but didn't change anything.
Please update the summary with the version of eix you are using.
Oops, sorry.
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
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)
+*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