[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


but this should actually not matter.


Read this topic online here:

More information about the osg-users mailing list