[Bug ports/6037] New: Fix the atomic compare and swap function on hppa

aurelien at aurel32 dot net sourceware-bugzilla@sourceware.org
Fri Apr 4 19:56:00 GMT 2008


There is a bug in atomic.h, the errno number is compared with the
wrong value. The kernel returns -EAGAIN (ie -11), but the value in the
cmpib instruction is EAGAIN (11).

There is also a bug in kernels < 2.6.22, they can return -EDEADLOCK. It has 
been fixed in commit b5e8b733a18a1192666005f95f44e02440b057d4.

The patch that will follow fixes the first issue, and workarounds the kernel 
bug.

-- 
           Summary: Fix the atomic compare and swap function on hppa
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ports
        AssignedTo: carlos at systemhalted dot org
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: hppa1.1-unknown-linux-gnu
  GCC host triplet: hppa1.1-unknown-linux-gnu
GCC target triplet: hppa1.1-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=6037

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Glibc-bugs mailing list