[{"id":20260,"web_url":"https://patchwork.libcamera.org/comment/20260/","msgid":"<20211018051521.GG2066071@pyrite.rasen.tech>","date":"2021-10-18T05:15:21","subject":"Re: [libcamera-devel] [PATCH] README: Document dependencies for\n\tbacktrace generation","submitter":{"id":17,"url":"https://patchwork.libcamera.org/api/people/17/","name":"Paul Elder","email":"paul.elder@ideasonboard.com"},"content":"Hi Laurent,\n\nOn Mon, Oct 18, 2021 at 07:52:26AM +0300, Laurent Pinchart wrote:\n> libcamera now has the ability to use libdw and libunwind to generate\n> backtraces, in addition to the glibc backtrace() function. libdw\n> provides the most detailed output and is highly recommended, but is\n> limited to parsing backtraces, it doesn't support capturing them.\n> libunwind and backtrace() provide both features. If backtrace() is\n> available, libunwind will not bring any improvement.\n> \n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\nReviewed-by: Paul Elder <paul.elder@ideasonboard.com>\n\n> ---\n>  README.rst | 8 ++++++++\n>  1 file changed, 8 insertions(+)\n> \n> diff --git a/README.rst b/README.rst\n> index 9ad0823d2038..8af5f1184e5f 100644\n> --- a/README.rst\n> +++ b/README.rst\n> @@ -63,6 +63,14 @@ for the libcamera core: [required]\n>  for IPA module signing: [required]\n>          libgnutls28-dev openssl\n>  \n> +for improved debugging: [optional]\n> +        libdw-dev libunwind-dev\n> +\n> +        libdw and libunwind provide backtraces to help debugging assertion\n> +        failures. Their functions overlap, libdw provides the most detailed\n> +        information, and libunwind is not needed if both libdw and the glibc\n> +        backtrace() function are available.\n> +\n>  for the Raspberry Pi IPA: [optional]\n>          libboost-dev\n>  \n> \n> base-commit: 2f75a7e5b8c6258dc12e9e3128cb30133f66b4f9\n> prerequisite-patch-id: a2501788e3af4ef5a091e784838d614c59e5d7fc\n> prerequisite-patch-id: 50f1d9ef74d51440b0f79116eb82580ad1fa04a2\n> prerequisite-patch-id: 6ad689b8c9be17165b330a16c7cef62dbdfb5d8f\n> -- \n> Regards,\n> \n> Laurent Pinchart\n>","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 9A449C324C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 18 Oct 2021 05:15:30 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 1E07D68F59;\n\tMon, 18 Oct 2021 07:15:30 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 97C9160128\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 18 Oct 2021 07:15:28 +0200 (CEST)","from pyrite.rasen.tech (unknown\n\t[IPv6:2400:4051:61:600:2c71:1b79:d06d:5032])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 2699A12A;\n\tMon, 18 Oct 2021 07:15:26 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"u3PpCw1k\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1634534128;\n\tbh=3qt/PU68v4lctQrM9SwsntfRd5X39zbQMoFTnR4sLzA=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=u3PpCw1kz/OUHUje9JoFZU33EhEsJQ402ibDofiYChUCDgHF0BR1J+YtnE3CQBS3w\n\t4c4Us0KVHIeqMe47f5BsnMFhu7KKxiG1Vn5l44SOU2EYm5Af2D08GzkqO82RpysRRg\n\tlKmzsgieWR17nMsBBI1ZQI8BzqCfjuR54ai0EDGE=","Date":"Mon, 18 Oct 2021 14:15:21 +0900","From":"paul.elder@ideasonboard.com","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Message-ID":"<20211018051521.GG2066071@pyrite.rasen.tech>","References":"<20211018045226.6759-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20211018045226.6759-1-laurent.pinchart@ideasonboard.com>","Subject":"Re: [libcamera-devel] [PATCH] README: Document dependencies for\n\tbacktrace generation","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Cc":"libcamera-devel@lists.libcamera.org","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":20261,"web_url":"https://patchwork.libcamera.org/comment/20261/","msgid":"<02d42900-f850-a501-4223-0090b7df4815@ideasonboard.com>","date":"2021-10-18T05:16:57","subject":"Re: [libcamera-devel] [PATCH] README: Document dependencies for\n\tbacktrace generation","submitter":{"id":86,"url":"https://patchwork.libcamera.org/api/people/86/","name":"Umang Jain","email":"umang.jain@ideasonboard.com"},"content":"Hi Laurent,\n\nThank you for the patch\n\nOn 10/18/21 10:22 AM, Laurent Pinchart wrote:\n> libcamera now has the ability to use libdw and libunwind to generate\n> backtraces, in addition to the glibc backtrace() function. libdw\n> provides the most detailed output and is highly recommended, but is\n> limited to parsing backtraces, it doesn't support capturing them.\n> libunwind and backtrace() provide both features. If backtrace() is\n> available, libunwind will not bring any improvement.\n>\n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\n\nReviewed-by: Umang Jain<umang.jain@ideasonboard.com>\n\n> ---\n>   README.rst | 8 ++++++++\n>   1 file changed, 8 insertions(+)\n>\n> diff --git a/README.rst b/README.rst\n> index 9ad0823d2038..8af5f1184e5f 100644\n> --- a/README.rst\n> +++ b/README.rst\n> @@ -63,6 +63,14 @@ for the libcamera core: [required]\n>   for IPA module signing: [required]\n>           libgnutls28-dev openssl\n>   \n> +for improved debugging: [optional]\n> +        libdw-dev libunwind-dev\n> +\n> +        libdw and libunwind provide backtraces to help debugging assertion\n> +        failures. Their functions overlap, libdw provides the most detailed\n> +        information, and libunwind is not needed if both libdw and the glibc\n> +        backtrace() function are available.\n> +\n>   for the Raspberry Pi IPA: [optional]\n>           libboost-dev\n>   \n>\n> base-commit: 2f75a7e5b8c6258dc12e9e3128cb30133f66b4f9\n> prerequisite-patch-id: a2501788e3af4ef5a091e784838d614c59e5d7fc\n> prerequisite-patch-id: 50f1d9ef74d51440b0f79116eb82580ad1fa04a2\n> prerequisite-patch-id: 6ad689b8c9be17165b330a16c7cef62dbdfb5d8f","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id CB3BEC323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 18 Oct 2021 05:17:04 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9CA9E68F55;\n\tMon, 18 Oct 2021 07:17:04 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0AF3760128\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 18 Oct 2021 07:17:03 +0200 (CEST)","from [192.168.1.106] (unknown [103.251.226.144])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 2A56012A;\n\tMon, 18 Oct 2021 07:17:01 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"prLwHFoP\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1634534222;\n\tbh=EC8A0u21hAQm3l9rIOSjdBgVh+YozvK2VL1Jy7YX3PY=;\n\th=Subject:To:References:From:Date:In-Reply-To:From;\n\tb=prLwHFoPIfNJw/hE0EGG/wACV+EYY7MscCbiqlM1POsE4+r1CqWEOz+go0sFsUj4T\n\tIKWDtmFsvQ3zSp+7Jn8yrzCT+6aW51XHyV2FghaJ9CxGqn6DpsY4V+Y3zP5l6NMWbx\n\twZO9DviXNbau9vSZhbHRCiL7KXADfwsJ73PrE5IE=","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tlibcamera-devel@lists.libcamera.org","References":"<20211018045226.6759-1-laurent.pinchart@ideasonboard.com>","From":"Umang Jain <umang.jain@ideasonboard.com>","Message-ID":"<02d42900-f850-a501-4223-0090b7df4815@ideasonboard.com>","Date":"Mon, 18 Oct 2021 10:46:57 +0530","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101\n\tThunderbird/78.10.2","MIME-Version":"1.0","In-Reply-To":"<20211018045226.6759-1-laurent.pinchart@ideasonboard.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit","Content-Language":"en-US","Subject":"Re: [libcamera-devel] [PATCH] README: Document dependencies for\n\tbacktrace generation","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]