Public bug reported:
crash version 8.0.4 in Noble fails to open with new HWE 7.0 kernels.
Steps to reproduce:
1. Setup the kernel and dbgsym packages
2. Install kdump-tools
3. Following error is noticed:
```
$ crash
...
...
crash: invalid structure member offset: kmem_cache_s_num
FILE: memory.c LINE: 9816 FUNCTION: kmem_cache_init()
[/usr/bin/crash] error trace: 5cc07d8c20a9 => 5cc07d8d5a32 =>
5cc07d8f6d05 => 5cc07d9e4d8d
```
This issue has been reported upstream and fixed in 9.0.2 release by the
upstream commit:
fe017d7cb95a ("memory: Handle crash failure in linux-next caused by struct
kmem_cache changes")
Since kernel commit cf338283652f ("slab: remove struct kmem_cache_cpu")
in linux-next there is no more 'cpu_slab' member in struct kmem_cache.
Pick 'cpu_sheaves' as an alternative kmem_cache member for kernel-next to
identify the SLUB case.
Without the patch, crash fails to start on kernel-next with the error
message:
crash: invalid structure member offset: kmem_cache_s_num
FILE: memory.c LINE: 9988 FUNCTION: kmem_cache_init()
This fix:
- allows the crash to start with no errors for kernel-next.
- make the 'kmap -s' command working again for kernel-next.
- throws an error message on 'kmem -S' command if no 'cpu_slab' member
presents in struct kmem_cache:
kmem: -S not supported for this kernel
** Affects: crash (Ubuntu)
Importance: Undecided
Status: New
** Affects: crash (Ubuntu Noble)
Importance: Undecided
Status: New
** Also affects: crash (Ubuntu Noble)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2164550
Title:
Crash fails to open with latest 7.0 kernels in Noble
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crash/+bug/2164550/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs