Test failure: gmshtest-uggrid
The test creates a segfault for me when it previously did not. Here's the output:
% ctest -R gmshtest-uggrid --output-on-failure
Test project ...
Start 13: gmshtest-uggrid
1/1 Test #13: gmshtest-uggrid ..................***Exception: SegFault 0.11 sec
reading and writing UGGrid<2>
Reading 2d Gmsh grid...
version 2 Gmsh file detected
file contains 248 nodes
file contains 498 elements
number of real vertices = 242
number of boundary elements = 97
number of elements = 389
WARNING: Entities for codim 1 are not being tested!
WARNING: Entities for codim 1 are not being tested!
Lifetime / consistency check for entities, codim 0
SKIPPING lifetime / consistency check for missing entities, codim 1
Lifetime / consistency check for entities, codim 2
Intersection Lifetime / consistency check
Lifetime / consistency check for entities, codim 0
SKIPPING lifetime / consistency check for missing entities, codim 1
Lifetime / consistency check for entities, codim 2
Intersection Lifetime / consistency check
reading and writing UGGrid<2> with second order boundary approximation
Reading 2d Gmsh grid...
version 2 Gmsh file detected
file contains 20 nodes
file contains 15 elements
number of real vertices = 7
number of boundary elements = 6
number of elements = 6
WARNING: Entities for codim 1 are not being tested!
WARNING: Entities for codim 1 are not being tested!
Lifetime / consistency check for entities, codim 0
WARNING! Requested check of first 32 entities, but grid view only contains 6 entities
SKIPPING lifetime / consistency check for missing entities, codim 1
Lifetime / consistency check for entities, codim 2
WARNING! Requested check of first 32 entities, but grid view only contains 7 entities
Intersection Lifetime / consistency check
WARNING! Requested check of intersections for first 32 elements, but grid view only contains 6 elements
Lifetime / consistency check for entities, codim 0
WARNING! Requested check of first 32 entities, but grid view only contains 6 entities
SKIPPING lifetime / consistency check for missing entities, codim 1
Lifetime / consistency check for entities, codim 2
WARNING! Requested check of first 32 entities, but grid view only contains 7 entities
Intersection Lifetime / consistency check
WARNING! Requested check of intersections for first 32 elements, but grid view only contains 6 elements
reading and writing UGGrid<2>
Reading 2d Gmsh grid...
version 2 Gmsh file detected
file contains 9 nodes
file contains 16 elements
number of real vertices = 9
number of boundary elements = 8
number of elements = 4
WARNING: Entities for codim 1 are not being tested!
WARNING: Entities for codim 1 are not being tested!
Lifetime / consistency check for entities, codim 0
WARNING! Requested check of first 32 entities, but grid view only contains 4 entities
SKIPPING lifetime / consistency check for missing entities, codim 1
Lifetime / consistency check for entities, codim 2
WARNING! Requested check of first 32 entities, but grid view only contains 9 entities
Intersection Lifetime / consistency check
WARNING! Requested check of intersections for first 32 elements, but grid view only contains 4 elements
Lifetime / consistency check for entities, codim 0
WARNING! Requested check of first 32 entities, but grid view only contains 4 entities
SKIPPING lifetime / consistency check for missing entities, codim 1
Lifetime / consistency check for entities, codim 2
WARNING! Requested check of first 32 entities, but grid view only contains 9 entities
Intersection Lifetime / consistency check
WARNING! Requested check of intersections for first 32 elements, but grid view only contains 4 elements
reading and writing hybrid UGGrid<2>
Reading 2d Gmsh grid...
version 2.1 Gmsh file detected
file contains 16 nodes
file contains 11 elements
number of real vertices = 16
number of boundary elements = 0
number of elements = 11
[...] *** Process received signal ***
[...] Signal: Segmentation fault (11)
[...] Signal code: Address not mapped (1)
[...] Failing at address: (nil)
[...] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0) [0x7f2769ad08d0]
[...] [ 1] .../dune/grid/io/file/test/gmshtest-uggrid(_Z25testReadingAndWritingGridIN4Dune6UGGridILi2EEEEvRKSsS4_S4_i+0x3a9) [0x48f9f9]
[...] [ 2] .../dune/grid/io/file/test/gmshtest-uggrid(main+0x492) [0x48e632]
[...] [ 3] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f2769739b45]
[...] [ 4] .../dune/grid/io/file/test/gmshtest-uggrid() [0x48e0c9]
[...] *** End of error message ***
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.14 sec
The following tests FAILED:
13 - gmshtest-uggrid (SEGFAULT)
Errors while running CTest
%
I've tried to track down the problem a bit through bisection but the feature branches unfortunately interact to some extent. If I check out the branch feature/FS1697-improve-gmsh-writer, I get the compile failure
.../dune/grid/io/file/test/gmshtest.cc:66:78: error:
no matching member function for call to 'insertionIndex'
...gridFactory.insertionIndex(intersection)];
~~~~~~~~~~~~^~~~~~~~~~~~~~
If I cherry-pick 30e8b7d5 from the Feature/issue2_missing_intersection_insertion_index_UG branch on top of that, I get a something that compiles and exhibits the above behaviour. If instead I go back to a point in time where feature/FS1697-improve-gmsh-writer had not yet been merged (e.g. 2e71688e), the test passes for me.
Probably related: The test gmshtest-onedgrid now fails with
NotImplemented [insertionIndex:.../dune/grid/common/gridfactory.hh:227]: insertion indices have not yet been implemented.
instead of passing as before.