This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/22919] sparc32: backtrace yields infinite backtrace with makecontext


https://sourceware.org/bugzilla/show_bug.cgi?id=22919

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  9aa5c222b9e0409143410a02b6364a3b25dbf028 (commit)
      from  e921c89e01389161c036ec09112da6e18aeaa688 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9aa5c222b9e0409143410a02b6364a3b25dbf028

commit 9aa5c222b9e0409143410a02b6364a3b25dbf028
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Fri Mar 9 00:14:27 2018 +0100

    sparc32: Add nop before __startcontext to stop unwinding [BZ #22919]

    On sparc32 tst-makecontext fails, as backtrace called within a context
    created by makecontext to yield infinite backtrace.

    Fix that the same way than nios2 by adding a nop just before
    __startcontext. This is needed as otherwise FDE lookup just repeatedly
    finds __setcontext's FDE in an infinite loop, due to the convention of
    using 'address - 1' for FDE lookup.

    Changelog:
        [BZ #22919]
        * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
        Add nop before __startcontext, add explaining comments.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |    6 ++++++
 sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S |   13 +++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]