This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug ports/14250] New: ia64 makecontext.c writes to stderr and it should not.
- From: "carlos_odonell at mentor dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 15 Jun 2012 14:49:26 +0000
- Subject: [Bug ports/14250] New: ia64 makecontext.c writes to stderr and it should not.
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14250
Bug #: 14250
Summary: ia64 makecontext.c writes to stderr and it should not.
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: ports
AssignedTo: unassigned@sourceware.org
ReportedBy: carlos_odonell@mentor.com
CC: carlos@systemhalted.org, roland@gnu.org,
vapier@gentoo.org
Classification: Unclassified
Host: ia64-linux-gnu
Target: ia64-linux-gnu
Build: ia64-linux-gnu
The implementation of makecontext() for ia64
(ports/sysdeps/unix/sysv/linux/ia64/makecontext.c) writes to stderr if there
are more than 8 arguments.
The function should not write to stderr, see bug #13983 for some background.
Instead the function should set errno and return.
Unfortunately POSIX doesn't seem to dictate any errno for makecontext(), almost
as if it should never fail. This is IMO an oversight, we should return EINVAL
when > 8 arguments. At least IBM's XL C runtime returns EINVAL with invalid
argc.
We must strive for a high QoI and avoid arbitrarily writing to stderr.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.