Wind River Support Network

HomeDefectsCGP5-511
Fixed

CGP5-511 : [Feature Testing][Networking]if build MLIB, both lib64 crash and lib32 crash should be installed.

Created: Mar 6, 2013    Updated: Mar 11, 2016
Resolved Date: Mar 17, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.1
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Networking

Description

Problem Description
======================
For fsl-p50xx, default rootfs is 32bit, and kernel is 64bit. After get vmcore with kdump, the default
crash command can not analyse vmcore because they are different arch. In order to analyse vmcore,
user must build and install lib64-crash.
So if build MLIB, both lib64 crash and lib32 crash should be installed.


Expected Behavior
======================
if build MLIB, both lib64 crash and lib32 crash should be installed.


Observed Behavior
======================
root@localhost:~# file /usr/bin/crash
/usr/bin/crash: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.34, with unknown capability 0x41000000 = 0x11676e75, with unknown capability 0x10000 = 0x90401, not stripped
root@localhost:~# crash /boot/vmlinux-3.4.28-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.

WARNING: machine type mismatch:
crash utility: PPC
/boot/vmlinux-3.4.28-grsec-WR5.0.1.0_cgl: PPC64

crash: /boot/vmlinux-3.4.28-grsec-WR5.0.1.0_cgl: not a supported file format

Usage:

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

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

Workaround

Build MLIB crash manually 

Steps to Reproduce

1. Build MLIB rootfs
configure --enable-board=fsl-p50xx --enable-kernel=cgl --enable-rootfs=glibc_cgl --enable-parallel-pkgbuilds=8 --enable-jobs=8
make fs

Or
configure --enable-board=intel-xeon-core --enable-kernel=cgl --enable-rootfs=glibc_cgl --enable-parallel-pkgbuilds=8 --enable-jobs=8
make MLIB=lib32 fs

2. Check lib32 crash and lib64 crash are all installed.

Other Downloads


Live chat
Online