==2179742== Memcheck, a memory error detector ==2179742== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2179742== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2179742== Command: /home/github/actions-runner/_work/Chaste/Chaste/Chaste/chaste-build-dir/cell_based/test/TestCellPopulationWriters -malloc_debug -malloc_dump -memory_info ==2179742== Parent PID: 2178034 ==2179742== ==2179742== Invalid free() / delete / delete[] / realloc() ==2179742== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2179742== by 0xE6DE103: ImmersedBoundaryMesh<2u, 2u>::Clear() (ImmersedBoundaryMesh.cpp:604) ==2179742== by 0xE6DC979: ImmersedBoundaryMesh<2u, 2u>::~ImmersedBoundaryMesh() (ImmersedBoundaryMesh.cpp:524) ==2179742== by 0xE6DCA59: ImmersedBoundaryMesh<2u, 2u>::~ImmersedBoundaryMesh() (ImmersedBoundaryMesh.cpp:525) ==2179742== by 0xE7701F3: ImmersedBoundaryPalisadeMeshGenerator::~ImmersedBoundaryPalisadeMeshGenerator() (ImmersedBoundaryPalisadeMeshGenerator.cpp:356) ==2179742== by 0x148EF0: TestCellPopulationWriters::TestCellPopulationAdjacencyMatrixWriter() (TestCellPopulationWriters.hpp:283) ==2179742== by 0x1631D8: TestDescription_TestCellPopulationWriters_TestCellPopulationAdjacencyMatrixWriter::runTest() (TestCellPopulationWriters.cpp:43) ==2179742== by 0x13ECE1: CxxTest::RealTestDescription::run() (RealDescriptions.cpp:96) ==2179742== by 0x1427DC: CxxTest::TestRunner::runTest(CxxTest::TestDescription&) (TestRunner.h:74) ==2179742== by 0x1426C1: CxxTest::TestRunner::runSuite(CxxTest::SuiteDescription&) (TestRunner.h:61) ==2179742== by 0x142567: CxxTest::TestRunner::runWorld() (TestRunner.h:46) ==2179742== by 0x1423CE: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23) ==2179742== by 0x142A65: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47) ==2179742== by 0x13DA25: main (TestCellPopulationWriters.cpp:19) ==2179742== Address 0x1c2ca580 is 0 bytes inside a block of size 48 free'd ==2179742== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2179742== by 0xE664789: ImmersedBoundaryElement<2u, 2u>::~ImmersedBoundaryElement() (ImmersedBoundaryElement.cpp:63) ==2179742== by 0xE6647C9: ImmersedBoundaryElement<2u, 2u>::~ImmersedBoundaryElement() (ImmersedBoundaryElement.cpp:65) ==2179742== by 0xE6DDF92: ImmersedBoundaryMesh<2u, 2u>::Clear() (ImmersedBoundaryMesh.cpp:583) ==2179742== by 0xE6DC979: ImmersedBoundaryMesh<2u, 2u>::~ImmersedBoundaryMesh() (ImmersedBoundaryMesh.cpp:524) ==2179742== by 0xE6DCA59: ImmersedBoundaryMesh<2u, 2u>::~ImmersedBoundaryMesh() (ImmersedBoundaryMesh.cpp:525) ==2179742== by 0xE7701F3: ImmersedBoundaryPalisadeMeshGenerator::~ImmersedBoundaryPalisadeMeshGenerator() (ImmersedBoundaryPalisadeMeshGenerator.cpp:356) ==2179742== by 0x148EF0: TestCellPopulationWriters::TestCellPopulationAdjacencyMatrixWriter() (TestCellPopulationWriters.hpp:283) ==2179742== by 0x1631D8: TestDescription_TestCellPopulationWriters_TestCellPopulationAdjacencyMatrixWriter::runTest() (TestCellPopulationWriters.cpp:43) ==2179742== by 0x13ECE1: CxxTest::RealTestDescription::run() (RealDescriptions.cpp:96) ==2179742== by 0x1427DC: CxxTest::TestRunner::runTest(CxxTest::TestDescription&) (TestRunner.h:74) ==2179742== by 0x1426C1: CxxTest::TestRunner::runSuite(CxxTest::SuiteDescription&) (TestRunner.h:61) ==2179742== by 0x142567: CxxTest::TestRunner::runWorld() (TestRunner.h:46) ==2179742== by 0x1423CE: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23) ==2179742== by 0x142A65: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47) ==2179742== by 0x13DA25: main (TestCellPopulationWriters.cpp:19) ==2179742== Block was alloc'd at ==2179742== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2179742== by 0xE6DC21F: ImmersedBoundaryMesh<2u, 2u>::ImmersedBoundaryMesh(std::vector*, std::allocator*> >, std::vector*, std::allocator*> >, std::vector*, std::allocator*> >, unsigned int, unsigned int) (ImmersedBoundaryMesh.cpp:134) ==2179742== by 0xE76FA15: ImmersedBoundaryPalisadeMeshGenerator::ImmersedBoundaryPalisadeMeshGenerator(unsigned int, unsigned int, double, double, double, bool, bool, bool, unsigned int, double) (ImmersedBoundaryPalisadeMeshGenerator.cpp:350) ==2179742== by 0x148D10: TestCellPopulationWriters::TestCellPopulationAdjacencyMatrixWriter() (TestCellPopulationWriters.hpp:272) ==2179742== by 0x1631D8: TestDescription_TestCellPopulationWriters_TestCellPopulationAdjacencyMatrixWriter::runTest() (TestCellPopulationWriters.cpp:43) ==2179742== by 0x13ECE1: CxxTest::RealTestDescription::run() (RealDescriptions.cpp:96) ==2179742== by 0x1427DC: CxxTest::TestRunner::runTest(CxxTest::TestDescription&) (TestRunner.h:74) ==2179742== by 0x1426C1: CxxTest::TestRunner::runSuite(CxxTest::SuiteDescription&) (TestRunner.h:61) ==2179742== by 0x142567: CxxTest::TestRunner::runWorld() (TestRunner.h:46) ==2179742== by 0x1423CE: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23) ==2179742== by 0x142A65: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47) ==2179742== by 0x13DA25: main (TestCellPopulationWriters.cpp:19) ==2179742== { Memcheck:Free fun:_ZdlPvm fun:_ZN20ImmersedBoundaryMeshILj2ELj2EE5ClearEv fun:_ZN20ImmersedBoundaryMeshILj2ELj2EED1Ev fun:_ZN20ImmersedBoundaryMeshILj2ELj2EED0Ev fun:_ZN37ImmersedBoundaryPalisadeMeshGeneratorD1Ev fun:_ZN25TestCellPopulationWriters39TestCellPopulationAdjacencyMatrixWriterEv fun:_ZN81TestDescription_TestCellPopulationWriters_TestCellPopulationAdjacencyMatrixWriter7runTestEv fun:_ZN7CxxTest19RealTestDescription3runEv fun:_ZN7CxxTest10TestRunner7runTestERNS_15TestDescriptionE fun:_ZN7CxxTest10TestRunner8runSuiteERNS_16SuiteDescriptionE fun:_ZN7CxxTest10TestRunner8runWorldEv fun:_ZN7CxxTest10TestRunner11runAllTestsERNS_12TestListenerE fun:_ZN7CxxTest14ErrorFormatter3runEv fun:main } ==2179742== ==2179742== FILE DESCRIPTORS: 9 open (3 std) at exit. ==2179742== Open file descriptor 12: ==2179742== at 0xF83022D: pipe (pipe.c:29) ==2179742== by 0x196A507D: ??? ==2179742== by 0x14CB14CB: orte_init (in /usr/lib/x86_64-linux-gnu/libopen-rte.so.40.30.2) ==2179742== by 0x1148E418: ompi_mpi_init (in /usr/lib/x86_64-linux-gnu/libmpi.so.40.30.2) ==2179742== by 0x11427D7A: PMPI_Init_thread (in /usr/lib/x86_64-linux-gnu/libmpi.so.40.30.2) ==2179742== by 0x1011CD38: PetscInitialize (pinit.c:924) ==2179742== by 0xF0F42DF: PetscSetupUtils::InitialisePetsc() (PetscSetupUtils.cpp:80) ==2179742== by 0xF0F432D: PetscSetupUtils::CommonSetup() (PetscSetupUtils.cpp:88) ==2179742== by 0x146C30: PetscSetup::setUpWorld() (PetscSetupAndFinalize.hpp:61) ==2179742== by 0x13F5FD: CxxTest::RealWorldDescription::setUp() (RealDescriptions.cpp:266) ==2179742== by 0x14252E: CxxTest::TestRunner::runWorld() (TestRunner.h:43) ==2179742== by 0x1423CE: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23) ==2179742== by 0x142A65: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47) ==2179742== by 0x13DA25: main (TestCellPopulationWriters.cpp:19) ==2179742== ==2179742== Open file descriptor 8: /dev/shm/open_mpi.0000 ==2179742== at 0xF834BCC: __open_nocancel (open64_nocancel.c:39) ==2179742== by 0xF7B8C4F: shm_open@@GLIBC_2.34 (shm_open.c:40) ==2179742== by 0xF129822: ??? ==2179742== by 0xF12996F: ??? ==2179742== by 0x14D566DC: ??? (in /usr/lib/x86_64-linux-gnu/libopen-pal.so.40.30.2) ==2179742== by 0x14D56938: opal_shmem_base_select (in /usr/lib/x86_64-linux-gnu/libopen-pal.so.40.30.2) ==2179742== by 0x14D0C922: opal_init (in /usr/lib/x86_64-linux-gnu/libopen-pal.so.40.30.2) ==2179742== by 0x14CB12DB: orte_init (in /usr/lib/x86_64-linux-gnu/libopen-rte.so.40.30.2) ==2179742== by 0x1148E418: ompi_mpi_init (in /usr/lib/x86_64-linux-gnu/libmpi.so.40.30.2) ==2179742== by 0x11427D7A: PMPI_Init_thread (in /usr/lib/x86_64-linux-gnu/libmpi.so.40.30.2) ==2179742== by 0x1011CD38: PetscInitialize (pinit.c:924) ==2179742== by 0xF0F42DF: PetscSetupUtils::InitialisePetsc() (PetscSetupUtils.cpp:80) ==2179742== by 0xF0F432D: PetscSetupUtils::CommonSetup() (PetscSetupUtils.cpp:88) ==2179742== by 0x146C30: PetscSetup::setUpWorld() (PetscSetupAndFinalize.hpp:61) ==2179742== by 0x13F5FD: CxxTest::RealWorldDescription::setUp() (RealDescriptions.cpp:266) ==2179742== by 0x14252E: CxxTest::TestRunner::runWorld() (TestRunner.h:43) ==2179742== by 0x1423CE: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23) ==2179742== by 0x142A65: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47) ==2179742== by 0x13DA25: main (TestCellPopulationWriters.cpp:19) ==2179742== ==2179742== Open file descriptor 116: ==2179742== ==2179742== ==2179742== Open file descriptor 112: ==2179742== ==2179742== ==2179742== Open file descriptor 4: /home/github/actions-runner/_work/Chaste/Chaste/Chaste/chaste-build-dir/memtest/TestCellPopulationWriters_valgrind.txt ==2179742== ==2179742== ==2179742== Open file descriptor 3: /home/github/actions-runner/_work/Chaste/Chaste/Chaste/chaste-build-dir/Testing/Temporary/LastTest.log.tmp ==2179742== ==2179742== ==2179742== ==2179742== HEAP SUMMARY: ==2179742== in use at exit: 700,759 bytes in 9,378 blocks ==2179742== total heap usage: 159,888 allocs, 150,580 frees, 1,414,146,364 bytes allocated ==2179742== ==2179742== LEAK SUMMARY: ==2179742== definitely lost: 0 bytes in 0 blocks ==2179742== indirectly lost: 0 bytes in 0 blocks ==2179742== possibly lost: 0 bytes in 0 blocks ==2179742== still reachable: 56 bytes in 3 blocks ==2179742== suppressed: 700,703 bytes in 9,375 blocks ==2179742== Reachable blocks (those to which a pointer was found) are not shown. ==2179742== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==2179742== ==2179742== For lists of detected and suppressed errors, rerun with: -s ==2179742== ERROR SUMMARY: 70 errors from 1 contexts (suppressed: 37 from 37)