pipeline icon indicating copy to clipboard operation
pipeline copied to clipboard

Segment Error for pipeline/example/join.cpp

Open hj51yc opened this issue 9 years ago • 4 comments

can you figure out why this happens and fix it?

hj51yc avatar Jan 03 '16 14:01 hj51yc

I can't reproduce it, compiles and runs fine for me. Please be more specific and attach code (if you modified it), stacktrace and platform details.

Also note, that the project is not under development right now.

erenon avatar Jan 03 '16 15:01 erenon

i did't change any code , i guess may be compiler's problems, or version

i use g++-5 (Homebrew gcc5 5.2.0) on mac OS, after the code finished printing all the results, it crashed!

hj51yc avatar Jan 04 '16 11:01 hj51yc

compile: g++-5 -o join1.o -c -std=c++11 -I/usr/local/my_install/boost_1_60_0/include -I/usr/local/my_install/boost_1_60_0/include/boost/pipeline join1.cpp g++-5 -o join1 join1.o -L/usr/local/my_install/boost_1_60_0/lib -lboost_system -lboost_thread

lldb info(backtrace):

(lldb) target create "join1" --core "/cores/core.1112" warning: (x86_64) /cores/core.1112 load command 60 LC_SEGMENT_64 has a fileoff + filesize (0x1bb45000) that extends beyond the end of the file (0x1bb44000), the segment will be truncated to match warning: (x86_64) /cores/core.1112 load command 61 LC_SEGMENT_64 has a fileoff (0x1bb45000) that extends beyond the end of the file (0x1bb44000), ignoring this section Core file '/cores/core.1112' (x86_64) was loaded. Process 0 stopped

  • thread #1: tid = 0x0000, 0x000000010a28dbe5 libboost_thread.dylibstd::__1::__tree<std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::__map_value_compare<void const*, std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::less<void const*>, true>, std::__1::allocator<std::__1::__value_type<void const*, boost::detail::tss_data_node> > >::destroy(std::__1::__tree_node<std::__1::__value_type<void const*, boost::detail::tss_data_node>, void*>*) + 21, stop reason = signal SIGSTOP frame #0: 0x000000010a28dbe5 libboost_thread.dylibstd::__1::__tree<std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::__map_value_compare<void const*, std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::less<void const*>, true>, std::__1::allocator<std::__1::__value_type<void const*, boost::detail::tss_data_node> > >::destroy(std::__1::__tree_node<std::__1::_value_type<void const*, boost::detail::tss_data_node>, void>_) + 21 libboost_thread.dylib`std::__1::__tree<std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::__map_value_compare<void const*, std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::less<void const*>, true>, std::__1::allocator<std::__1::__value_type<void const*, boost::detail::tss_data_node> > >::destroy: -> 0x10a28dbe5 <+21>: movq (%r15), %rsi 0x10a28dbe8 <+24>: movq %rbx, %rdi 0x10a28dbeb <+27>: callq 0x10a28dbd0 ; <+0> 0x10a28dbf0 <+32>: movq 0x8(%r15), %rsi (lldb) bt
  • thread #1: tid = 0x0000, 0x000000010a28dbe5 libboost_thread.dylib`std::__1::__tree<std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::__map_value_compare<void const*, std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::less<void const*>, true>, std::__1::allocator<std::__1::__value_type<void const*, boost::detail::tss_data_node> > >::destroy(std::__1::__tree_node<std::__1::_value_type<void const*, boost::detail::tss_data_node>, void>_) + 21, stop reason = signal SIGSTOP
    • frame #0: 0x000000010a28dbe5 libboost_thread.dylibstd::__1::__tree<std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::__map_value_compare<void const*, std::__1::__value_type<void const*, boost::detail::tss_data_node>, std::__1::less<void const*>, true>, std::__1::allocator<std::__1::__value_type<void const*, boost::detail::tss_data_node> > >::destroy(std::__1::__tree_node<std::__1::__value_type<void const*, boost::detail::tss_data_node>, void*>*) + 21 frame #1: 0x000000010a28467f libboost_thread.dylibboost::detail::thread_data_base::~thread_data_base() + 463 frame #2: 0x000000010a1ef432 join1boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, boost::executors::basic_thread_pool>, boost::_bi::list1<boost::_bi::value<boost::executors::basic_thread_pool*> > > >::~thread_data() + 42 frame #3: 0x000000010a1ef462 join1boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, boost::executors::basic_thread_pool>, boost::_bi::list1boost::_bi::value<boost::executors::basic_thread_pool* > > >::~thread_data() + 24 frame #4: 0x000000010a1ef49a join1void boost::checked_delete<boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, boost::executors::basic_thread_pool>, boost::_bi::list1<boost::_bi::value<boost::executors::basic_thread_pool*> > > > >(boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, boost::executors::basic_thread_pool>, boost::_bi::list1<boost::_bi::value<boost::executors::basic_thread_pool*> > > >*) + 42 frame #5: 0x000000010a1f278a join1boost::detail::sp_counted_impl_p<boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, boost::executors::basic_thread_pool>, boost::_bi::list1boost::_bi::value<boost::executors::basic_thread_pool* > > > >::dispose() + 28 frame #6: 0x000000010a285571 libboost_thread.dylibboost::thread::join_noexcept() + 625 frame #7: 0x000000010a1e4203 join1boost::thread::join() + 115 frame #8: 0x000000010a1e4663 join1boost::executors::basic_thread_pool::join() + 71 frame #9: 0x000000010a1e45fc join1boost::executors::basic_thread_pool::~basic_thread_pool() + 36 frame #10: 0x000000010a1e1aa6 join1main + 345 frame #11: 0x00007fff8d9f45c9 libdyld.dylibstart + 1

hj51yc avatar Jan 04 '16 11:01 hj51yc

by the way, why not to continue develope the project?

hj51yc avatar Jan 04 '16 11:01 hj51yc