tests/pmc: annotate busy loop counters with __unused
This fixes the build with gcc 16 after the changes
to -Wunused*[0].
[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused
Reviewed by: netchild
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
science/dlib-cpp: Make the GUI support optional
Without X11, dlib is built with DLIB_NO_GUI_SUPPORT and links no X11
library, so consumers of its numerical parts no longer pull in X11.
The default stays on.
mail/postfix: Depend on databases/lmdb
As the breaking change introduced in lmdb 1.0.0 has been reverted
since lmdb 1.0.1, change the dependency back to databases/lmdb
And while here, also replace the hardwired include and library
paths and named with pkgconfig.
graphics/lensfun: unbreak the port's build against CMake 4.x
While here, merge USES+=pathfix into already existing patch
to reduce the number of post-edit backups files.
PR: 298953
epoch: Fix use-after-free in epoch_trace_report()
epoch_trace_report() assigned the return value of RB_INSERT() back to
the new element. When two threads report the same stack concurrently,
the loser's RB_INSERT() returns the element already in the tree, and
that element was freed while still linked, leaking the new allocation.
The next lookup touches freed memory; KASAN catches it as a
use-after-free.
Keep the return value separate and free the new element instead. The
thread that won the race prints the report, so return without printing
it a second time.
Reviewed by: markj
Fixes: 173c062a569b ("Improve EPOCH_TRACE")
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D60162