#2117: CarpetIOHDF5 commit 69c73fb1 " CarpetIOHDF5: Add "active" attribute to grid function dataset describing which points are active" breaks 'IO::out_mode = "onefile"'
Reporter:Roland Haas
Status:open
Milestone:ET_2018_02
Version:development version
Type:bug
Priority:minor
Component:Carpet

Changes (by Roland Haas):

status:open (was new)

Setting

IO::out_mode            = "onefile"

in a parfile and running with more than 1 MPI ranks causes and out-of-range array access in Output.cc in line 913:

    ostringstream buf;
    buf << (vdd.at(Carpet::map)
                ->local_boxes.at(mglevel)
                .at(refinementlevel)
---->           .at(local_component)
                .active);

due to local_component being -1. This is the backtrace:

#6  0x00007ffff3a03355 in std::__throw_out_of_range_fmt(char const*, ...) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00005555578f17ee in std::vector<dh::local_dboxes, std::allocator<dh::local_dboxes> >::_M_range_check (__n=<optimized out>, this=<optimized out>) at /usr/include/c++/7/bits/stl_vector.h:825
#8  std::vector<dh::local_dboxes, std::allocator<dh::local_dboxes> >::at (__n=<optimized out>,
    this=<optimized out>) at /usr/include/c++/7/bits--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2117/carpetiohdf5-commit-69c73fb1-carpetiohdf5