This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] tst-setcontext2: avoid bug from compiler optimization
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Chris Metcalf <cmetcalf at mellanox dot com>, <libc-alpha at sourceware dot org>
- Date: Wed, 25 Jan 2017 12:50:35 +0000
- Subject: Re: [PATCH] tst-setcontext2: avoid bug from compiler optimization
- Authentication-results: sourceware.org; auth=none
- References: <1484330513-61379-1-git-send-email-cmetcalf@mellanox.com> <8d532404-c012-c999-c60e-8d33a2932afb@mellanox.com> <dda81b57-2ef4-2fcb-861c-557fb3677c57@redhat.com>
On Wed, 25 Jan 2017, Florian Weimer wrote:
> I suspect the real cause is the lack of the returns_twice attribute on the
> getcontext function. Does the problem go away if you add that?
>
> If yes, this needs a bug report in Bugzilla, referenced from the ChangeLog and
> commit message because it is a user-visible bug.
Missing returns_twice attributes (which should of course be
__returns_twice__) are bug 20382.
--
Joseph S. Myers
joseph@codesourcery.com