[Bug 268897] panic: [pmc,4811] Retrieving callchain for thread that doesn't want it

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 Jan 2023 20:21:47 UTC

--- Comment #3 from John F. Carr <jfc@mit.edu> ---
Created attachment 239457
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239457&action=edit
Reproduction program and required libraries

I attached a tar file with the executable "run" and the necessary shared
libraries.  You will need to set LD_LIBRARY_PATH due to the shared libraries,

$ LD_LIBRARY_PATH=. ./run 23 for

I ran the program in a bhyve guest VM (CURRENT as of last week) and it crashed
differently when I forgot to set LD_LIBRARY_PATH:

$ pmcstat -U -O perf.outu -P ls_not_halted_cyc -P instructions -P
ls_refills_from_sys.ls_mabresp_rmt_dram ./run 24 for
ld-elf.so.1: Shared object "libopencilk-personality-cpanic: [amd,770] PMC0,
CPU4 "K8-0" already stopped
cpuid = 4
time = 1673640312
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00855d1c20
vpanic() at vpanic+0x151/frame 0xfffffe00855d1c70
panic() at panic+0x43/frame 0xfffffe00855d1cd0
amd_stop_pmc() at amd_stop_pmc+0x12e/frame 0xfffffe00855d1cf0
pmc_process_exit() at pmc_process_exit+0x26d/frame 0xfffffe00855d1d80
exit1() at exit1+0x36e/frame 0xfffffe00855d1df0
sys_exit() at sys_exit+0xd/frame 0xfffffe00855d1e00
amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe00855d1f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00855d1f30
--- syscall (1, FreeBSD ELF64, exit), rip = 0xbd6753917aa, rsp = 0x8203e4b68,
rbp = 0x8203e4b80 ---
KDB: enter: panic
[ thread pid 765 tid 100129 ]
Stopped at      kdb_enter+0x32: movq    $0,0x129dc83(%rip)

You are receiving this mail because:
You are the assignee for the bug.