public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Not able to decode local/ stack variables in vmcore
       [not found] <CALkUMdTyaY2P-eh7JMb6KPgyPa8oZKrb4XJcgaWOpnUn2s6GaQ@mail.gmail.com>
@ 2021-12-14 10:22 ` Vimal Agrawal
  0 siblings, 0 replies; only message in thread
From: Vimal Agrawal @ 2021-12-14 10:22 UTC (permalink / raw)
  To: gdb; +Cc: Vimal Agrawal

I don't see any option to see local variables in vmcore using crash
utility. Tried gdb as well. Gdb is not able to dump stack.

(gdb) bt

#0  sysrq_handle_crash (key=99) at drivers/tty/sysrq.c:147

Backtrace stopped: Cannot access memory at address 0xffffb8c6c132fe40

(gdb) x 0xffffb8c6c132fe40

0xffffb8c6c132fe40: Cannot access memory at address 0xffffb8c6c132fe40

(gdb) info reg rsp

rsp            0xffffb8c6c132fe38 0xffffb8c6c132fe38

(gdb)


I have loaded symbols on specific .text, .data and .bss load addresses
using following commands:
> gdb -c kcrash_vmcore
gdb> add-symbol-file ~/crash3/vmlinux 0xffffffff97000000 -s .data
0xffffffff97c00000 -s .bss 0xffffffff97fa5000

I could decode .text and global .data symbols but not stack addresses
and local variables.
I have tried enabling CONFIG_FRAME_POINTER and also tried the latest
version of gdb and crash as well but no help.

Can someone please suggest and comment if this is indeed possible with
gdb/crash to decode local variables from vmcore?

Vimal Agrawal

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-14 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CALkUMdTyaY2P-eh7JMb6KPgyPa8oZKrb4XJcgaWOpnUn2s6GaQ@mail.gmail.com>
2021-12-14 10:22 ` Not able to decode local/ stack variables in vmcore Vimal Agrawal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).