Opened 5 years ago

Closed 5 years ago

#9148 closed bug (fixed)

tryReadMVar locks up the process with +RTS -N2 or greater

Reported by: simonmar Owned by: simonmar
Priority: highest Milestone: 7.8.3
Component: Runtime System Version: 7.8.2
Keywords: Cc: ezyang, simonmar
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Runtime crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


The new tryReadMVar is missing an unlockClosure call, which causes the whole process to hang when used with +RTS -N2 or greater. I'll push the fix shortly. We should treat this as a blocker for 7.8.3.

Change History (4)

comment:1 Changed 5 years ago by ezyang

Eep, sorry about that! That's what I get for cargo-culting the test-case definitions and forgetting to have them run multithreaded as well. Are you going to push updates to the test suite as well?

comment:2 Changed 5 years ago by Simon Marlow <marlowsd@…>

In 96a95f0513de785a185fd8a46c7ed2643f698295/ghc:

Fix missing unlockClosure() call in tryReadMVar (#9148)

comment:3 Changed 5 years ago by simonmar

Status: newmerge

comment:4 Changed 5 years ago by thoughtpolice

Resolution: fixed
Status: mergeclosed

Merged, thanks!

Note: See TracTickets for help on using tickets.