Bug 1339373 - /bin/crash reports "invalid structure member offset: module_num_symtab" despite correct debuginfo
Summary: /bin/crash reports "invalid structure member offset: module_num_symtab" despi...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: crash
Version: 24
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Dave Anderson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-24 20:19 UTC by Jeff Gehlbach
Modified: 2016-05-24 20:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-24 20:58:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jeff Gehlbach 2016-05-24 20:19:04 UTC
Description of problem:

Running /bin/crash against a crash dump and a matching set of debuginfo produces an error, complaining:

crash: invalid structure member offset: module_num_symtab

Version-Release number of selected component (if applicable):

7.1.4 (crash-7.1.4-1.fc24.x86_64)

How reproducible:

Always

Steps to Reproduce:
1. Trigger a crash dump via the SysRq facility. Running kernel is 4.5.5-300.fc24.x86_64
2. Boot into an interactive session with same kernel from step 1 (4.5.5-300.fc24.x86_64)
3. Run crash against the resulting crash dump, using the debuginfo matching the kernel from steps 1 and 2 (4.5.5-300.fc24.x86_64)

Actual results:

[root@monkeyfaced ~]# crash /var/crash/127.0.0.1-2016-05-24-16\:02\:41/vmcore /usr/lib/debug/lib/modules/4.5.5-300.fc24.x86_64/vmlinux 

crash 7.1.4-1.fc24
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 "x86_64-unknown-linux-gnu"...

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

[/bin/crash] error trace: 6b1bc3 => 46416d => 4df60e => 5317f2

  5317f2: OFFSET_verify+146
  4df60e: module_init+1406
  46416d: main_loop+653
  6b1bc3: (undetermined)



Expected results:

A useful crash dump report :)

Additional info:

My impetus for installing kdump et al is to help chase down freezes with F24-beta running on a new Thinkpad X1 Carbon, 4th generation. The freezes often time-correlate with plugging in an external monitor via the system's built-in HDMI or Mini DisplayPort interfaces. I'm new to kdump and definitely not a kernel hacker, but comfortable enough and plenty willing to trash the installation or install rawhide, if it will help get this hardware working well.

Comment 1 Dave Anderson 2016-05-24 20:22:05 UTC
Try crash-7.1.5:

  Information for build crash-7.1.5-2.fc25
  http://koji.fedoraproject.org/koji/buildinfo?buildID=760294

Comment 2 Jeff Gehlbach 2016-05-24 20:28:00 UTC
That did it. Thanks, Dave.


Note You need to log in before you can comment on or make changes to this bug.