From owner-freebsd-hackers@freebsd.org Thu Jul 6 23:16:39 2017 Return-Path: Delivered-To: freebsd-hackers@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 C71E7D94564 for ; Thu, 6 Jul 2017 23:16:39 +0000 (UTC) (envelope-from joerg@bec.de) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 866CF83627; Thu, 6 Jul 2017 23:16:39 +0000 (UTC) (envelope-from joerg@bec.de) Received: from britannica.bec.de (p200300D2ABC87B104639C4FFFE599710.dip0.t-ipconnect.de [IPv6:2003:d2:abc8:7b10:4639:c4ff:fe59:9710]) (Authenticated sender: joerg@bec.de) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 8E244A80C7; Fri, 7 Jul 2017 01:16:30 +0200 (CEST) Date: Fri, 7 Jul 2017 01:16:22 +0200 From: Joerg Sonnenberger To: Conrad Meyer Cc: Marc Branchaud , "freebsd-hackers@freebsd.org" Subject: Re: libexecinfo backtrace() in a signal handler Message-ID: <20170706231622.GA26699@britannica.bec.de> Mail-Followup-To: Conrad Meyer , Marc Branchaud , "freebsd-hackers@freebsd.org" References: <4d662753-98bc-1275-9394-0cda95eedc65@xiplink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2017 23:16:39 -0000 On Thu, Jul 06, 2017 at 03:58:04PM -0700, Conrad Meyer wrote: > Signal handlers use a special stack frame that libexecinfo is too > simple to understand. To get a stack from a signal handler, you might > want to use libunwind instead. Actually, that's not the problem. The problem is that nothing registers the necessary unwind data. Joerg