FREEBSD 8.2-RELEASE
--------
Is IM really thread safe? On one thread that read and process picture is all going ok! but when its two or more threads, program crashed with SEGFAULT. Every thread read from disk NOT the same image as other thread, but (i think) at the same time
Code that I using now in every thread for testing(now only make "img" object from disk image, and its still crashed:
Code: Select all
try
{
{
std::cout << "read:" << picturepath << std::endl;
Magick::Image::Image img( picturepath );
std::cout << "readed:" << picturepath << std::endl;
}
return 1;
}
catch( Magick::Exception &error )
{
std::cout << "Caught exception: " << error.what() << std::endl;
return 0;
}
and time to time its not crashed but eat 100% of cpu and IM threads hangs....skipped...
readed:./content/s2/p1/6/o/4.jpg
read:./content/s2/p1/4/o/9.jpg
read:./content/s2/p1/6/o/5.jpg
readed:./content/s2/p1/4/o/9.jpg
readed:./content/s2/p1/6/o/5.jpg
read:./content/s2/p1/5/o/11.jpg
read:./content/s2/p1/6/o/6.jpg
Segmentation fault (core dumped)
what its can be?
ps. Happy New Year, Magick!