JDK-4599479 : Linux: intermittent hang due to mutex being granted to suspended thread (2)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2001-12-12
  • Updated: 2012-10-08
  • Resolved: 2002-02-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other
1.4.0_02 02Fixed 1.4.1Fixed
Related Reports
Relates :  
Description
Same problem as 4461173, but this time it happens on pthread_cond_wait()
and pthread_cond_timedwait(). pthread_cond_wait() and pthread_cond_timedwait()
need to reenter the mutex once the condition variable is signaled
(or timed out). If it's signal suspended when it's waiting for the mutex,
OS may still grant the mutex to the suspended thread and cause hangs.

This happens on SR_lock during PepTest stress tests.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.0_02 hopper FIXED IN: 1.4.0_02 hopper INTEGRATED IN: 1.4.0_02 hopper
14-06-2004

PUBLIC COMMENTS .
10-06-2004

SUGGESTED FIX ###@###.### 2002-04-04 See 4599479-webrev.tar.Z for the backport of this fix to Merlin-Update2.
04-04-2002

EVALUATION We can use the same technique from 4461173 to fix this hang. ###@###.### 2001-12-12 fixed in Hopper with the same technique from 4461173 ###@###.### 2001-12-20
12-12-2001