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 nptl/12403] New: futex issues with --enable-kernel=2.6.22 to 2.6.28


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

           Summary: futex issues with --enable-kernel=2.6.22 to 2.6.28
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: allan@archlinux.org
              Host: x86_64-unknown-linux-gnu


When building glibc on x86_64 linux with --enable-kernel set for 2.6.22 to
2.6.28 inclusive, the following tests fail:

make[2]: *** [/build/glibc-build/nptl/tst-rwlock6.out] Error 1
make[2]: *** [/build/glibc-build/nptl/tst-rwlock7.out] Error 1
make[2]: *** [/build/glibc-build/nptl/tst-rwlock9.out] Error 1
make[2]: *** [/build/glibc-build/nptl/tst-rwlock11.out] Error 1
make[2]: *** [/build/glibc-build/nptl/tst-rwlock12.out] Error 11
make[2]: *** [/build/glibc-build/nptl/tst-rwlock14.out] Error 1
make[2]: *** [/build/glibc-build/nptl/tst-abstime.out] Error 1

This issue also results in crashes in various real-world applications.

Looking at what is enabled at the failure boundaries indicates a futex issue:
Support for private futexes was added in 2.6.22
Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29

Confirming this is an issue with futex support, glibc built with one of the bad
values for --enable-kernel (2.6.27) and manually adjusting the following
defines:

1 - default - 2.6.22 - 2.6.28:
  # define __ASSUME_PRIVATE_FUTEX    1
  # undef __ASSUME_FUTEX_CLOCK_REALTIME
Glibc tests fail.

2 - default pre 2.6.22:
  # undef __ASSUME_PRIVATE_FUTEX
  # undef __ASSUME_FUTEX_CLOCK_REALTIME
Glibc tests pass.

3 - default 2.6.29 and later:
  # define __ASSUME_PRIVATE_FUTEX    1
  # define __ASSUME_FUTEX_CLOCK_REALTIME    1
Glibc tests pass.

This issues does not occur on i686-pc-linux-gnu.

-- 
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]