From owner-freebsd-ports@freebsd.org Tue Oct 17 21:12:25 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8CAE4E4799E for ; Tue, 17 Oct 2017 21:12:25 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E2CF83B96; Tue, 17 Oct 2017 21:12:25 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id C01FF153C5; Tue, 17 Oct 2017 21:12:24 +0000 (UTC) From: Jan Beich To: Piotr Kubaj Cc: freebsd-ports@freebsd.org Subject: Re: Debugging ports References: <20171017160445.GA31080@smtp.iq.pl> Date: Tue, 17 Oct 2017 23:12:20 +0200 In-Reply-To: <20171017160445.GA31080@smtp.iq.pl> (Piotr Kubaj via freebsd-ports's message of "Tue, 17 Oct 2017 18:04:45 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2017 21:12:25 -0000 Piotr Kubaj via freebsd-ports 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.