[app][bundle_deploy] got segmentation fault


#1

Hi all,
I’m trying to run this app on Linux and I have modified source (https://github.com/zakk0610/tvm/commit/33a3760932fbdf73aed5b1b60cd1bf8500e10121) to pass compilation,
but I got the seg fault when running “./build/demo ./build/bundle.so”
Am I missing anything?

Stack trace returned 7 entries

#0 0x0000000000000000 in ?? ()
#1 0x00007ffff7909dc3 in std::thread::_M_start_thread(std::shared_ptr<std::thread::_Impl_base>, void (*)()) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2 0x00007ffff6b1a5f4 in std::thread::thread<tvm::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}>(tvm::runtime::threading::ThreadGroup::Impl::Impl(int, std:: function<void (int)>, bool)::{lambda()#1}&&) (this=0x61a820, __f=<unknown type in ./build/bundle.so, CU 0x11c15, DIE 0xbdd7a>) at /usr/include/c++/5/thread:137
#3 0x00007ffff6b11858 in __gnu_cxx::new_allocator<std::thread>::construct<std::thread, tvm::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}>(std::thread*, tvm ::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}&&) (this=0x63a488, __p=0x61a820) at /usr/include/c++/5/ext/new_allocator.h:120
#4 0x00007ffff6b08ae9 in std::allocator_traits<std::allocator<std::thread> >::construct<std::thread, tvm::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}>(std ::allocator<std::thread>&, std::thread*, tvm::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}&&) (__a=..., __p=0x61a820) at /usr/include/c++/5/bits/alloc_traits.h:530
#5 0x00007ffff6b08b75 in std::vector<std::thread, std::allocator<std::thread> >::_M_emplace_back_aux<tvm::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}>(tvm ::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}&&) (this=0x63a488) at /usr/include/c++/5/bits/vector.tcc:416
#6 0x00007ffff6b004ef in std::vector<std::thread, std::allocator<std::thread> >::emplace_back<tvm::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}>(tvm::runti me::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool)::{lambda()#1}&&) (this=0x63a488) at /usr/include/c++/5/bits/vector.tcc:101
#7 0x00007ffff6af5fba in tvm::runtime::threading::ThreadGroup::Impl::Impl(int, std::function<void (int)>, bool) (this=0x63a480, num_workers=12, worker_callback=..., exclude_worker0=true) at ../../src/runtime/threading_backend.cc:31

Environment details:
tvm: 237dbf230
docker: tvm.ci_cpu
with “pip2 install mxnet-mkl && apt-get install vim-common”


#2

I have the same problem, did you solve it?


#3

No…
I didn’t solve it.