Using libexiv2.a/.lib in multhreaded app segfaults.
|Status:||Assigned||Start date:||13 Jan 2017|
|Assignee:||Robin Mills||% Done:|
I have a client that is using exiv2 as a library for their app and requires it to run multi-threaded. When launching several threads to access a tiff image the application will crash or segfault.
To reproduce run mt-test from the samples directory and have it access 10 or more tiff files. In my tests opening two to twenty images cause the issues, i used ReageanLargeTiff.tiff to test with in Linux and MacOS.
I am including a patch that resolves their issues and adds support for c++11 as well as switching between auto_ptr and unique_ptr depending if we are compiling with c++98 or c++11. This patch also adds a verbosity option when compiling to display more information. The patch sets the default to c++11 when compiling. This patch also adds a multi-thread test (mt-test.sh).
The current patch is only for CMake. Autoconf and the other build systems have yet to be modified to incorporate those changes.
#5 Updated by Robin Mills about 1 month ago
- Target version changed from 0.26 to 0.27
This is quite a large patch and SVN merge rejects part of the patch.
I'm pushing this to v0.27. I'm exhausted. I want to get the release/web-site published for Andreas to review. I'm willing to listen to any convincing reason to accept this for v0.26.