[Crash-utility] crash fails with incompatible arguments on current kernel

Dave Anderson anderson at redhat.com
Mon Jun 6 18:11:36 UTC 2011



----- Original Message -----
> Hi,
> 
> crash seems to be a victim of the linux version number change. On a
> live system it fails with:
> WARNING: kernels compiled by different gcc versions:
> /root/data/git.linux-2.6/vmlinux: (unknown)
> live system kernel: 4.5.3
> 
> WARNING: kernel version inconsistency between vmlinux and live memory
> 
> crash: incompatible arguments:
> /root/data/git.linux-2.6/vmlinux is not SMP -- live system is SMP

Thanks for catching that -- can you also please dump/attach the output
of "help -k" on that system?

Anyway, to avoid any false positives, I'll probably make the patch
check for "Linux version 2." or "Linux version 3."

Thanks,
  Dave

> 
> as a workaround I've used:
> ---
> kernel.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/kernel.c
> +++ b/kernel.c
> @@ -1031,7 +1031,7 @@ verify_namelist()
> found = FALSE;
> sprintf(buffer3, "(unknown)");
> while (fgets(buffer, BUFSIZE-1, pipe)) {
> - if (!strstr(buffer, "Linux version 2."))
> + if (!strstr(buffer, "Linux version "))
> continue;
> 
> if (strstr(buffer, kt->proc_version)) {
> 
> 
> Regards,
> Sebastian
> 
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility




More information about the Crash-utility mailing list