Skip to content

Tests fail due to OOB vector access #1702

Open

Description

@yurivict
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/ports/science/smith/work/.build/tests/element_restriction_tests
[New LWP 398736 of process 22243]
[New LWP 398737 of process 22243]
Logger activated: 'smith_serial_logger'
********************************************************************************
Smith Version: v0.2.0
Build Type: Debug
User Name: yuri
Host Name: yv.noip.me
MPI Rank Count: 1
********************************************************************************

[==========] Running 5 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 5 tests from patch_test_meshes
[ RUN      ] patch_test_meshes.triangle_domains

Thread 1 received signal SIGILL, Illegal instruction.
Privileged opcode.
std::__1::vector<int, std::__1::allocator<int> >::operator[][abi:se210108](unsigned long) (this=0x7fffffffba80, __n=6) at /usr/include/c++/v1/__vector/vector.h:406
406         _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__n < size(), "vector[] index out of bounds");
(gdb) bt
#0  std::__1::vector<int, std::__1::allocator<int> >::operator[][abi:se210108](unsigned long) (this=0x7fffffffba80, __n=6) at /usr/include/c++/v1/__vector/vector.h:406
#1  0x000000080049a4a3 in Array2D<int>::operator() (this=0x7fffffffba80, i=1) at /usr/ports/science/smith/work/smith-0.2.0/src/smith/infrastructure/../../smith/numerics/functional/element_restriction.hpp:136
#2  0x0000000800491ff0 in GetFaceDofs (fes=0x80847a600, face_geom=mfem::Geometry::SEGMENT, mfem_face_ids=std::vector of length 4 = {...})
    at /usr/ports/science/smith/work/smith-0.2.0/src/smith/numerics/functional/element_restriction.cpp:540
#3  0x0000000800492c0b in smith::ElementRestriction::ElementRestriction (this=0x7fffffffbe98, fes=0x80847a600, elem_geom=mfem::Geometry::SEGMENT, elem_ids=std::vector of length 4 = {...})
    at /usr/ports/science/smith/work/smith-0.2.0/src/smith/numerics/functional/element_restriction.cpp:654
#4  0x00000008004932d4 in smith::BlockElementRestriction::BlockElementRestriction (this=0x7fffffffc160, fes=0x80847a600, domain=...)
    at /usr/ports/science/smith/work/smith-0.2.0/src/smith/numerics/functional/element_restriction.cpp:722
#5  0x0000000000244fa0 in patch_test_meshes_triangle_domains_Test::TestBody (this=0x808459dd0) at /usr/ports/science/smith/work/smith-0.2.0/src/smith/numerics/functional/tests/element_restriction_tests.cpp:99
#6  0x00000008003458de in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) () from /usr/local/lib/libgtest.so.1.16.0
#7  0x0000000800326608 in testing::Test::Run() () from /usr/local/lib/libgtest.so.1.16.0
#8  0x00000008003275b8 in testing::TestInfo::Run() () from /usr/local/lib/libgtest.so.1.16.0
#9  0x0000000800328583 in testing::TestSuite::Run() () from /usr/local/lib/libgtest.so.1.16.0
#10 0x000000080033b2f7 in testing::internal::UnitTestImpl::RunAllTests() () from /usr/local/lib/libgtest.so.1.16.0
#11 0x000000080034663e in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ()
   from /usr/local/lib/libgtest.so.1.16.0
#12 0x000000080033ade3 in testing::UnitTest::Run() () from /usr/local/lib/libgtest.so.1.16.0
#13 0x000000000027ed71 in RUN_ALL_TESTS () at /usr/ports/science/smith/work/smith-0.2.0/cmake/blt/thirdparty_builtin/googletest-1.16.0/googletest/include/gtest/gtest.h:2348
#14 0x00000000002502a4 in main (argc=1, argv=0x7fffffffe488) at /usr/ports/science/smith/work/smith-0.2.0/src/smith/numerics/functional/tests/element_restriction_tests.cpp:388

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions