Stack Overflow in Constructor of MetaData
With the current version of Develop ( 70922529), running the Atmospheric Boundary Layer app with the regression test configuration fails and a stack smash is reported.
I have recompiled in debug with address sanitizer enabled (cmake .. -DVF_ENABLE_GPU=ON -DVF_ENABLE_SANITIZER_ADDRESS=ON -DVF_ENABLE_SANITIZER_MEMORY=ON -DVF_ENABLE_ALL_APPS=ON -DCMAKE_BUILD_TYPE=Debug) and it appears the stack overflow occurs in the constructor of Simulation and the construction of MetaData therein:
#0 0x557a43220325 in std::_Vector_base<vf::basics::MetaData::GPU, std::allocator<vf::basics::MetaData::GPU> >::_Vector_impl_data::_Vector_impl_data() /home/henry/miniconda3/envs/vf/x86_64-conda-linux-gnu/include/c++/11.3.0/bits/stl_vector.h:98
#1 0x557a4368a2e1 in std::_Vector_base<vf::basics::MetaData::GPU, std::allocator<vf::basics::MetaData::GPU> >::_Vector_impl::_Vector_impl() /home/henry/miniconda3/envs/vf/x86_64-conda-linux-gnu/include/c++/11.3.0/bits/stl_vector.h:133
#2 0x557a43687eed in std::_Vector_base<vf::basics::MetaData::GPU, std::allocator<vf::basics::MetaData::GPU> >::_Vector_base() /home/henry/miniconda3/envs/vf/x86_64-conda-linux-gnu/include/c++/11.3.0/bits/stl_vector.h:288
#3 0x557a43687f09 in std::vector<vf::basics::MetaData::GPU, std::allocator<vf::basics::MetaData::GPU> >::vector() /home/henry/miniconda3/envs/vf/x86_64-conda-linux-gnu/include/c++/11.3.0/bits/stl_vector.h:487
#4 0x557a436880ac in vf::basics::MetaData::MetaData() /home/henry/Software/VirtualFluids/upstream/VirtualFluids_dev/src/basics/MetaData/MetaData.cpp:49
#5 0x557a431faa7a in Simulation::Simulation(std::shared_ptr<Parameter>, std::shared_ptr<GridBuilder>, BoundaryConditionFactory const*, std::shared_ptr<TurbulenceModelFactory>, GridScalingFactory*) /home/henry/Software/VirtualFluids/upstream/VirtualFluids_dev/src/gpu/core/Calculation/Simulation.cpp:115
#6 0x557a43154e1e in run(vf::basics::ConfigurationFile const&) (/home/henry/Software/VirtualFluids/upstream/VirtualFluids_dev/build/bin/AtmosphericBoundaryLayer+0x438e1e)
#7 0x557a431563f9 in main (/home/henry/Software/VirtualFluids/upstream/VirtualFluids_dev/build/bin/AtmosphericBoundaryLayer+0x43a3f9)
#8 0x7f36c86ce082 in __libc_start_main ../csu/libc-start.c:308
#9 0x557a4314dab0 (/home/henry/Software/VirtualFluids/upstream/VirtualFluids_dev/build/bin/AtmosphericBoundaryLayer+0x431ab0)
However, I really have no idea why.
I am using nvcc 11.8 and gcc 11.3