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

Sebastian Ott sebott at linux.vnet.ibm.com
Mon Jun 6 16:44:43 UTC 2011


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

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




More information about the Crash-utility mailing list