undefined behavior sanitizer complains
GCC 6's undefined behavior sanitizer complains about dune/alugrid/3d/grid_imp.cc
:
./test-hierarchic
WARNING (ignored): Could not open file 'alugrid.cfg', using default values 0 < [balance] < 1.2, partitioning method 'ALUGRID_SpaceFillingCurve(9)'.
You are using DUNE-ALUGrid, please don't forget to cite the paper:
Alkaemper, Dedner, Kloefkorn, Nolte. The DUNE-ALUGrid Module, 2016.
Created parallel ALUGrid<2,2,simplex,nonconforming> from input stream.
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/grid_imp.cc:518:16: runtime error: downcast of address 0x0000041235d0 which does not point to an object of type 'TetraTop'
0x0000041235d0: note: object is of type 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
00 00 00 00 a0 db e9 00 00 00 00 00 00 00 00 00 00 01 12 01 a0 31 12 04 00 00 00 00 70 33 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/grid_imp.cc:529:9: runtime error: member call on address 0x0000041235d0 which does not point to an object of type 'TetraTop'
0x0000041235d0: note: object is of type 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
00 00 00 00 a0 db e9 00 00 00 00 00 00 00 00 00 00 01 12 00 a0 31 12 04 00 00 00 00 70 33 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/entityseed.hh:178:72: runtime error: downcast of address 0x0000041235d0 which does not point to an object of type 'TetraTop'
0x0000041235d0: note: object is of type 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
00 00 00 00 a0 db e9 00 00 00 00 00 00 00 00 00 00 01 12 00 a0 31 12 04 00 00 00 00 70 33 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/entity_inline.hh:64:13: runtime error: downcast of address 0x0000041235d0 which does not point to an object of type 'TetraTop'
0x0000041235d0: note: object is of type 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
00 00 00 00 a0 db e9 00 00 00 00 00 00 00 00 00 00 01 12 00 a0 31 12 04 00 00 00 00 70 33 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/entityseed.hh:72:49: runtime error: downcast of address 0x0000041235d0 which does not point to an object of type 'TetraTop'
0x0000041235d0: note: object is of type 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
00 00 00 00 a0 db e9 00 00 00 00 00 00 00 00 00 00 01 12 00 a0 31 12 04 00 00 00 00 70 33 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/entity_inline.hh:165:14: runtime error: member call on address 0x0000041235d0 which does not point to an object of type 'TetraTop'
0x0000041235d0: note: object is of type 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
00 00 00 00 a0 db e9 00 00 00 00 00 00 00 00 00 00 01 12 00 a0 31 12 04 00 00 00 00 70 33 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/entity_imp.cc:540:9: runtime error: member call on address 0x0000041235d0 which does not point to an object of type 'TetraTop'
0x0000041235d0: note: object is of type 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
00 00 00 00 a0 db e9 00 00 00 00 00 00 00 00 00 00 01 12 00 a0 31 12 04 00 00 00 00 70 33 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPllMacro'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/grid_imp.cc:344:16: runtime error: downcast of address 0x000004124a90 which does not point to an object of type 'TetraTop'
0x000004124a90: note: object is of type 'ALUGrid::TetraTop<ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPll>'
00 00 00 00 d0 af ec 00 00 00 00 00 02 00 00 00 00 01 10 01 d0 43 12 04 00 00 00 00 70 49 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::TetraTop<ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPll>'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/grid_imp.cc:351:46: runtime error: member call on address 0x000004124a90 which does not point to an object of type 'TetraTop'
0x000004124a90: note: object is of type 'ALUGrid::TetraTop<ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPll>'
00 00 00 00 d0 af ec 00 00 00 00 00 02 00 00 00 00 01 10 01 d0 43 12 04 00 00 00 00 70 49 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::TetraTop<ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPll>'
/temp/gruenich/dune/complete/dune-alugrid/dune/alugrid/3d/grid_imp.cc:531:18: runtime error: member call on address 0x000004124a90 which does not point to an object of type 'TetraTop'
0x000004124a90: note: object is of type 'ALUGrid::TetraTop<ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPll>'
00 00 00 00 d0 af ec 00 00 00 00 00 02 00 00 00 00 01 10 00 d0 43 12 04 00 00 00 00 70 49 12 04
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'ALUGrid::TetraTop<ALUGrid::GitterBasisPll::ObjectsPll::TetraEmptyPll>'