← Back to team overview

kernel-packages team mailing list archive

[Bug 1564487] Re: ISST-LTE:pVM:thymelp2:ubuntu 16.04: cannot analyse vmcore with crash (s390x, ppc64)

 

** Package changed: ubuntu => crash (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to crash in Ubuntu.
https://bugs.launchpad.net/bugs/1564487

Title:
  ISST-LTE:pVM:thymelp2:ubuntu 16.04: cannot analyse vmcore with crash
  (s390x, ppc64)

Status in crash package in Ubuntu:
  New

Bug description:
  == Comment: #0 - Ping Tian Han - 2016-03-31 02:19:27 ==
  ---Problem Description---
  With the kexec-tools comes from https://bugzilla.linux.ibm.com/show_bug.cgi?id=136588#c58 , we have dumpped a vmcore for bug 139815 after quiting from xmon. But when trying to analyse with crash:

  % sudo crash /usr/lib/debug/boot/vmlinux-4.4.0-15-generic
  /var/crash/201603310043/dump.201603310043

  crash 7.1.4
  Copyright (C) 2002-2015  Red Hat, Inc.
  Copyright (C) 2004, 2005, 2006, 2010  IBM Corporation
  Copyright (C) 1999-2006  Hewlett-Packard Co
  Copyright (C) 2005, 2006, 2011, 2012  Fujitsu Limited
  Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
  Copyright (C) 2005, 2011  NEC Corporation
  Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
  Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
  This program is free software, covered by the GNU General Public License,
  and you are welcome to change it and/or distribute copies of it under
  certain conditions.  Enter "help copying" to see the conditions.
  This program has absolutely no warranty.  Enter "help warranty" for details.

  GNU gdb (GDB) 7.6
  Copyright (C) 2013 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "powerpc64le-unknown-linux-gnu"...

  please wait... (gathering module symbol data)
  crash: invalid structure member offset: module_num_symtab
         FILE: kernel.c  LINE: 3450  FUNCTION: module_init()

  [/usr/bin/crash] error trace: 1008af0c => 10124250 => 10179bd0 =>
  10083378

    10083378: (undetermined)
    10179bd0: OFFSET_verify+80
    10124250: module_init+1104
    1008af0c: main_loop+764

  %

  == Comment: #4 - Hari Krishna Bathini - 2016-03-31 08:20:39 ==
  (In reply to comment #2)
  > Hi, 
  > 
  > Crash failing with 4.4+ kernels is a known issue which is fixed by the
  > upstream patch 
  > 
  > commit 6f1f78e33474d00d5f261d7ed9d835c558b34d61
  > Author: Dave Anderson <anderson@xxxxxxxxxx>
  > Date:   Wed Jan 20 09:56:36 2016 -0500
  > 
  >     Fix for the changes made to the kernel module structure introduced by
  >     this kernel commit for Linux 4.5 and later kernels:
  >     
  >       commit 7523e4dc5057e157212b4741abd6256e03404cf1
  >       module: use a structure to encapsulate layout.
  >     
  >     Without the patch, the crash session fails during initialization
  >     with the error message: "crash: invalid structure member offset:
  >     module_init_text_size".
  >     (sebott@xxxxxxxxxxxxxxxxxx)
  > 

  We also need the below upstream patch along with the patch mentioned
  above to fix this issue

  commit 098cdab16dfa6a85e9dad2cad604dee14ee15f66
  Author: Dave Anderson <anderson@xxxxxxxxxx>
  Date:   Fri Feb 12 14:32:53 2016 -0500

      Fix for the changes made to the kernel module structure introduced by
      this kernel commit for Linux 4.5 and later kernels:
      
        commit 8244062ef1e54502ef55f54cced659913f244c3e
        modules: fix longstanding /proc/kallsyms vs module insertion race.
      
      Without the patch, the crash session fails during initialization
      with the error message: "crash: invalid structure member offset:
      module_num_symtab".
      (anderson@xxxxxxxxxx)

  Thanks
  Hari

  == Comment: #9 - Hendrik Brueckner - 2016-03-31 11:47:13 ==
  Problem also exists on s390x:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crash/+bug/1564487/+subscriptions