[osg-users] Crash in ReaderWriterCURL::readFile when used with DatabasePager
Hartwig Wiesmann
hartwig.wiesmann at skywind.eu
Mon Dec 18 10:01:18 PST 2017
Hi Robert,
I did some further investigations: I added in ReaderWriterCURL::readFile an atomic counter and stopped in the debugger whenever the atomic counter reaches 2 (means 2 threads are running at the same time an instance of ReaderWriterCURL::readFile).
The debugger showed clearly that there are two threads running but OpenThreads::Thread::CurrentThread() always returned the same pointer to Thread. Therefore, getEasyCurl() does not work correctly.
PS: I do not know if OpenThreads is broken on macOS?! I compiled OpenThreads with
Code:
#define _OPENTHREADS_ATOMIC_USE_MUTEX 1
but this should actually not matter.
Cheers,
Hartwig
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72602#72602
More information about the osg-users
mailing list