Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483392 - app-portage/eix-0.29.3 SIGSEGV when using wrong format specifier
Summary: app-portage/eix-0.29.3 SIGSEGV when using wrong format specifier
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
: 488328 521216 528478 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-02 13:45 UTC by Seraphim Mellos
Modified: 2014-11-07 09:09 UTC (History)
8 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 Seraphim Mellos 2013-09-02 13:45:50 UTC
On the latest eix version which was recently stabilised on amd64 among other arches, I get a SIGSEGV whenever I use a wrong keyword in --format. For example (notice the invalid installedversions: keyword):

test0 ~ # eix --version
eix 0.29.3 (gcc-4.4.5, x86_64-pc-linux-gnu)
test0 ~ # eix --format "<installedversions:NAMEVERSION>" eix
app-portage/eix-0.29.3
test0 ~ # eix --format "<installedversions:foo>" eix
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-bin your_arguments_for_eix-bin"
 * 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!

however:

test1 ~ # eix --version
eix 0.25.5 (gcc-4.3.4, i686-pc-linux-gnu)
test1 ~ # eix --format "<installedversions:NAMEVERSION>" eix
app-portage/eix-0.25.5
test1 ~ # eix  --format "<installedversions:foo>" eix
No matches found.
Comment 1 Seraphim Mellos 2013-09-02 13:47:43 UTC
Forgot to mention that both machines are using =sys-apps/portage-2.1.12.2 although I don't think that has anything to do with the error.
Comment 2 Seraphim Mellos 2013-09-02 13:59:34 UTC
This issue is also affecting puppet (all tested versions up to 2.7.23) which is using the following eix call:

eix --format "<installedversions:VERSION>" dev-lang/python 

This is causing a SIGSEGV as well which I assume means that VERSION was deprecated going from 0.25.5 to 0.29.3? If VERSION has been deprecated, a bug should be opened with puppet to fix the eix call as well.
Comment 3 Martin Väth 2013-09-03 20:15:26 UTC
The segfault is fixed in eix git master on BerliOS (>=eix-0.29.4).

The variable VERSION has never been documented; it is one of many variables which were used in delayed substitution and which are likely to be modified if a new concept for the output is introduced. Puppet should not rely on such variables but instead e.g. export VERSION as desired.

I opened bug 483522 for the puppet issue.
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2013-09-10 18:40:20 UTC
+*eix-0.29.4 (10 Sep 2013)
+
+  10 Sep 2013; Ian Stakenvicius <axs@gentoo.org> +eix-0.29.4.ebuild:
+  version bump, fixes bugs 480604, 483392
+
Comment 5 Martin Väth 2013-10-17 16:14:47 UTC
*** Bug 488328 has been marked as a duplicate of this bug. ***
Comment 6 Gary E. Miller 2014-08-28 18:36:23 UTC
*** Bug 521216 has been marked as a duplicate of this bug. ***
Comment 7 Martin Väth 2014-11-06 22:45:49 UTC
*** Bug 528478 has been marked as a duplicate of this bug. ***
Comment 8 Martin Väth 2014-11-07 09:09:50 UTC
*** Bug 528478 has been marked as a duplicate of this bug. ***