SMP Configuration Segfaults
If VTK_SMP_ENABLE_SEQUENTIAL
and VTK_SMP_ENABLE_STDTHREAD
are selected (which cmake can do by default) and the VTK_SMP_IMPLEMENTATION_TYPE
is set to Sequential
, a large number of tests will segfault. It appears to be a buffer overflow when calling vtkSMPTools::For
, and is detected as a stack corruption by VS2019 in Debug, or segfault in Release.
Disabling VTK_SMP_ENABLE_STDTHREAD
so the config is consistent with VTK_SMP_ENABLE_SEQUENTIAL
& VTK_SMP_IMPLEMENTATION_TYPE = Sequential
appears to reduce, but not solve the issue. Perhaps vtkSMPTools should handle this, or cmake could give a warning/error about this configuration issue?