Data race may happen between oclCleanupCallback and Mat::GetUMat() (Bug #4468)
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 Alexander Alekhin over 9 years ago
Related issue: http://code.opencv.org/issues/4380
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5062