Hi Gabriel, On Tue, 2007-09-04 at 14:51 +0200, Gabriel Zachman wrote: > We've got a little unit test for our multi-threaded coll.det. library. > > The unit test itself seems to work fine, however, at exit it crashes. > > Here is a stack trace: > > #0 0x00000123 in ?? () > #1 0x21bbf6f6 in osg::MPFieldStore<osg::Lock>::clear > (this=0x23907c8c) at /Users/zach/Code/OpenSG-1.8/Source/Base/Base/ > OSGThreadManager.inl:147 > #2 0x21b8b0f7 in osg::ThreadManager::shutdown (this=0x23907c20) at / > Users/zach/Code/OpenSG-1.8/Source/Base/Base/OSGThreadManager.cpp:400 > #3 0x21b8b4fb in osg::ThreadManager::terminate () at /Users/zach/ > Code/OpenSG-1.8/Source/Base/Base/OSGThreadManager.cpp:247 > #4 0x21b70a3c in osg::osgExit () at /Users/zach/Code/OpenSG-1.8/ > Source/Base/Base/OSGBaseFunctions.cpp:505 > #5 0x0000586c in main (argc=1, argv=0xbffff170) at > multithreading.cpp:647
sorry, no immediate clue on what goes wrong. > (The source code is 1.8 stable) one more question though: on what OS and processor is this? > If you want, you can look at the source code at http://zach.in.tu- > clausthal.de/tmp/multithreading.cpp > > Does anyone have a hint / idea why it crashes at the end? Hm, I'm not quite sure I got all the threads involved right, but it seems that there is one that runs the collision pipeline and pulls changes to the scene via the CollisionSyncFun function object, right? Does this "pipeline thread" register itself with OpenSG using something like osg::ExternalThread::get(0)->initialize(0) ? Or is the "pipeline thread" an OpenSG thread, i.e. created with OSG::Thread::get() or OSG::Thread::create() ? Thanks, Carsten ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
