On Sun, Dec 9, 2012 at 11:08 AM, John David Anglin
<d...@hiauly1.hia.nrc.ca> wrote:
> On hppa*-*-hpux*, we don't have sync functions.  However,
> __sync_lock_test_and_set is called in backtrace_alloc and
> backtrace_free.  This causes an abort before ICE proccessing
> is fully complete.
>
> hppa64 is an ELF target and backtraces are nominally supported.
>
> The attached change avoids calling __sync_lock_test_and_set
> if we don't have sync functions.  As a result, the memory is
> leaked.

Sorry for the delay.  I think it's better to fix this the same way we
handle the other sync functions, as in this patch.  Bootstrapped and
ran libbacktrace and go testsuites on x86_64-unknown-linux-gnu.
Committed to mainline.

Ian


2013-01-01  Ian Lance Taylor  <i...@google.com>

        PR other/55536
        * mmap.c (backtrace_alloc): Don't call sync functions if not
        threaded.
        (backtrace_free): Likewise.

Attachment: foo.patch
Description: Binary data

Reply via email to