I am using gdb to examine a core file but the output contains only the method addresses in hex.
Is there anyway to translate these addresses to a human-readable form? :confused: (0 Replies)
I am trying to print a stack trace programatically using backtrace and backtrace_symbols.
The problem is that the stack being printed in a mangled format. Is there a way to get the output in more of a human readable form?
I am using Red Hat and the program is written in c++. (2 Replies)
Hi all,
I was hoping someone can point me in the right direction. I'm trying to filter out errors from a web log- any lines with ERROR in it. I know I could simply use the grep command to do this. However, there are times when a stack trace follows the error line. I would like to capture these... (2 Replies)
Hi all,
One of our programs written in Java, produced this logfile. This job runs 48 threads and only one thread failed with this error. The code is a blackbox(external product), so cant look at the source code. From what I can infer from the log, the job was trying to write the log messages into... (9 Replies)
I'm on solaris 8. I need to check the stack trace inside my C program. I don't have printstack or walkstack. I tested getcontext and it works. But how do I get the symbols from "stack_t" ? Help please. Many thanks! (4 Replies)
Hello ,
I use Solaris 5.10 . I have huge core file , 48 GB , resulted from an application that was running and got crashed with SIGSEGV.
On my system only mdb works. Please help me to retrieve the stack trace from this core file.
I am novice to mdb and its nuaunces. Please help me with... (2 Replies)
Hi All
Thought it would be kind of fun to implement a stack trace for a shell script that calls functions within a sub shell. This is for bash under Linux and probably not portable -
#! /bin/bash
error_exit()
{
echo "======================="
echo $1
echo... (4 Replies)
I have a C program which is running as daemon and has some threads.
The program is running on dual core cpu and it may happen that different threads may run on different cpu core.
The problem is sometimes it crashes with some heap memory corruption probably between threads.
GDB command(t a a... (2 Replies)
Hi everyone,
Our Red Hat server hung yesterday, and I managed to log into the console and see the following message:
RIP: 0010: mwait_idle_with_hints+0x66/
0x67
RSP: 0018:ffffffff80457f40 EFLAGS: 00000046
RAX: 0000000000000010 RBX: ffff810c20075910 RCX: 0000000000000001
RDX:... (6 Replies)
I want the developers to get a mail with Java stack traces on a daily bases. When something is flaged as known issue and will get a fix but mean while this does not need to get sent each dayl. This is what I got so far. It's a bash script that runs some AWK in it.
To get the files that needs to... (6 Replies)
Discussion started by: chipmunken
6 Replies
LEARN ABOUT BSD
crash
CRASH(L) CRASH(L)
NAME
crash - analyze kernel dump or active system image
SYNOPSIS
crash [ aps ] [ -bdvtiz ] [ -s sfile ] [ -c cfile ] [ -u addr ]
DESCRIPTION
Synopsis of options -
-b Brief mode; skip general display of processes
-d Crash dump contains swap image. (default?)
-v Verbose; dump much information about each proc [future]
-t TTY structs to be dumpped
-i Incore inode table to be printed
-c FILE Provide non-standard file name for system image input
-s FILE Provide non-standard symboltable input
-u ADDR Trace a process other than currently selected one
-z Interrupt Trace displayed
aps Print PS & PC at time of interupt (doesn't do anything)
crash examines a dump of unix which it looks for in the file sysdump. It prints out the contents of the general registers, the kernel
stack and a traceback through the kernel stack. If an aps is specified, the ps and pc at time of interrupt are also printed out. The dump
of the stack commences from a "reasonable" address and all addresses are relocated to virtual addresses by using the value of kdsa6 found
in the dump.
The following options may be specified.
-b Brief mode; skip general display of processes. Only the currently selected process will be traced.
-c cfile
If the -c argument is found, the following argument is taken to be the name of a file containing the system image. The default is
"/usr/sys/core".
-s sfile
If the -s argument is found the following argument is taken to be the name of a file, containing a symbol table which should be used
in interpreting text addresses. The default is "/unix".
-u addr
Force a process to be displayed as if it were active when the crash occurred. addr is the octal address of the proc table entry.
FILES
/unix system namelist
/dev/swap swap device
/usr/sys/core core file
SEE ALSO crash(8), adb(1), ps(1), rstat(1)DIAGNOSTICS
Missing arg Unable to Open file Format Error in symbolfile
BUGS
Care should be used in running crash on "/dev/mem". Things can change while crash is running; the picture it gives is only a close approx-
imation to reality.
AUTHOR
Mike Muuss, JHU EE
John Stewart, Teledyne Geotech
March 1983 CRASH(L)