|
Page 1 of 1
|
[ 2 posts ] |
|
Crash on exit in new view/llmutelist.cpp destructor
Author |
Message |
kathrine
Joined: 2011-10-07 10:39:20 Posts: 181
|
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
|
2013-05-20 21:10:09 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5546
|
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)...
|
2013-05-20 22:12:56 |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 87 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|