Am 18.02.2016 10:22 nachm. schrieb "Andreas Schäfer" <[email protected]>: > > Heya, > > I've just seen my tests locking up again with HPX commit
Guess it is bisect time! Could you tell me which test and how frequently it locks up? I'm also interested in boost and compiler version! > > 0c3174572ef5d2c01043d9dd070023983ecb888a > > Backtrace: P.S.: that backtrace is useless as it just shows the main (first thread) of your process which is waiting on a CV for the application to end. In general it is very difficult to "catch" the code that hangs when attaching gdb. > > (gdb) bt > #0 0x00007f1715d2e00f in pthread_cond_wait () from /lib64/libpthread.so.0 > #1 0x00007f1719afc416 in boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service_thread_info&, boost::system::error_code const&) () > from /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > #2 0x00007f1719afc120 in boost::asio::detail::task_io_service::run(boost::system::error_code&) () from /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > #3 0x00007f1719b355d4 in hpx::util::io_service_pool::thread_run(unsigned long) () from /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > #4 0x00007f1719576e4a in hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::wait() () from /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > #5 0x00007f1719577ac5 in hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::run(hpx::util::function<int (), false> const&) () from /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > #6 0x00007f17195b8d67 in hpx::detail::run(hpx::runtime&, hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::variables_map&, hpx::runtime_mode, hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&) () from /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > #7 0x00007f17195ba201 in hpx::detail::run_priority_local(hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&, hpx::util::command_line_handling&, bool) () > from /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > #8 0x00007f17195bb849 in hpx::detail::run_or_start(hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::options_description const&, int, char**, std::vector<std::string, std::allocator<std::string> >&&, hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&, hpx::runtime_mode, bool) () from /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > #9 0x000000000077b5b6 in hpx::init(hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::options_description const&, int, char**, std::vector<std::string, std::allocator<std::string> > const&, hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&, hpx::runtime_mode) () > #10 0x000000000077b200 in hpx::init(int, char**, std::vector<std::string, std::allocator<std::string> > const&, hpx::runtime_mode) () > #11 0x000000000077af1a in main () > > QQ > -Andi > > > On 16:22 Tue 16 Feb , Hartmut Kaiser wrote: > > Andy, > > > > You need at least use this: 8aac54113dccabcd29548cb3f764026d5ec7e696 (which > > is the commit fixing the issue). Better yet, use top of master. > > > > Regards Hartmut > > --------------- > > http://boost-spirit.com > > http://stellar.cct.lsu.edu > > > > > > > -----Original Message----- > > > From: Andreas Schäfer [mailto:[email protected]] > > > Sent: Tuesday, February 16, 2016 2:03 PM > > > To: [email protected]; [email protected] > > > Subject: Re: [hpx-users] Random Lockups > > > > > > Heya, > > > > > > it's still there. If it's of any help: I was running HPX commit > > > e68952daf3eba2453c683cbef883a8132663c95d with four localities and four > > > threads each. > > > > > > (gdb) bt > > > #0 0x00007f82b6ea600f in pthread_cond_wait () from /lib64/libpthread.so.0 > > > #1 0x00007f82b7b491ca in > > > boost::asio::detail::task_io_service::run(boost::system::error_code&) () > > > from /home/gentryx/test_build_libgeodecomp_rei_g++- > > > 4.9.3/install/lib/libhpx.so.0 > > > #2 0x00007f82b7b7473b in hpx::util::io_service_pool::thread_run(unsigned > > > long) () from /home/gentryx/test_build_libgeodecomp_rei_g++- > > > 4.9.3/install/lib/libhpx.so.0 > > > #3 0x00007f82b7763b6b in > > > hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<b > > > oost::mutex, hpx::threads::policies::lockfree_fifo, > > > hpx::threads::policies::lockfree_fifo, > > > hpx::threads::policies::lockfree_lifo> >::wait() () from > > > /home/gentryx/test_build_libgeodecomp_rei_g++- > > > 4.9.3/install/lib/libhpx.so.0 > > > #4 0x00007f82b7748075 in > > > hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<b > > > oost::mutex, hpx::threads::policies::lockfree_fifo, > > > hpx::threads::policies::lockfree_fifo, > > > hpx::threads::policies::lockfree_lifo> >::run(hpx::util::function<int (), > > > false> const&) () from /home/gentryx/test_build_libgeodecomp_rei_g++- > > > 4.9.3/install/lib/libhpx.so.0 > > > #5 0x00007f82b778b581 in hpx::detail::run(hpx::runtime&, > > > hpx::util::function<int (boost::program_options::variables_map&), false> > > > const&, boost::program_options::variables_map&, hpx::runtime_mode, > > > hpx::util::function<void (), false> const&, hpx::util::function<void (), > > > false> const&) () from /home/gentryx/test_build_libgeodecomp_rei_g++- > > > 4.9.3/install/lib/libhpx.so.0 > > > #6 0x00007f82b778c062 in > > > hpx::detail::run_priority_local(hpx::util::function<void (), false> > > > const&, hpx::util::function<void (), false> const&, > > > hpx::util::command_line_handling&, bool) () > > > from /home/gentryx/test_build_libgeodecomp_rei_g++- > > > 4.9.3/install/lib/libhpx.so.0 > > > #7 0x00007f82b778cd30 in > > > hpx::detail::run_or_start(hpx::util::function<int > > > (boost::program_options::variables_map&), false> const&, > > > boost::program_options::options_description const&, int, char**, > > > std::vector<std::string, std::allocator<std::string> >&&, > > > hpx::util::function<void (), false> const&, hpx::util::function<void (), > > > false> const&, hpx::runtime_mode, bool) () from > > > /home/gentryx/test_build_libgeodecomp_rei_g++- > > > 4.9.3/install/lib/libhpx.so.0 > > > #8 0x000000000074619f in hpx::init(int, char**, std::vector<std::string, > > > std::allocator<std::string> > const&, hpx::runtime_mode) () > > > #9 0x0000000000641223 in main () > > > > > > Cheers > > > -Andi > > > > > > On 09:56 Tue 16 Feb , Hartmut Kaiser wrote: > > > > Andy, > > > > > > > > > > I noticed that the unit tests of LibGeoDecomp are randomly locking > > > up > > > > > > (in approx. 5% of the runs). I'm testing with the current trunk of > > > > > > HPX. > > > > > > > > > > Yes, we're seeing lockups on buildbot as well. We're working on it. > > > > > > > > Looks like we have fixed this on master now. Could you please try again > > > and > > > > report back if you're still having problems? > > > > > > > > Regards Hartmut > > > > --------------- > > > > http://boost-spirit.com > > > > http://stellar.cct.lsu.edu > > > > > > > > > > > > > > > > > > Regards Hartmut > > > > > --------------- > > > > > http://boost-spirit.com > > > > > http://stellar.cct.lsu.edu > > > > > > > > > > > Attaching a locked up executable with GDB yields the following > > > > > > backtrace: > > > > > > > > > > > > (gdb) bt > > > > > > #0 0x00007f334390000f in pthread_cond_wait () from > > > > > /lib64/libpthread.so.0 > > > > > > #1 0x00007f33476946b6 in > > > > > > > > > > > > > > boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scop > > > > > > ed_lock<boost::asio::detail::posix_mutex>&, > > > > > > boost::asio::detail::task_io_service_thread_info&, > > > > > > boost::system::error_code const&) () > > > > > > from > > > > > > > > > > > > > > /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > > > > > > #2 0x00007f33476943c0 in > > > > > > > > > boost::asio::detail::task_io_service::run(boost::system::error_code&) () > > > > > > from > > > > > > > > > > > > > > /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > > > > > > #3 0x00007f33476cd814 in > > > > > hpx::util::io_service_pool::thread_run(unsigned > > > > > > long) () from > > > > > > > > > > > > > > /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > > > > > > #4 0x00007f334714805a in > > > > > > > > > > > > > > hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<b > > > > > > oost::mutex, hpx::threads::policies::lockfree_fifo, > > > > > > hpx::threads::policies::lockfree_fifo, > > > > > > hpx::threads::policies::lockfree_lifo> >::wait() () from > > > > > > > > > > > > > > /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > > > > > > #5 0x00007f3347148cd5 in > > > > > > > > > > > > > > hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<b > > > > > > oost::mutex, hpx::threads::policies::lockfree_fifo, > > > > > > hpx::threads::policies::lockfree_fifo, > > > > > > hpx::threads::policies::lockfree_lifo> > > > >::run(hpx::util::function<int > > > > > (), > > > > > > false> const&) () from > > > > > > > > > > > > > > /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > > > > > > #6 0x00007f334718a429 in hpx::detail::run(hpx::runtime&, > > > > > > hpx::util::function<int (boost::program_options::variables_map&), > > > false> > > > > > > const&, boost::program_options::variables_map&, hpx::runtime_mode, > > > > > > hpx::util::function<void (), false> const&, hpx::util::function<void > > > (), > > > > > > false> const&) () from > > > > > > > > > > > > > > /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > > > > > > #7 0x00007f334718b8a1 in > > > > > > hpx::detail::run_priority_local(hpx::util::function<void (), false> > > > > > > const&, hpx::util::function<void (), false> const&, > > > > > > hpx::util::command_line_handling&, bool) () > > > > > > from > > > > > > > > > > > > > > /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > > > > > > #8 0x00007f334718ceec in > > > > > > hpx::detail::run_or_start(hpx::util::function<int > > > > > > (boost::program_options::variables_map&), false> const&, > > > > > > boost::program_options::options_description const&, int, char**, > > > > > > std::vector<std::string, std::allocator<std::string> >&&, > > > > > > hpx::util::function<void (), false> const&, hpx::util::function<void > > > (), > > > > > > false> const&, hpx::runtime_mode, bool) () from > > > > > > > > > > > > > > /home/gentryx/test_build_libgeodecomp_rei_clang++/install/lib/libhpx.so.0 > > > > > > #9 0x0000000000765356 in hpx::init(hpx::util::function<int > > > > > > (boost::program_options::variables_map&), false> const&, > > > > > > boost::program_options::options_description const&, int, char**, > > > > > > std::vector<std::string, std::allocator<std::string> > const&, > > > > > > hpx::util::function<void (), false> const&, hpx::util::function<void > > > (), > > > > > > false> const&, hpx::runtime_mode) () > > > > > > #10 0x0000000000764fa4 in hpx::init(int, char**, > > > > > std::vector<std::string, > > > > > > std::allocator<std::string> > const&, hpx::runtime_mode) () > > > > > > #11 0x0000000000764cfa in main () > > > > > > > > > > > > Any ideas what's going wrong here? > > > > > > > > > > > > Cheers > > > > > > -Andreas > > > > > > > > > > > > > > > > > > -- > > > > > > ========================================================== > > > > > > Andreas Schäfer > > > > > > HPC and Grid Computing > > > > > > Department of Computer Science 3 > > > > > > Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany > > > > > > +49 9131 85-27910 > > > > > > PGP/GPG key via keyserver > > > > > > http://www.libgeodecomp.org > > > > > > ========================================================== > > > > > > > > > > > > (\___/) > > > > > > (+'.'+) > > > > > > (")_(") > > > > > > This is Bunny. Copy and paste Bunny into your > > > > > > signature to help him gain world domination! > > > > > > > > _______________________________________________ > > > > hpx-users mailing list > > > > [email protected] > > > > https://mail.cct.lsu.edu/mailman/listinfo/hpx-users > > > > > > -- > > > ========================================================== > > > Andreas Schäfer > > > HPC and Grid Computing > > > Department of Computer Science 3 > > > Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany > > > +49 9131 85-27910 > > > PGP/GPG key via keyserver > > > http://www.libgeodecomp.org > > > ========================================================== > > > > > > (\___/) > > > (+'.'+) > > > (")_(") > > > This is Bunny. Copy and paste Bunny into your > > > signature to help him gain world domination! > > > > -- > ========================================================== > Andreas Schäfer > HPC and Grid Computing > Department of Computer Science 3 > Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany > +49 9131 85-27910 > PGP/GPG key via keyserver > http://www.libgeodecomp.org > ========================================================== > > (\___/) > (+'.'+) > (")_(") > This is Bunny. Copy and paste Bunny into your > signature to help him gain world domination! > > _______________________________________________ > hpx-users mailing list > [email protected] > https://mail.cct.lsu.edu/mailman/listinfo/hpx-users >
_______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
