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/10904] New: endless loop in pthread_mutex_timedlock()


On my system (gentoo, Kernel 2.6.31.5, glibc 2.10, gcc 4.3.4, i686, 32 bit)
the attached test program creates an endless loop with 100% cpu usage.
the call to the pthread_mutex_timedlock blocks and strace shows
futex(0x8bd5028, 0x180 /* FUTEX_??? */, 2, {1257295709, 1}) = -1 ENOSYS
(Function not implemented)
repeated endlessly.

statically linked with the 2.9 glibc
the call is
futex(0x804a03c, FUTEX_WAIT_PRIVATE, 2, {0, 999946771}) = -1 ETIMEDOUT
(Connection timed out)
what is to be expected.

0x180 seems to be
FUTEX_TRYLOCK_PI|FUTEX_WAIT_BITSET which cannot be combined.

-- 
           Summary: endless loop in pthread_mutex_timedlock()
           Product: glibc
           Version: 2.10
            Status: NEW
          Severity: critical
          Priority: P2
         Component: nptl
        AssignedTo: drepper at redhat dot com
        ReportedBy: redhat at linuxhowtos dot org
                CC: glibc-bugs at sources dot redhat dot com


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

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


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