This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR other/55333: libsanitizer StackTrace::FastUnwindStack wrong x32
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, konstantin dot s dot serebryany at gmail dot com
- Date: Thu, 15 Nov 2012 10:26:39 +0100
- Subject: Re: PATCH: PR other/55333: libsanitizer StackTrace::FastUnwindStack wrong x32
- References: <20121115035105.GA17255@gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Nov 14, 2012 at 07:51:05PM -0800, H.J. Lu wrote:
> X32 uses 32-bit pointer in software. But its hardware pointer is
> 64-bit. We must use hardware pointer to unwind frames. This patch
> adds uhwptr for hardware pointer and uses it to unwind stack frames.
> Tested on Linux/x32, Linux/x86-64 and Linux/ia32. Please review it
> for upstream.
IMNSHO libasan should just use libbacktrace for building backtraces (if
available, or backtrace (3)), libbacktrace can be used even to symbolize
the backtrace on the fly, without the need for additional scripts.
Jakub