Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code hanging with some Petsc v3.22.1 #202

Closed
sblondel opened this issue Nov 4, 2024 · 0 comments
Closed

Code hanging with some Petsc v3.22.1 #202

sblondel opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sblondel
Copy link
Collaborator

sblondel commented Nov 4, 2024

With serial back-end and the develop branch, the code will hang forever at the end of a run:

futex_wait (private=0, expected=2, futex_word=0x555555574670) at ../sysdeps/nptl/futex-internal.h:146
146 ../sysdeps/nptl/futex-internal.h: No such file or directory.
(gdb) bt
#0  futex_wait (private=0, expected=2, futex_word=0x555555574670) at ../sysdeps/nptl/futex-internal.h:146
#1  __GI___lll_lock_wait (futex=futex@entry=0x555555574670, private=0) at ./nptl/lowlevellock.c:49
#2  0x00007ffff7bd6002 in lll_mutex_lock_optimized (mutex=0x555555574670) at ./nptl/pthread_mutex_lock.c:48
#3  ___pthread_mutex_lock (mutex=0x555555574670) at ./nptl/pthread_mutex_lock.c:93
#4  0x00007ffff55ee563 in void Kokkos::Tools::Experimental::Impl::profile_fence_event<Kokkos::Serial, Kokkos::Serial::impl_static_fence(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)::{lambda()#1}>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Kokkos::Tools::Experimental::SpecialSynchronizationCases, Kokkos::Serial::impl_static_fence(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)::{lambda()#1} const&) () from /home/sophie/Code/petsc-install/lib/libkokkoscore.so.4.4
#5  0x00007ffff55ee686 in Kokkos::Impl::ExecSpaceDerived<Kokkos::Serial>::static_fence(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /home/sophie/Code/petsc-install/lib/libkokkoscore.so.4.4
#6  0x00007ffff55de6c5 in Kokkos::Impl::ExecSpaceManager::static_fence(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
   from /home/sophie/Code/petsc-install/lib/libkokkoscore.so.4.4
#7  0x00007ffff55e53f3 in Kokkos::HostSpace::deallocate(char const*, void*, unsigned long, unsigned long) const ()
   from /home/sophie/Code/petsc-install/lib/libkokkoscore.so.4.4
#8  0x00007ffff55e5771 in Kokkos::Impl::SharedAllocationRecordCommon<Kokkos::HostSpace>::~SharedAllocationRecordCommon() ()
   from /home/sophie/Code/petsc-install/lib/libkokkoscore.so.4.4
#9  0x00007ffff50d309d in Kokkos::Impl::SharedAllocationRecord<Kokkos::HostSpace, void>::~SharedAllocationRecord (this=0x55555573d500, __in_chrg=<optimized out>)
    at /home/sophie/Code/petsc-install/include/Kokkos_HostSpace.hpp:178
#10 Kokkos::Impl::SharedAllocationRecord<Kokkos::HostSpace, Kokkos::Impl::ViewValueFunctor<Kokkos::Device<Kokkos::Serial, Kokkos::HostSpace>, unsigned long, true> >::~SharedAllocationRecord (this=<optimized out>, __in_chrg=<optimized out>) at /home/sophie/Code/petsc-install/include/impl/Kokkos_SharedAlloc.hpp:400
#11 Kokkos::Impl::SharedAllocationRecord<Kokkos::HostSpace, Kokkos::Impl::ViewValueFunctor<Kokkos::Device<Kokkos::Serial, Kokkos::HostSpace>, unsigned long, true> >::~SharedAllocationRecord (this=0x55555573d500, __in_chrg=<optimized out>) at /home/sophie/Code/petsc-install/include/impl/Kokkos_SharedAlloc.hpp:400
#12 0x00007ffff55ebf61 in Kokkos::Impl::SharedAllocationRecord<void, void>::decrement(Kokkos::Impl::SharedAllocationRecord<void, void>*) ()
   from /home/sophie/Code/petsc-install/lib/libkokkoscore.so.4.4
#13 0x00007ffff51ec7df in Kokkos::Impl::SharedAllocationTracker::~SharedAllocationTracker (this=0x555555746f10, __in_chrg=<optimized out>)
    at /home/sophie/Code/petsc-install/include/impl/Kokkos_SharedAlloc.hpp:544
#14 Kokkos::Impl::ViewTracker<Kokkos::View<unsigned long* [2], Kokkos::HostSpace> >::~ViewTracker (this=0x555555746f10, __in_chrg=<optimized out>)
    at /home/sophie/Code/petsc-install/include/impl/Kokkos_ViewTracker.hpp:39
#15 Kokkos::View<unsigned long* [2], Kokkos::HostSpace>::~View (this=0x555555746f10, __in_chrg=<optimized out>)
    at /home/sophie/Code/petsc-install/include/Kokkos_View.hpp:1281
#16 xolotl::core::network::detail::ClusterData<xolotl::core::network::FeReactionNetwork, Kokkos::HostSpace>::~ClusterData (this=0x555555746e00, __in_chrg=<optimized out>)
    at /home/sophie/Workspace/xolotl-stable-source/xolotl/core/include/xolotl/core/network/detail/ClusterData.h:416
@sblondel sblondel added the bug Something isn't working label Nov 4, 2024
@sblondel sblondel added this to the v3.1 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants