From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125308 invoked by alias); 21 Jul 2015 16:13:28 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 125240 invoked by uid 55); 21 Jul 2015 16:13:19 -0000 From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug libc/18508] S390: backtrace() returns infinitely deep stack frames with makecontext(). Date: Tue, 21 Jul 2015 16:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg00156.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18508 --- Comment #3 from 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 0ac4f1dab3e5778c79994a89111b4eb1d247ab12 (commit) from f30d94a74a30b832354d4b87c23a4909ed24b929 (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=0ac4f1dab3e5778c79994a89111b4eb1d247ab12 commit 0ac4f1dab3e5778c79994a89111b4eb1d247ab12 Author: Chris Metcalf Date: Tue Jul 21 12:04:52 2015 -0400 tile: Fix BZ #18508 (makecontext yield infinite backtrace) It turns out tile suffered from the same problem as S390. However, disabling CFI information for the __startcontext on tile was not sufficient to fix the problem; I think the backtracer will just blindly try to follow the link register (lr) in that case. Instead, the change adds a cfi_undefined directive for "lr" and then arranges to call __startcontext directly when the new context starts, rather than just synthesizing a return to it. In addition to being a bit easier now to understand the control flow, this also allows the cfi_undefined directive to be placed in a way that causes it to be in force at the address that the "lr" from the called function points to. ----------------------------------------------------------------------- Summary of changes: ChangeLog | 7 +++++++ sysdeps/unix/sysv/linux/tile/makecontext.c | 8 ++++---- sysdeps/unix/sysv/linux/tile/setcontext.S | 2 ++ 3 files changed, 13 insertions(+), 4 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug.