Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2022-01-27 05:22:37



Reply to topic  [ 2 posts ] 
Crash on exit in new view/llmutelist.cpp destructor 
Author Message

Joined: 2011-10-07 10:39:20
Posts: 143
Reply with quote
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
Profile

Joined: 2009-03-17 18:42:51
Posts: 4809
Reply with quote
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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.