FreeBSDFoundation / freebsd

FreeBSD source tree for FreeBSD Foundation-sponsored projects
https://www.freebsdfoundation.org/
Other
9 stars 3 forks source link

stack_save_td needed for procstat #8

Open emaste opened 9 years ago

emaste commented 9 years ago

root@:/usr/src # procstat -kka PID TID COMM TDNAME KSTACK
panic: stack_save_td KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x30 pc = 0xffffff80003c41a8 lr = 0xffffff8000014b08 sp = 0xffffff8056fc14e0 fp = 0xffffff8056fc1610

db_trace_self_wrapper() at vpanic+0xc8 pc = 0xffffff8000014b08 lr = 0xffffff800015445c sp = 0xffffff8056fc1620 fp = 0xffffff8056fc1690

vpanic() at panic+0x4c pc = 0xffffff800015445c lr = 0xffffff800015456c sp = 0xffffff8056fc16a0 fp = 0xffffff8056fc1720

panic() at stack_save_td+0x18 pc = 0xffffff800015456c lr = 0xffffff80003cf84c sp = 0xffffff8056fc1730 fp = 0xffffff8056fc1730

stack_save_td() at sysctl_kern_proc_kstack+0x208 pc = 0xffffff80003cf84c lr = 0xffffff8000146cac sp = 0xffffff8056fc1740 fp = 0xffffff8056fc1800

sysctl_kern_proc_kstack() at sysctl_root_handler_locked+0xe4 pc = 0xffffff8000146cac lr = 0xffffff80001609e4 sp = 0xffffff8056fc1810 fp = 0xffffff8056fc1850

sysctl_root_handler_locked() at sysctl_root+0x180 pc = 0xffffff80001609e4 lr = 0xffffff8000160110 sp = 0xffffff8056fc1860 fp = 0xffffff8056fc1890

sysctl_root() at userland_sysctl+0x1c4 pc = 0xffffff8000160110 lr = 0xffffff800016074c sp = 0xffffff8056fc18a0 fp = 0xffffff8056fc1950

userland_sysctl() at sys___sysctl+0x68 pc = 0xffffff800016074c lr = 0xffffff8000160548 sp = 0xffffff8056fc1960 fp = 0xffffff8056fc19f0

sys___sysctl() at do_el0_sync+0x30c pc = 0xffffff8000160548 lr = 0xffffff80003d02c4 sp = 0xffffff8056fc1a00 fp = 0xffffff8056fc1aa0

do_el0_sync() at handle_el0_sync+0x54 pc = 0xffffff80003d02c4 lr = 0xffffff80003c51b0 sp = 0xffffff8056fc1ab0 fp = 0x7ffffff610

handle_el0_sync() at 0x40466068 pc = 0xffffff80003c51b0 lr = 0x40466068 sp = 0x7ffffff620 fp = 0x7ffffff660

$d.6() at 0x403198 pc = 0x40466068 lr = 0x00403198 sp = 0x7ffffff670 fp = 0x7ffffffb00

$d.6() at 0x401cd8 pc = 0x00403198 lr = 0x00401cd8 sp = 0x7ffffffb10 fp = 0x7ffffffb90

$d.6() at 0x401880 pc = 0x00401cd8 lr = 0x00401880 sp = 0x7ffffffba0 fp = 0x7ffffffbd0

$d.6() at 0x404183d0 pc = 0x00401880 lr = 0x404183d0 sp = 0x7ffffffbe0 fp = 0x00000000

KDB: enter: panic [ thread pid 12382 tid 100052 ] Stopped at kdb_enter+0x6c: db>

emaste commented 9 years ago

panic gone as of r281850 https://svnweb.freebsd.org/changeset/base/281850 but implementation is still needed