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

Segment Error for pipeline/example/join.cpp #2

Open
hj51yc opened this issue Jan 3, 2016 · 4 comments
Open

Segment Error for pipeline/example/join.cpp #2

hj51yc opened this issue Jan 3, 2016 · 4 comments

Comments

@hj51yc
Copy link

hj51yc commented Jan 3, 2016

can you figure out why this happens and fix it?

@erenon
Copy link
Owner

erenon commented Jan 3, 2016

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.

@hj51yc
Copy link
Author

hj51yc commented Jan 4, 2016

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
Copy link
Author

hj51yc commented Jan 4, 2016

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 Can you give me privs to this project please so I can comment on your source code? Thanks #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 Can you give me privs to this project please so I can comment on your source code? Thanks #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 Segment Error for pipeline/example/join.cpp #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
Copy link
Author

hj51yc commented Jan 4, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants