From owner-freebsd-hackers@freebsd.org Thu Jul 6 23:52:46 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 06A0BD94E31 for ; Thu, 6 Jul 2017 23:52:46 +0000 (UTC) (envelope-from lidl@pix.net) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254::4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.pix.net", Issuer "Pix.Com Technologies LLC CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AD661842D3 for ; Thu, 6 Jul 2017 23:52:45 +0000 (UTC) (envelope-from lidl@pix.net) Received: from torb.pix.net (torb.pix.net [192.168.16.32]) (authenticated bits=0) by hydra.pix.net (8.16.0.19/8.15.2) with ESMTPA id v66Nqhtj098420; Thu, 6 Jul 2017 19:52:44 -0400 (EDT) (envelope-from lidl@pix.net) To: freebsd-hackers@freebsd.org References: <4d662753-98bc-1275-9394-0cda95eedc65@xiplink.com> Subject: Re: libexecinfo backtrace() in a signal handler From: Kurt Lidl Message-ID: Date: Thu, 6 Jul 2017 19:52:43 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <4d662753-98bc-1275-9394-0cda95eedc65@xiplink.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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:52:46 -0000 You might want to look at this code: https://github.com/stass/libsegfault Which uses this libunwind: (I think) http://www.nongnu.org/libunwind/man/libunwind(3).html Might be just want you wanted. -Kurt