MantisBT - VTK
View Issue Details
0002950VTK(No Category)public2006-03-09 15:562016-08-12 09:54
Clinton Stimpson 
Will Schroeder 
lowminoralways
closedmoved 
 
 
0002950: vtk crash on shutdown with release build and debug leaks
In a release build with vtk debug leaks on in Windows.....

VTK has static objects instantiated in separate object files that depend on each other. So the order of cleanup is important.
However, the linker makes no guarentee of the order of static object cleanup if they are in separate object files.
So vtkDebugLeaks is being invoked from vtkCleanUpObjectFactory, but vtkDebugLeaks has already been destroyed. Which results in a crash when trying to lock the NULL critical section.

This problem is why there is a popup window that reports one leak, which is the vtkCleanUpObjectFactory that isn't cleaned up before vtkDebugLeaks.

It happens on Windows, but it might happen on other OS's.

One could replicate this by running a vtkMFC example in release mode with debug leaks on.
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036843
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0036843)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.