From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31991 invoked by alias); 15 Jun 2012 14:49:52 -0000 Received: (qmail 31978 invoked by uid 22791); 15 Jun 2012 14:49:50 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Jun 2012 14:49:39 +0000 From: "carlos_odonell at mentor dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug ports/14250] New: ia64 makecontext.c writes to stderr and it should not. Date: Fri, 15 Jun 2012 14:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: ports X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlos_odonell at mentor dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00098.txt.bz2 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.