Wind River Support Network

HomeDefectsLIN5-4079
Fixed

LIN5-4079 : [Feature Testing][networking]Can not analyse vmcore with crash on target

Created: Jan 15, 2013    Updated: Dec 19, 2017
Resolved Date: Apr 25, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.3
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Networking

Description

Problem Description
======================
After get vmcore with kdump, try to anylise it with crash, always fail with "invalid structure member offset: module_core_size"

Expected Behavior
======================
can anylise vmcore with crash

Observed Behavior
======================
root@localhost:~# crash /boot/vmlinux-3.4.20-grsec-WR5.0.1.0_cgl vmcore

crash 6.1.0
Copyright (C) 2002-2012 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.3.1
Copyright (C) 2011 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-wrs-linux"...

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

[/usr/bin/crash] error trace: 45ffe4 => 4c3934 => 504812 => 45981d

45981d: (undetermined)
504812: OFFSET_verify+50
4c3934: module_init+852
45ffe4: main_loop+212

root@localhost:~# NFSD: Unable to end grace period: -110
[Hardware Error]: Machine check events logged

root@localhost:~#
root@localhost:~#
root@localhost:~# crash /boot/vmlinux-3.4.20-grsec-WR5.0.1.0_cgl

crash 6.1.0
Copyright (C) 2002-2012 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.3.1
Copyright (C) 2011 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-wrs-linux"...

Program crash tried to access /dev/mem between 18b1000->18b1100.
crash: read error: kernel virtual address: ffffffff828b1f00 type: "kernel_config_data"
WARNING: cannot read kernel_config_data
Program crash tried to access /dev/mem between 18ae000->18ae008.
Program crash tried to access /dev/mem between 101000->101008.
Program crash tried to access /dev/mem between 1c69000->1c69008.
crash: read error: kernel virtual address: ffffffff828ae6f8 type: "cpu_possible_mask"

crash: this kernel may be configured with CONFIG_STRICT_DEVMEM, which
renders /dev/mem unusable as a live memory source.

crash: trying /proc/kcore as an alternative to /dev/mem


crash: invalid structure member offset: module_core_size
FILE: kernel.c LINE: 2968 FUNCTION: module_init()

[/usr/bin/crash] error trace: 45ffe4 => 4c3934 => 504812 => 45981d

45981d: (undetermined)
504812: OFFSET_verify+50
4c3934: module_init+852
45ffe4: main_loop+212

root@localhost:~#

Workaround

Disable address space layout randomization in PaX

Steps to Reproduce

1. For how to run kdump, please refer to the README for BSP
such as READMES/8-README-intel-xeon-core
2. After get vmcore, copy it to /root
3. anylise vmcore with crash
crash /boot/vmlinux-3.4.20-grsec-WR5.0.1.0_cgl /root/vmcore 

Other Downloads


Live chat
Online