public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity()
@ 2015-06-02 23:43 danglin at gcc dot gnu.org
  2015-06-02 23:44 ` [Bug libc/18480] " danglin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2015-06-02 23:43 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

            Bug ID: 18480
           Summary: hppa glibc miscompilation in sched_setaffinity()
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: danglin at gcc dot gnu.org
                CC: codonell at redhat dot com, drepper.fsp at gmail dot com
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

Created attachment 8338
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8338&action=edit
Test program.

Helge Deller reported the misbehavior of sched_setaffinity() on hppa.  Attached
is a test program.

The problem turned out to be an old one:
https://sourceware.org/ml/libc-hacker/2004-04/msg00016.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/18480] hppa glibc miscompilation in sched_setaffinity()
  2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
@ 2015-06-02 23:44 ` danglin at gcc dot gnu.org
  2015-06-03 19:07 ` deller at gmx dot de
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2015-06-02 23:44 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
Created attachment 8339
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8339&action=edit
Patch

The attached change implements Andreas' change for hppa on 2.19.  Tested
on Debian unstable.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/18480] hppa glibc miscompilation in sched_setaffinity()
  2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
  2015-06-02 23:44 ` [Bug libc/18480] " danglin at gcc dot gnu.org
@ 2015-06-03 19:07 ` deller at gmx dot de
  2015-06-05  9:23 ` fweimer at redhat dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: deller at gmx dot de @ 2015-06-03 19:07 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

Helge Deller <deller at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deller at gmx dot de

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/18480] hppa glibc miscompilation in sched_setaffinity()
  2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
  2015-06-02 23:44 ` [Bug libc/18480] " danglin at gcc dot gnu.org
  2015-06-03 19:07 ` deller at gmx dot de
@ 2015-06-05  9:23 ` fweimer at redhat dot com
  2015-06-05  9:25 ` fweimer at redhat dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2015-06-05  9:23 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/18480] hppa glibc miscompilation in sched_setaffinity()
  2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-06-05  9:23 ` fweimer at redhat dot com
@ 2015-06-05  9:25 ` fweimer at redhat dot com
  2015-08-09  2:58 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2015-06-05  9:25 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Does the test case included here:

  <https://sourceware.org/ml/libc-alpha/2015-05/msg00449.html>

detect this problem?  (You may have to add “#define TIMEOUT 10” to it.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-28430-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri Jun 05 09:35:41 2015
Return-Path: <glibc-bugs-return-28430-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 109307 invoked by alias); 5 Jun 2015 09:35:40 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 108741 invoked by uid 48); 5 Jun 2015 09:35:35 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/18447] memstream.c:92 dereferencing type-punned pointer -Werror=strict-aliasing
Date: Fri, 05 Jun 2015 09:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.21
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.22
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc flagtypes.name
Message-ID: <bug-18447-131-F5iPtYrdsT@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18447-131@http.sourceware.org/bugzilla/>
References: <bug-18447-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00041.txt.bz2
Content-length: 453

https://sourceware.org/bugzilla/show_bug.cgi?id\x18447

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

--
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/18480] hppa glibc miscompilation in sched_setaffinity()
  2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-06-05  9:25 ` fweimer at redhat dot com
@ 2015-08-09  2:58 ` cvs-commit at gcc dot gnu.org
  2015-08-09  2:59 ` vapier at gentoo dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-08-09  2:58 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  04ece7d2dec91fe870c5f1a38032875915f44633 (commit)
      from  a601b74d31ca086de38441d316a3dee24c866305 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=04ece7d2dec91fe870c5f1a38032875915f44633

commit 04ece7d2dec91fe870c5f1a38032875915f44633
Author: John David Anglin <dave.anglin@bell.net>
Date:   Fri Aug 7 11:54:19 2015 -0400

    hppa: Fix miscompilation of sched_setaffinity() [BZ #18480]

    The attached change fixes the miscompilation of sched_setaffinity() on
    hppa.  This is an old problem that was fixed on other architectures using
    a similar approach to the attached change.  See:
    https://sourceware.org/ml/libc-hacker/2004-04/msg00016.html

    Build tested on trunk.  Patch has been applied to debian glibc for some
time.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                              |   12 ++++++
 NEWS                                   |    3 +-
 sysdeps/unix/sysv/linux/hppa/syscall.c |    3 +-
 sysdeps/unix/sysv/linux/hppa/sysdep.h  |   61 +++++++++++++++++++++-----------
 4 files changed, 56 insertions(+), 23 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/18480] hppa glibc miscompilation in sched_setaffinity()
  2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2015-08-09  2:58 ` cvs-commit at gcc dot gnu.org
@ 2015-08-09  2:59 ` vapier at gentoo dot org
  2015-08-09  3:36 ` cvs-commit at gcc dot gnu.org
  2015-10-29 16:35 ` jsm28 at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: vapier at gentoo dot org @ 2015-08-09  2:59 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |vapier at gentoo dot org
         Resolution|---                         |FIXED

--- Comment #4 from Mike Frysinger <vapier at gentoo dot org> ---
fixed by that push

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/18480] hppa glibc miscompilation in sched_setaffinity()
  2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2015-08-09  2:59 ` vapier at gentoo dot org
@ 2015-08-09  3:36 ` cvs-commit at gcc dot gnu.org
  2015-10-29 16:35 ` jsm28 at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-08-09  3:36 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, gentoo/2.22 has been updated
       via  078cee5a65f59943e2d72e36ba6635d059c38426 (commit)
      from  077b6d91d3c4dce29a9e84ddea3540b22ca53121 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=078cee5a65f59943e2d72e36ba6635d059c38426

commit 078cee5a65f59943e2d72e36ba6635d059c38426
Author: John David Anglin <dave.anglin@bell.net>
Date:   Fri Aug 7 11:54:19 2015 -0400

    hppa: Fix miscompilation of sched_setaffinity() [BZ #18480]

    The attached change fixes the miscompilation of sched_setaffinity() on
    hppa.  This is an old problem that was fixed on other architectures using
    a similar approach to the attached change.  See:
    https://sourceware.org/ml/libc-hacker/2004-04/msg00016.html

    Build tested on trunk.  Patch has been applied to debian glibc for some
time.

    (cherry picked from commit 04ece7d2dec91fe870c5f1a38032875915f44633)

-----------------------------------------------------------------------

Summary of changes:
 sysdeps/unix/sysv/linux/hppa/syscall.c |    3 +-
 sysdeps/unix/sysv/linux/hppa/sysdep.h  |   61 +++++++++++++++++++++-----------
 2 files changed, 42 insertions(+), 22 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/18480] hppa glibc miscompilation in sched_setaffinity()
  2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2015-08-09  3:36 ` cvs-commit at gcc dot gnu.org
@ 2015-10-29 16:35 ` jsm28 at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-10-29 16:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18480

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.23

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-29 16:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 23:43 [Bug libc/18480] New: hppa glibc miscompilation in sched_setaffinity() danglin at gcc dot gnu.org
2015-06-02 23:44 ` [Bug libc/18480] " danglin at gcc dot gnu.org
2015-06-03 19:07 ` deller at gmx dot de
2015-06-05  9:23 ` fweimer at redhat dot com
2015-06-05  9:25 ` fweimer at redhat dot com
2015-08-09  2:58 ` cvs-commit at gcc dot gnu.org
2015-08-09  2:59 ` vapier at gentoo dot org
2015-08-09  3:36 ` cvs-commit at gcc dot gnu.org
2015-10-29 16:35 ` jsm28 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).