Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 461574

Summary: dev-libs/boost-1.52.0 thread_group::join_all() should catch resource_deadlock_would_occur
Product: Gentoo Linux Reporter: Chí-Thanh Christopher Nguyễn <chithanh>
Component: [OLD] LibraryAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED OBSOLETE    
Severity: normal Keywords: REGRESSION
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://svn.boost.org/trac/boost/ticket/7669
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 455464, 461578    

Description Chí-Thanh Christopher Nguyễn gentoo-dev 2013-03-12 19:30:45 UTC
From upstream bug report:

If a thread in thread_group is this_thread, join_all() throws resource_deadlock_would_occur. This violates the function post-condition: "Every thread in the group has terminated." Because of the above, and because it's impossible to enumerate the threads is a thread_group, it should catch resource_deadlock_would_occur and proceed with the joining loop. (The exception can be re-thrown when the loop ends.)

This is a regression from 1.51.0
Patch from upstream does not apply cleanly to 1.52.0.
Comment 1 Sergey Popov gentoo-dev 2016-01-20 06:46:23 UTC
Merged long time ago. Closing as OBSOLETE