FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 04-21-2008, 05:53 AM
"Durga Prasad"
 
Default Crash-utility Digest, Vol 31, Issue 10

Hi,
*
I could not find kernel-debuginfo for SLES 9 kernels.
What do*I do ?

*
On 4/16/08, crash-utility-request@redhat.com <crash-utility-request@redhat.com> wrote:
Send Crash-utility mailing list submissions to
****** crash-utility@redhat.com


To subscribe or unsubscribe via the World Wide Web, visit
****** https://www.redhat.com/mailman/listinfo/crash-utility
or, via email, send a message with subject or body 'help' to

****** crash-utility-request@redhat.com

You can reach the person managing the list at
****** crash-utility-owner@redhat.com


When replying, please edit your Subject line so it is more specific
than "Re: Contents of Crash-utility digest..."


Today's Topics:

**1. x86_64 crash (cross-platform) (Cliff Wickman)

**2. Re: x86_64 crash (cross-platform) (Chip Coldwell)


----------------------------------------------------------------------

Message: 1
Date: Tue, 15 Apr 2008 15:34:38 -0500
From: Cliff Wickman <cpw@sgi.com>

Subject: [Crash-utility] x86_64 crash (cross-platform)
To: anderson@redhat.com
Cc: crash-utility@redhat.com
Message-ID: <E1JlrrS-0002i7-Oe@eag09.americas.sgi.com>



Hi Dave,

We've recently seen lcrash fail with a floating point exception
very early in initialization.
Seems to be a binary compiled under one distribution and then
executed on another.


And the solution seems to be the -Wl,--hash-style=both option.

Have others reported this?
There must be a cleaner solution than in my notes below.** That is,
an easier way to link with this option.

Thanks.

-Cliff
--------------------------------------------------------------------------

To make crash so that it runs under SLES or RedHat:
cd /home/estes02/cpw/crash-4.0-6.2
make

Compile it on a SLES system:

good:
cpw@spandau:/tmp/cpw/crash-4.0-6.2> readelf -S crash | grep -A1 hash
[ 4] .hash************ HASH************ 0000000000400290**00000290
******0000000000009490**0000000000000004** A****** 5**** 0**** 8

on a RHEL:
bad:
cpw@alcatraz crash-4.0-6.2 $ readelf -S crash | grep -A1 hash
[ 3] .gnu.hash******** GNU_HASH******** 0000000000400240**00000240
******000000000000a040**0000000000000000** A****** 4**** 0**** 8

OR

vi gdb-6.1/gdb/configure
---
if test "$GCC" = yes; then
** CFLAGS="-g -O2 -Wl,--hash-style=both"
else
** CFLAGS="-g -Wl,--hash-style=both"
fi
else
if test "$GCC" = yes; then

** CFLAGS="-O2 -Wl,--hash-style=both"
else
** CFLAGS="-Wl,--hash-style=both"
---
make
readelf -S crash | grep -A1 hash** (should show GNU form)

cpw@alcatraz crash-4.0-6.2 $ readelf -S crash | grep -A1 hash

[ 3] .hash************ HASH************ 0000000000400240**00000240
******0000000000009490**0000000000000004** A****** 5**** 0**** 8
[ 4] .gnu.hash******** GNU_HASH******** 00000000004096d0**000096d0
******000000000000a040**0000000000000000** A****** 5**** 0**** 8

------------------------------------------------------------------------



------------------------------

Message: 2
Date: Tue, 15 Apr 2008 16:43:30 -0400 (EDT)
From: Chip Coldwell <coldwell@redhat.com>

Subject: Re: [Crash-utility] x86_64 crash (cross-platform)
To: "Discussion list for crash utility usage,** maintenance and
****** development" <crash-utility@redhat.com>

Message-ID:
****** <alpine.LRH.1.00.0804151642150.32524@bogart.boston .redhat.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Tue, 15 Apr 2008, Cliff Wickman wrote:

>
> Hi Dave,
>
> We've recently seen lcrash fail with a floating point exception
> very early in initialization.
> Seems to be a binary compiled under one distribution and then

> executed on another.
>
> And the solution seems to be the -Wl,--hash-style=both option.
>
> Have others reported this?

This isn't specific to crash; it's the result of a change in the

Linux/glibc ABI.**Specifically, the new ABI has a .hash.gnu section
whereas the old one has .hash.**Your linker option above causes both
sections to be included, so that the old dynamic loader can load a
binary built with a new toolchain.


Chip

--
Charles M. "Chip" Coldwell
Senior Software Engineer
Red Hat, Inc
978-392-2426

GPG ID:**852E052F
GPG FPR: 77E5 2B51 4907 F08A 7E92**DE80 AFA9 9A8F 852E 052F




------------------------------

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility



End of Crash-utility Digest, Vol 31, Issue 10
*********************************************


--

---------
Keep dreaming, for dreams are the precursors of things to come real.. @!#$
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 04-21-2008, 07:21 AM
Bernhard Walle
 
Default Crash-utility Digest, Vol 31, Issue 10

Hi,

* Durga Prasad [2008-04-21 11:23]:
>
> I could not find kernel-debuginfo for SLES 9 kernels.
> What do I do ?

There are no debuginfos for SLES9. You have to recompile the kernel
with CONFIG_DEBUG_INFO=y and then use the System.map from the crashed
kernel and the vmlinux from the recompiled kernel. This should work.


Bernhard

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 04-21-2008, 07:24 AM
Eugene Teo
 
Default Crash-utility Digest, Vol 31, Issue 10

Bernhard Walle wrote:

Hi,

* Durga Prasad [2008-04-21 11:23]:

I could not find kernel-debuginfo for SLES 9 kernels.
What do I do ?


There are no debuginfos for SLES9. You have to recompile the kernel
with CONFIG_DEBUG_INFO=y and then use the System.map from the crashed
kernel and the vmlinux from the recompiled kernel. This should work.


There are some instructions here that may be of some use to you:
http://sources.redhat.com/systemtap/wiki/SystemTapOnopenSUSE

Thanks,
Eugene

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 04-21-2008, 07:25 AM
Eugene Teo
 
Default Crash-utility Digest, Vol 31, Issue 10

Eugene Teo wrote:

Bernhard Walle wrote:

Hi,

* Durga Prasad [2008-04-21 11:23]:

I could not find kernel-debuginfo for SLES 9 kernels.
What do I do ?


There are no debuginfos for SLES9. You have to recompile the kernel
with CONFIG_DEBUG_INFO=y and then use the System.map from the crashed
kernel and the vmlinux from the recompiled kernel. This should work.


There are some instructions here that may be of some use to you:
http://sources.redhat.com/systemtap/wiki/SystemTapOnopenSUSE


Or maybe not. Just noticed you are using SLES 9.

Thanks,
Eugene

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 

Thread Tools




All times are GMT. The time now is 11:18 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org