Oracle Solaris Performance, Panics, Hangs, and Dtrace (MOSC)

MOSC Banner

show userland stack with mdb from system core file

edited Feb 1, 2017 3:05AM in Oracle Solaris Performance, Panics, Hangs, and Dtrace (MOSC) 4 commentsAnswered ✓

It is possible to show the stack of a userland process from system core like mdb attached to a running process with option -p?

I have crash dump and can show the stack of the process in kernel with

> 0t2345::pid2proc | ::walk thread | ::findstack

but this show only the stack in kernel with a syscall on top.

I can switch the context to the process

> 2345::context

debugger context set to proc ffffff03d6bf3038

> ::status

debugging PID 2345 (32-bit) in kernel crash dump

executable file: /usr/sbin/mydeamon

but there the command ::stacks do not work

> ::stacks

mdb: failed to read 'allthreads': unknown symbol name

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center