Wind River Support Network

HomeDefectsLIN6-3444
Not to be fixed

LIN6-3444 : [Feature Testing][Networking]crash should run-time depends on binutils

Created: Mar 15, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Previous ID: LIN5-4327, LIN6-2840
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Networking

Description

Problem Description
======================
crash should run-time depends on binutils.
When execute crash command on target, if binutils is not installed, crash will fail with bellow error.
strings is a link to ***-wrswrap-linux-gnu-strings, and ***-wrswrap-linux-gnu-strings is installed by binutils.

sh: /usr/bin/strings: No such file or directory
WARNING: kernels compiled by different gcc versions:
  fsl-p50xx-vmlinux-symbols-WR5.0.1.0_standard: (unknown)
  vmcore kernel: 4.6.3

WARNING: kernel version inconsistency between vmlinux and dumpfile

lib64-crash: incompatible arguments:
   fsl-p50xx-vmlinux-symbols-WR5.0.1.0_standard is not SMP -- vmcore is SMP


Expected Behavior
======================
when crash is installed into rootfs, binutils also should be installed.

Observed Behavior
======================
root@localhost:~# lib64-crash fsl-p50xx-vmlinux-symbols-WR5.0.1.0_standard vmcore

lib64-crash 6.1.4
Copyright (C) 2002-2013  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 "powerpc64-wrsmllib64-linux"...

sh: /usr/bin/strings: No such file or directory
WARNING: kernels compiled by different gcc versions:
  fsl-p50xx-vmlinux-symbols-WR5.0.1.0_standard: (unknown)
  vmcore kernel: 4.6.3

WARNING: kernel version inconsistency between vmlinux and dumpfile

lib64-crash: incompatible arguments:
   fsl-p50xx-vmlinux-symbols-WR5.0.1.0_standard is not SMP -- vmcore is SMP

Usage:

  crash [OPTION]... NAMELIST MEMORY-IMAGE  (dumpfile form)
  crash [OPTION]... [NAMELIST]             (live system form)

Enter "lib64-crash -h" for details.
root@localhost:~#

Steps to Reproduce

reproduce on fsl-p50xx:
1.build system rootfs and kernel
configure --enable-board=fsl-p50xx --enable-kernel=standard --enable-rootfs=glibc_std --with-template=feature/kexec --enable-parallel-pkgbuilds=8 --enable-jobs=8
make all
2.boot up target with system rootfs and kernel,
  Must boot up target with crashkernel=256M@64M
3.build caprute kernel in another project
configure --enable-board=fsl-p50xx --enable-kernel=standard --enable-rootfs=glibc_std --with-template=feature/kdump --enable-parallel-pkgbuilds=8 --enable-jobs=8
make all
4.copy capture kernel to target
scp fsl-p50xx-vmlinux-symbols-WR5.0.1.0_standard root@<target ip>:/root/
5.load capture
kexec -p capture_kernel/fsl-p50xx-vmlinux-symbols-WR5.0.1.0_standard --append="root=/dev/sdb1 rw ip=128.224.178.27:128.224.165.20:128.224.178.1:255.255.254.0::eth1:off console=ttyS0,115200"
6.triger a crash
echo c > /proc/sysrq-trigger
7.After system boot up successfully, use crash to analyze vmcore
crash-lib64 /boot/vmlinux-3.4.34-WR5.0.1.0_standard /proc/vmcore 
Live chat
Online