Summary: | dev-util/crash fails to open vmlinux images from recent kernels | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Pierre Asselin <pa> |
Component: | Current packages | Assignee: | Yixun Lan <dlan> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Fix 'cannot resolve "sys_open"' in dev-util/crash-8.0.0 on x86 |
Could you link to the upstream submission? Thanks! Upstream submission at https://github.com/crash-utility/crash/issues/116 Ahem. Upstream kindly points out that the patch should say for(i= 0; i<6; i++) { Please patch the patch... Sorry about that. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53a18b3469994b032ddb6b199aaba3e67872f700 commit 53a18b3469994b032ddb6b199aaba3e67872f700 Author: Yixun Lan <dlan@gentoo.org> AuthorDate: 2022-04-02 08:21:31 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2022-04-02 08:23:41 +0000 dev-util/crash: fix un-resolvable sys_open symbol issue always pull upstream's latest fixes/patches thanks "Pierre Asselin" for reporting this Closes: https://bugs.gentoo.org/836329 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Yixun Lan <dlan@gentoo.org> dev-util/crash/Manifest | 1 + dev-util/crash/crash-8.0.0-r1.ebuild | 43 ++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) This bug has returned in dev-util/crash-8.0.1 sorry, for 8.0.1, I've dropped the patch accidently, should be fixed in 8.0.2, please try again (In reply to Yixun Lan from comment #6) > sorry, for 8.0.1, I've dropped the patch accidently, > should be fixed in 8.0.2, please try again Yes, fixed in 8.0.2. Thanks. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fb203fb925ec7b6bd8cca6cbe380d85834fd681 commit 5fb203fb925ec7b6bd8cca6cbe380d85834fd681 Author: Yixun Lan <dlan@gentoo.org> AuthorDate: 2023-11-23 12:37:13 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2023-11-23 12:39:33 +0000 dev-util/crash: fix un-resolvable "sys_open" symbol issue fixed it as previously version bump dropped unintentionally Bug: https://bugs.gentoo.org/836329 Signed-off-by: Yixun Lan <dlan@gentoo.org> dev-util/crash/crash-8.0.4.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) |
Created attachment 768081 [details] Fix 'cannot resolve "sys_open"' in dev-util/crash-8.0.0 on x86 on x86 the command crash vmlinux vmcore fails with an error message cannot resolve "sys_open" Probably affects <=dev-util/crash-8.0.0 ; seen on -8.0.0 . Issue is that kernel symbols like "sys_xyz" became "__ia32_sys_xyz" and crash looks for a few of them under the old name in x86.c:x86_omit_frame_pointer(). Fix is to copy the logic from x86_64:x86_64_framepointer_init(), which handles the same issue for amd64. Patch attached. File x86.c is at the top of the crash source tree. Patch was submitted upstream.