Summary: | app-portage/portage-utils-9999: SIGSEGV signal with qkeyword | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | konsolebox <konsolebox> |
Component: | Current packages | Assignee: | Fabian Groffen <grobian> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
konsolebox
2022-12-13 18:31:43 UTC
*https://github.com/gentoo/portage-utils I like to know why the archlist is empty too. Is it dependent on the package matches? Or is it system config based. If anyone has an idea, kindly tell, thank you. Please run 'bt' in gdb as well and include its output. (gdb) bt #0 decode_arch (arch=0x5555555b03f0 "amd64") at qkeyword.c:124 #1 0x00005555555675d4 in qkeyword_traverse ( func=func@entry=0x555555566e09 <qkeyword_ltesting>, priv=priv@entry=0x7fffffffd190) at qkeyword.c:795 #2 0x0000555555568698 in qkeyword_main (argc=<optimized out>, argv=<optimized out>) at qkeyword.c:923 #3 0x00005555555605ca in q_main (argc=argc@entry=4, argv=argv@entry=0x7fffffffe4e8) at q.c:116 #4 0x0000555555560218 in main (argc=4, argv=0x7fffffffe4e8) at main.c:1177 (gdb) I think qkeyword_load_arches is responsible for filling archlist. It assumes it is set, which is a bit awkward since load_arches can just fail when profiles/arch.list isn't found in the tree in question. Can you try commit 25853d2? Thanks The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=25853d2ea35884a7f4cf6fefa2a2c53610fc6164 commit 25853d2ea35884a7f4cf6fefa2a2c53610fc6164 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2022-12-15 09:12:10 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2022-12-15 09:12:10 +0000 qkeyword: gracefully handle case with no found arches Bug: https://bugs.gentoo.org/885801 Signed-off-by: Fabian Groffen <grobian@gentoo.org> qkeyword.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) Fabian Groffen: Looks like it was a problem on my side as well. I wrongly set [gentoo] in a local repo config probably making qkeywords detect "gentoo" as local instead, making no arch.list detected. The suggestion in the message to run `q -o` helped me realize it. Anyway I no longer see segmentation issues and it seems to have fixed it, thanks. cool, a nice and informative message is always better than segfault :) Thanks for testing! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fa248843038ffe79d7fce8b51e7f16c65667c7e commit 1fa248843038ffe79d7fce8b51e7f16c65667c7e Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2023-02-22 20:15:43 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2023-02-22 20:17:16 +0000 app-portage/portage-utils-0.95: version bump Closes: https://bugs.gentoo.org/893424 Closes: https://bugs.gentoo.org/892533 Closes: https://bugs.gentoo.org/885801 Signed-off-by: Fabian Groffen <grobian@gentoo.org> app-portage/portage-utils/Manifest | 2 +- .../portage-utils/portage-utils-0.94.1.ebuild | 67 ------------------- .../portage-utils/portage-utils-0.95.ebuild | 75 ++++++++++++++++++++++ 3 files changed, 76 insertions(+), 68 deletions(-) |