This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ports/14250] New: ia64 makecontext.c writes to stderr and it should not.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]