[Bug 273688] sysutils/pstack: does not work with Valgrind

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 25 Sep 2023 06:42:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273688

--- Comment #5 from Paul Floyd <pjfloyd@wanadoo.fr> ---
In the end two changes are required. There's the patch that I just uploaded
that fixes the problem with notype functions.

The other thing is that I needed to build Valgrind with
-fno-omit-frame-pointer. From what I've seen most functions _are_ using the
frame pointer. I need to do a bit more work to see if I can just tweak a few
things to get the base pointer used everywhere.

Yesterday I stumbled across the bstack package when looking to see if there is
a FreeBSD version of gstack. Using that is probably the best solution. pstack
is not doing a great job of reinventing the wheel, plus upstream pstack seems
unmaintained (no changes in 11 years).

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