[Bug nptl/10904] New: endless loop in pthread_mutex_timedlock()

View: New views
2 Messages — Rating Filter:   Alert me  

[Bug nptl/10904] New: endless loop in pthread_mutex_timedlock()

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

[Bug nptl/10904] endless loop in pthread_mutex_timedlock()

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From redhat at linuxhowtos dot org  2009-11-04 17:51 -------
Created an attachment (id=4358)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4358&action=view)
short test program to trigger the problem


--


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.