dmitry-markeshov opened a new issue #17653: A process crashes when trying to exit normally URL: https://github.com/apache/incubator-mxnet/issues/17653 ## Description MxNet version 1.6.1 (manually builded from source) I run many unit tests through `ctest`. `ctest` calls exec() for each test (I believe) and runs a new process where test is running. In most tests MxNet is used. All tests pass, but sometimes I see messages like this: ``` 59: Test command: /home/builder/src/face_sdk/Linux-Release/build/tests/face_sdk_tests "--gtest_filter=face_detector_200.make_face_detector_incorrect_license_format_test" "--gtest_also_run_disabled_tests" "--source_dir=/home/builder/face_sdk/Linux-Release/src" " --cmake_generated_dir=/home/builder/src/face_sdk/Linux-Release/build" 59: Test timeout computed to be: 10000000 59: Note: Google Test filter = face_detector_200.make_face_detector_incorrect_license_format_test 59: [==========] Running 1 test from 1 test case. 59: [----------] Global test environment set-up. 59: [----------] 1 test from face_detector_200 59: [ RUN ] face_detector_200.make_face_detector_incorrect_license_format_test 59: [ OK ] face_detector_200.make_face_detector_incorrect_license_format_test (591 ms) 59: [----------] 1 test from face_detector_200 (591 ms total) 59: 59: [----------] Global test environment tear-down 59: [==========] 1 test from 1 test case ran. (591 ms total) 59: [ PASSED ] 1 test. 59: terminate called without an active exception 59/313 Test #59: face_detector_200.make_face_detector_incorrect_license_format_test ......Child aborted***Exception: 0.69 sec ``` Back Trace is below: ### Error Message ``` (gdb) bt #0 0x00007f21dd595337 in raise () from /lib64/libc.so.6 #1 0x00007f21dd596a28 in abort () from /lib64/libc.so.6 #2 0x00007f21ddba37d5 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6 #3 0x00007f21ddba1746 in ?? () from /lib64/libstdc++.so.6 #4 0x00007f21ddba1773 in std::terminate() () from /lib64/libstdc++.so.6 #5 0x0000000003c833fa in std::vector<std::thread, std::allocator<std::thread> >::~vector() () #6 0x0000000003d5437f in std::_Sp_counted_ptr<mxnet::engine::ThreadedEnginePerDevice::ThreadWorkerBlock<(dmlc::ConcurrentQueueType)0>*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() () #7 0x00000000006215d9 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x95ae2d0) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:144 #8 0x0000000003d52bb1 in mxnet::common::LazyAllocArray<mxnet::engine::ThreadedEnginePerDevice::ThreadWorkerBlock<(dmlc::ConcurrentQueueType)0> >::Clear() () #9 0x0000000003d55a11 in mxnet::engine::ThreadedEnginePerDevice::StopNoWait() () #10 0x0000000003d55b7e in mxnet::engine::ThreadedEnginePerDevice::~ThreadedEnginePerDevice() () #11 0x0000000003d55e49 in mxnet::engine::ThreadedEnginePerDevice::~ThreadedEnginePerDevice() () #12 0x00000000006215d9 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x98372c0) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:144 #13 0x0000000003eb4050 in mxnet::NDArray::Chunk::~Chunk() () #14 0x00000000006215d9 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x7f21ac04b5f0) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:144 #15 0x0000000003c84405 in std::vector<mxnet::NDArray, std::allocator<mxnet::NDArray> >::~vector() () #16 0x0000000003d6139e in mxnet::exec::StorageFallbackOpExecutor::~StorageFallbackOpExecutor() () #17 0x00000000006215d9 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x9d2b270) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:144 #18 0x0000000003d609d5 in std::vector<std::shared_ptr<mxnet::exec::OpExecutor>, std::allocator<std::shared_ptr<mxnet::exec::OpExecutor> > >::~vector() () #19 0x0000000003d6e996 in std::_Function_base::_Base_manager<mxnet::exec::GraphExecutor::CreateCachedSegOpr(unsigned long, unsigned long)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_manager(std::_Any_data&, std::_Function_base::_Base_manager<mxnet::exec::GraphExecutor::CreateCachedSegOpr(unsigned long, unsigned long)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}> const&, std::_Manager_operation) () #20 0x0000000003d49995 in std::_Function_handler<void (mxnet::RunContext, mxnet::engine::CallbackOnComplete), mxnet::engine::ThreadedEngine::DeleteOperator(mxnet::engine::Opr*)::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::RunContext, mxnet::engine::CallbackOnComplete) () #21 0x0000000003d53493 in mxnet::engine::ThreadedEngine::ExecuteOprBlock(mxnet::RunContext, mxnet::engine::OprBlock*) () #22 0x0000000003d551d4 in std::_Function_handler<void (std::shared_ptr<dmlc::ManualEvent>), mxnet::engine::ThreadedEnginePerDevice::PushToExecute(mxnet::engine::OprBlock*, bool)::{lambda()#1}::operator()() const::{lambda(std::shared_ptr<dmlc::ManualEvent>)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr<dmlc::ManualEvent>) () #23 0x0000000003d52514 in std::thread::_Impl<std::_Bind_simple<std::function<void (std::shared_ptr<dmlc::ManualEvent>)> (std::shared_ptr<dmlc::ManualEvent>)> >::_M_run() () #24 0x00007f21ddbf8070 in ?? () from /lib64/libstdc++.so.6 #25 0x00007f21de153e65 in start_thread () from /lib64/libpthread.so.0 #26 0x00007f21dd65d88d in clone () from /lib64/libc.so.6 ``` ``` (gdb) info threads Id Target Id Frame 12 Thread 0x7f21bb68ee80 (LWP 31588) _INTERNAL_25_______src_kmp_barrier_cpp_38a91946::__kmp_wait_template<kmp_flag_64, 1, false, true> (this_thr=0x7f21dfc5b4e4 <__kmp_tasking_mode>, flag=0x7f21bb68dbc8, itt_sync_obj=0x10251100000000) at ../../src/kmp_wait_release.h:405 11 Thread 0x7f21db6b0880 (LWP 31576) _INTERNAL_25_______src_kmp_barrier_cpp_38a91946::__kmp_wait_template<kmp_flag_64, 1, false, true> (this_thr=0x7f21dfc5b4e4 <__kmp_tasking_mode>, flag=0x7f21db6af8c8, itt_sync_obj=0x10251100000000) at ../../src/kmp_wait_release.h:397 10 Thread 0x7f21da6ac980 (LWP 31578) 0x00007f21dd642727 in sched_yield () from /lib64/libc.so.6 9 Thread 0x7f21daeae900 (LWP 31577) _INTERNAL_25_______src_kmp_barrier_cpp_38a91946::__kmp_wait_template<kmp_flag_64, 1, false, true> (this_thr=0x7f21dfc5b4e4 <__kmp_tasking_mode>, flag=0x7f21daead908, itt_sync_obj=0x10251100000000) at ../../src/kmp_wait_release.h:405 8 Thread 0x7f21dbeb2800 (LWP 31575) _INTERNAL_25_______src_kmp_barrier_cpp_38a91946::__kmp_wait_template<kmp_flag_64, 1, false, true> (this_thr=0x7f21dfc5b4e4 <__kmp_tasking_mode>, flag=0x7f21dbeb1888, itt_sync_obj=0x10251100000000) at ../../src/kmp_wait_release.h:405 7 Thread 0x7f21bc692d80 (LWP 31586) 0x00007f21dd642727 in sched_yield () from /lib64/libc.so.6 6 Thread 0x7f21dfe9ca00 (LWP 31573) 0x0000000003cbf9f0 in dmlc::parameter::ParamManager::~ParamManager() () 5 Thread 0x7f21dc6b4780 (LWP 31574) _INTERNAL_25_______src_kmp_barrier_cpp_38a91946::__kmp_wait_template<kmp_flag_64, 1, false, true> (this_thr=0x7f21dfc5b4e4 <__kmp_tasking_mode>, flag=0x7f21dc6b3848, itt_sync_obj=0x10251100000000) at ../../src/kmp_wait_release.h:405 4 Thread 0x7f21bbe90e00 (LWP 31587) _INTERNAL_25_______src_kmp_barrier_cpp_38a91946::__kmp_wait_template<kmp_flag_64, 1, false, true> (this_thr=0x7f21dfc5b4e4 <__kmp_tasking_mode>, flag=0x7f21bbe8fb88, itt_sync_obj=0x10251100000000) at ../../src/kmp_wait_release.h:405 3 Thread 0x7f21bce94d00 (LWP 31585) _INTERNAL_25_______src_kmp_barrier_cpp_38a91946::__kmp_wait_template<kmp_flag_64, 1, false, true> (this_thr=0x7f21dfc5b4e4 <__kmp_tasking_mode>, flag=0x7f21bce93b08, itt_sync_obj=0x10251100000000) at ../../src/kmp_wait_release.h:405 2 Thread 0x7f21bd696c80 (LWP 31584) _INTERNAL_25_______src_kmp_barrier_cpp_38a91946::__kmp_wait_template<kmp_flag_64, 1, false, true> (this_thr=0x7f21dfc5b4e4 <__kmp_tasking_mode>, flag=0x7f21bd695ac8, itt_sync_obj=0x10251100000000) at ../../src/kmp_wait_release.h:405 * 1 Thread 0x7f21c37fe700 (LWP 31583) 0x00007f21dd595337 in raise () from /lib64/libc.so.6 ``` ## Environment ``` ----------Python Info---------- ('Version :', '2.7.5') ('Compiler :', 'GCC 4.8.5 20150623 (Red Hat 4.8.5-28)') ('Build :', ('default', 'Jul 13 2018 13:06:57')) ('Arch :', ('64bit', 'ELF')) ------------Pip Info----------- No corresponding pip install for current python. ----------MXNet Info----------- No MXNet installed. ----------System Info---------- ('Platform :', 'Linux-3.10.0-862.11.6.el7.x86_64-x86_64-with-centos-7.5.1804-Core') ('system :', 'Linux') ('node :', '9804039b4d8e') ('release :', '3.10.0-862.11.6.el7.x86_64') ('version :', '#1 SMP Tue Aug 14 21:49:04 UTC 2018') ----------Hardware Info---------- ('machine :', 'x86_64') ('processor :', 'x86_64') Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 12 On-line CPU(s) list: 0-11 Thread(s) per core: 2 Core(s) per socket: 6 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 158 Model name: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz Stepping: 10 CPU MHz: 799.890 CPU max MHz: 4700.0000 CPU min MHz: 800.0000 BogoMIPS: 7392.00 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 12288K NUMA node0 CPU(s): 0-11 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp ----------Network Test---------- Setting timeout: 10 Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.1157 sec, LOAD: 1.0584 sec. Timing for D2L: http://d2l.ai, DNS: 0.0791 sec, LOAD: 0.3457 sec. Timing for FashionMNIST: https://repo.mxnet.io/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.1159 sec, LOAD: 0.8497 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0763 sec, LOAD: 0.3252 sec. Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0076 sec, LOAD: 0.7661 sec. Timing for GluonNLP: http://gluon-nlp.mxnet.io, DNS: 0.0682 sec, LOAD: 0.7391 sec. Timing for D2L (zh-cn): http://zh.d2l.ai, DNS: 0.0339 sec, LOAD: 0.3219 sec. Timing for GluonNLP GitHub: https://github.com/dmlc/gluon-nlp, DNS: 0.0010 sec, LOAD: 0.6049 sec. ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services