'double free or corruption' error in OCL_ML/Kmeans test (Bug #3608)


Added by Tom Stellard almost 11 years ago. Updated over 9 years ago.


Status:Open Start date:2014-03-13
Priority:Normal Due date:
Assignee:Tom Stellard % Done:

0%

Category:ocl
Target version:2.4.10
Affected version:2.4.8 (latest release) Operating System:Linux
Difficulty: HW Platform:x64
Pull request:

Description

I occasionally get a 'double free or corruption' error with the OCL_ML/Kmeans test. To reproduce, run:

./opencv_test_ocl --gtest_filter='*Kmeans*'

This error doesn't happen every time, but you can see the memory errors in valgrind.

It seems like the root of the problem is the destructor for the static object:

static __Module __module; from cl_context.cpp

tries to destroy ContextImpl* ContextImpl::currentContext which is also static and may have been deleted already by a static destructor.


Associated revisions

Revision 49f2bd6f
Added by Vadim Pisarevsky about 10 years ago

Merge pull request #3608 from jet47:cmake-CMP0054-fix

History

Updated by Ilya Lavrenov almost 11 years ago

Hi Tom,
All test images are located in additional repo https://github.com/Itseez/opencv_extra
You should clone it and set env variable OPENCV_TEST_DATA_PATH=<path to repo>/testdata

Updated by Tom Stellard almost 11 years ago

Hi Ilya,

Thanks for the reply, but did you mean to post this to bug 3609 instead?

Updated by Ivan Korolev almost 11 years ago

  • Assignee set to Tom Stellard
  • Category set to ocl
  • Status changed from New to Open

Updated by Alexander Smorkalov almost 11 years ago

  • Target version changed from 2.4.9 to 2.4.10

Updated by Maksim Shabunin over 9 years ago

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

Also available in: Atom PDF