Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Crash on exit in new view/llmutelist.cpp destructor http://sldev.free.fr/forum/viewtopic.php?f=4&t=1210 |
Page 1 of 1 |
Author: | kathrine [ 2013-05-20 21:10:09 ] |
Post subject: | Crash on exit in new view/llmutelist.cpp destructor |
Hi Henri, with the freshly compiled 1.26.4.70 on OS X i see reproducible crashes on exit inside the llmutelist destructor. Probably due to your move from singletons to global pointer variables, the static shutdown (e.g. order of destructors) is now not well defined anymore. So if gDirUtilp is already destroyed when the global mutelist gets destroyed, the behaviour is undefined and it crashes. The code in the destructor should probably be factored out and run as part of the regular shutdown sequence and not as a side effect of some global destructor. Kathrine |
Author: | Henri Beauchamp [ 2013-05-20 22:12:56 ] |
Post subject: | Re: Crash on exit in new view/llmutelist.cpp destructor |
Yes, it's easy enough to do. Strange, however, that gcc v4.3 (and 4.4) and VS2010 manage to sort out the destructors properly and not gcc 4.2... Note that in case of singletons, the same problem could happen (the mute list singleton could perfectly get destroyed after the global gDirUtilp global object, causing the former to call the latter after it is destroyed)... |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |