[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 17:39:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268897

Mitchell Horne <mhorne@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mhorne@freebsd.org

--- Comment #1 from Mitchell Horne <mhorne@freebsd.org> ---
(In reply to John F. Carr from comment #0)

Hi, thanks for the report. I have a couple of questions.

First, how easily is this crash reproduced? Does it trigger consistently every
time, after the program has run a while, or very rarely?

What is the threading model of the program? Does it consist of several
long-lived threads or does it continuously spawn many threads with short
lifespans?

If you are able to share the referenced program, or another reproducer, that
would go a long way to assist with isolating the issue.

My guess as to how this assertion could occur is that one of the relevant
fields in the thread are not being cleared/initialized properly, and re-use of
the thread structure results in an unintended call to
pmc_capture_user_callchain().

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