Debugging ports

Jan Beich jbeich at
Tue Oct 17 21:12:25 UTC 2017

Piotr Kubaj via freebsd-ports <freebsd-ports at> writes:

> Hi all,
> I am preparing a new port. However, I hit an assertion fail when
> starting the binary. The developer is willing to help me, provided
> that I send him backtrace and values from the structure that hits
> assertion failure.
> Thing is, recompiling with WITH_DEBUG doesn't help (I only get memory
> addresses in gdb), nor does -DCMAKE_BUILD_TYPE=Debug to CMAKE_ARGS
> (the port uses CMake).
> What should I do to get necessary date?

Recompile library dependencies (look up which via ldd(1) and strings(1))
with debugging symbols as well. That may include not only ports but some
of the base e.g., lib/libc, lib/libthr, libexec/rtld-elf.

More information about the freebsd-ports mailing list