Data race may happen between oclCleanupCallback and Mat::GetUMat() (Bug #4468)


Added by Pavel Vlasov over 9 years ago. Updated over 9 years ago.


Status:New Start date:2015-07-07
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty: HW Platform:Any
Pull request:

Description

Case 1: reuse of old src Mat in OCL pipe leads to data race with oclCleanupCallback and can result in asser fail or other undefined behavior.

Case 2: concurent deallocation of UMatData between UMat (oclCleanupCallback) and Mat (stack) deallocators.

See: https://github.com/Itseez/opencv/pull/3799 this pull-request contains tests for both cases.


Related issues

related to Bug #4380: Mat/UMat may be out of sync. New 2015-06-04

History

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5062

Also available in: Atom PDF