Details
-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
-
None
Description
and thus sometimes crashes. The valgrind report is:
-bash-4.2$ valgrind ./test/AssemblyTest
|
==20673== Memcheck, a memory error detector
|
==20673== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
|
==20673== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
|
==20673== Command: ./test/AssemblyTest
|
==20673==
|
0
|
1
|
==20673== Invalid read of size 4
|
==20673== at 0x40A070: vecgeom::cxx::NavStateIndex::NavInd(unsigned int) (NavStateIndex.h:156)
|
==20673== by 0x40A0C9: vecgeom::cxx::NavStateIndex::PushImpl(unsigned int, vecgeom::cxx::VPlacedVolume const*) (NavStateIndex.h:219)
|
==20673== by 0x40A0F7: vecgeom::cxx::NavStateIndex::Push(vecgeom::cxx::VPlacedVolume const*) (NavStateIndex.h:259)
|
==20673== by 0xC02917B: bool vecgeom::cxx::CheckCandidateVol<true, true>(vecgeom::cxx::VPlacedVolume const*, vecgeom::cxx::Vector3D<double> const&, vecgeom::cxx::NavStateIndex*, vecgeom::cxx::VPlacedVolume const*&, vecgeom::cxx::Vector3D<double>&) (SimpleLevelLocator.h:38)
|
==20673== by 0xC0273E7: bool vecgeom::cxx::TSimpleLevelLocator<true>::LevelLocateKernel<false, true>(vecgeom::cxx::LogicalVolume const*, vecgeom::cxx::VPlacedVolume const*, vecgeom::cxx::Vector3D<double> const&, vecgeom::cxx::NavStateIndex*, vecgeom::cxx::VPlacedVolume const*&, vecgeom::cxx::Vector3D<double>&) const (SimpleLevelLocator.h:136)
|
==20673== by 0xC024E00: vecgeom::cxx::TSimpleLevelLocator<true>::LevelLocate(vecgeom::cxx::LogicalVolume const*, vecgeom::cxx::Vector3D<double> const&, vecgeom::cxx::NavStateIndex&, vecgeom::cxx::Vector3D<double>&) const (SimpleLevelLocator.h:182)
|
==20673== by 0x40A29B: vecgeom::cxx::UnplacedAssembly::Contains(vecgeom::cxx::Vector3D<double> const&, vecgeom::cxx::Vector3D<double>&, vecgeom::cxx::NavStateIndex&) const (UnplacedAssembly.h:112)
|
==20673== by 0x40A313: vecgeom::cxx::PlacedAssembly::Contains(vecgeom::cxx::Vector3D<double> const&, vecgeom::cxx::Vector3D<double>&, vecgeom::cxx::NavStateIndex&) const (PlacedAssembly.h:276)
|
==20673== by 0x4083AA: main (AssemblyTest.cpp:59)
|
==20673== Address 0x138ef6d4 is 5,748 bytes inside an unallocated block of size 3,755,904 in arena "client"
|
==20673==
|
0
|
1
|
NavStateIndex: navInd=59, level=1/2, onBoundary=false, path=</assemblylv/boxlv>
|
dist -1.79769e+308
|
==20673==
|
==20673== HEAP SUMMARY:
|
==20673== in use at exit: 1,880 bytes in 25 blocks
|
==20673== total heap usage: 2,421 allocs, 2,396 frees, 264,569 bytes allocated
|
==20673==
|
==20673== LEAK SUMMARY:
|
==20673== definitely lost: 840 bytes in 11 blocks
|
==20673== indirectly lost: 0 bytes in 0 blocks
|
==20673== possibly lost: 0 bytes in 0 blocks
|
==20673== still reachable: 1,040 bytes in 14 blocks
|
==20673== suppressed: 0 bytes in 0 blocks
|
==20673== Rerun with --leak-check=full to see details of leaked memory
|
==20673==
|
==20673== For lists of detected and suppressed errors, rerun with: -s
|
==20673== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
|