Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2017 23:12:20 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Piotr Kubaj <pkubaj@anongoth.pl>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Debugging ports
Message-ID:  <tvyx-4gy3-wny@FreeBSD.org>
In-Reply-To: <20171017160445.GA31080@smtp.iq.pl> (Piotr Kubaj via freebsd-ports's message of "Tue, 17 Oct 2017 18:04:45 %2B0200")
References:  <20171017160445.GA31080@smtp.iq.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Piotr Kubaj via freebsd-ports <freebsd-ports@freebsd.org> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tvyx-4gy3-wny>