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: Florian Weimer <fweimer at redhat dot com>
- To: Chris Metcalf <cmetcalf at mellanox dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 25 Jan 2017 10:07:27 +0100
- 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>
On 01/25/2017 01:35 AM, Chris Metcalf wrote:
Ping! I will plan to commit this later this week if no one objects; it
seems like a straightforward bug avoidance.
It's very non-obvious why this should work.
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.
Thanks,
Florian