Re: crash fails with incompatible arguments on current kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/crash-utility

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility


[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux