This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18124] New: hppa: setcontext erroneously returns -1 as exit code for last constant.
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 13 Mar 2015 14:59:50 +0000
- Subject: [Bug libc/18124] New: hppa: setcontext erroneously returns -1 as exit code for last constant.
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18124
Bug ID: 18124
Summary: hppa: setcontext erroneously returns -1 as exit code
for last constant.
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: carlos at redhat dot com
CC: drepper.fsp at gmail dot com
The hppa implementation of setcontext had several flaws:
* It called _exit instead of exit, avoiding the registered exit handlers that
should be run. The standard says nothing about avoiding them.
* It should use HIDDEN_JUMPTARGET(exit) to avoid a PLT slot usage.
* It should call __sigprocmask to avoid another PLT slot usage.
* it should return 0 as the exit code when the last linked-to context
completes.
--
You are receiving this mail because:
You are on the CC list for the bug.