1 | Program received signal SIGSEGV, Segmentation fault.
|
---|
2 |
|
---|
3 | (gdb) bt
|
---|
4 | #0 0x0000000000505e69 in boost::asio::detail::epoll_reactor::start_op (this=0x7fffd4002bf0, op_type=1, descriptor=39,
|
---|
5 | descriptor_data=@0x7fffd4003920: 0x0, op=0x7fffc8002940, allow_speculative=false)
|
---|
6 | at /usr/include/boost/asio/detail/impl/epoll_reactor.ipp:217
|
---|
7 | #1 0x00000000005086e2 in boost::asio::detail::reactive_descriptor_service::start_op (this=0x7fffd40039d8, impl=..., op_type=1,
|
---|
8 | op=0x7fffc8002940, is_non_blocking=false, noop=false)
|
---|
9 | at /usr/include/boost/asio/detail/impl/reactive_descriptor_service.ipp:189
|
---|
10 | #2 0x000000000050b877 in boost::asio::detail::reactive_descriptor_service::async_write_some<boost::_bi::bind_t<void, boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> > > (this=0x7fffd40039d8, impl=..., handler=...)
|
---|
11 | at /usr/include/boost/asio/detail/reactive_descriptor_service.hpp:221
|
---|
12 | #3 0x000000000050ae03 in boost::asio::posix::stream_descriptor_service::async_write_some<boost::asio::null_buffers, boost::_bi::bind_t<void, boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> > > (this=0x7fffd40039b0, impl=..., buffers=..., handler=...)
|
---|
13 | at /usr/include/boost/asio/posix/stream_descriptor_service.hpp:205
|
---|
14 | #4 0x0000000000509fe5 in boost::asio::posix::basic_stream_descriptor<boost::asio::posix::stream_descriptor_service>::async_write_some<boost::asio::null_buffers, boost::_bi::bind_t<void, boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> > > (this=0x7fffd4003910,
|
---|
15 | buffers=..., handler=...) at /usr/include/boost/asio/posix/basic_stream_descriptor.hpp:235
|
---|
16 | #5 0x00000000004fe402 in eve::USBDeviceProxy::Impl::schedule_async_write (this=0x7fffd4003870) at usbdevice_proxy.cpp:513
|
---|
17 | #6 0x00000000004fe5d7 in eve::USBDeviceProxy::Impl::do_write (this=0x7fffd4003870, ec=...) at usbdevice_proxy.cpp:551
|
---|
18 | #7 0x000000000050ce18 in boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>::operator() (
|
---|
19 | this=0x7fffe55df9e0, p=0x7fffd4003870, a1=...) at /usr/include/boost/bind/mem_fn_template.hpp:165
|
---|
20 | #8 0x000000000050ccf7 in boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()>::operator()<boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::system::error_code const&, unsigned long const&> > (this=0x7fffe55df9f0, f=..., a=...) at /usr/include/boost/bind/bind.hpp:313
|
---|
21 | #9 0x000000000050cc34 in boost::_bi::bind_t<void, boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> >::operator()<boost::system::error_code, unsigned long> (this=0x7fffe55df9e0, a1=..., a2=@0x7fffe55dfa08: 0) at /usr/include/boost/bind/bind_template.hpp:102
|
---|
22 | #10 0x000000000050cbe5 in boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> >, boost::system::error_code, unsigned long>::operator() (this=0x7fffe55df9e0) at /usr/include/boost/asio/detail/bind_handler.hpp:118
|
---|
23 | #11 0x000000000050ca8a in boost::asio::asio_handler_invoke<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> >, boost::system::error_code, unsigned long> > (function=...)
|
---|
24 | at /usr/include/boost/asio/handler_invoke_hook.hpp:64
|
---|
25 | #12 0x000000000050c944 in boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::---Type <return> to continue, or q <return> to quit---
|
---|
26 | _mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> >, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> > > (function=..., context=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:39
|
---|
27 | #13 0x000000000050c51a in boost::asio::detail::reactive_null_buffers_op<boost::_bi::bind_t<void, boost::_mfi::mf1<void, eve::USBDeviceProxy::Impl, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<eve::USBDeviceProxy::Impl*>, boost::arg<1> (*)()> > >::do_complete (owner=0x7fffd40029e0, base=0x7fffc8002940)
|
---|
28 | at /usr/include/boost/asio/detail/reactive_null_buffers_op.hpp:75
|
---|
29 | #14 0x0000000000504f30 in boost::asio::detail::task_io_service_operation::complete (this=0x7fffc8002940, owner=..., ec=...,
|
---|
30 | bytes_transferred=0) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:37
|
---|
31 | #15 0x0000000000506b29 in boost::asio::detail::epoll_reactor::descriptor_state::do_complete (owner=0x7fffd40029e0,
|
---|
32 | base=0x7fffd4002b00, ec=..., bytes_transferred=24) at /usr/include/boost/asio/detail/impl/epoll_reactor.ipp:624
|
---|
33 | #16 0x0000000000504f30 in boost::asio::detail::task_io_service_operation::complete (this=0x7fffd4002b00, owner=..., ec=...,
|
---|
34 | bytes_transferred=24) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:37
|
---|
35 | #17 0x00000000005075c4 in boost::asio::detail::task_io_service::do_run_one (this=0x7fffd40029e0, lock=..., this_thread=...,
|
---|
36 | private_op_queue=..., ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:369
|
---|
37 | #18 0x0000000000507061 in boost::asio::detail::task_io_service::run (this=0x7fffd40029e0, ec=...)
|
---|
38 | at /usr/include/boost/asio/detail/impl/task_io_service.ipp:146
|
---|
39 | #19 0x00000000005079a3 in boost::asio::io_service::run (this=0x7fffd40038e8) at /usr/include/boost/asio/impl/io_service.ipp:59
|
---|
40 | #20 0x00000000004fe2c1 in eve::USBDeviceProxy::Impl::do_run (this=0x7fffd4003870) at usbdevice_proxy.cpp:495
|
---|
41 | #21 0x000000000050d421 in boost::_mfi::mf0<void, eve::USBDeviceProxy::Impl>::operator() (this=0x7fffd4004b88, p=0x7fffd4003870)
|
---|
42 | at /usr/include/boost/bind/mem_fn_template.hpp:49
|
---|
43 | #22 0x000000000050d3a2 in boost::_bi::list1<boost::_bi::value<eve::USBDeviceProxy::Impl*> >::operator()<boost::_mfi::mf0<void, eve::USBDeviceProxy::Impl>, boost::_bi::list0> (this=0x7fffd4004b98, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
|
---|
44 | #23 0x000000000050d347 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, eve::USBDeviceProxy::Impl>, boost::_bi::list1<boost::_bi::value<eve::USBDeviceProxy::Impl*> > >::operator() (this=0x7fffd4004b88) at /usr/include/boost/bind/bind_template.hpp:20
|
---|
45 | #24 0x000000000050d21a in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, eve::USBDeviceProxy::Impl>, boost::_bi::list1<boost::_bi::value<eve::USBDeviceProxy::Impl*> > > >::run (this=0x7fffd4004a00)
|
---|
46 | at /usr/include/boost/thread/detail/thread.hpp:62
|
---|
47 | #25 0x00007ffff72f66e9 in ?? () from /usr/lib/libboost_thread.so.1.49.0
|
---|
48 | #26 0x00007ffff770ff8e in start_thread (arg=0x7fffe55e0700) at pthread_create.c:311
|
---|
49 | #27 0x00007ffff659be1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
|
---|
50 |
|
---|
51 |
|
---|
52 | void epoll_reactor::start_op(int op_type, socket_type descriptor,
|
---|
53 | epoll_reactor::per_descriptor_data& descriptor_data,
|
---|
54 | reactor_op* op, bool allow_speculative)
|
---|
55 | {
|
---|
56 | if (!descriptor_data)
|
---|
57 | {
|
---|
58 | op->ec_ = boost::asio::error::bad_descriptor;
|
---|
59 | post_immediate_completion(op);
|
---|
60 | return;
|
---|
61 | }
|
---|
62 |
|
---|
63 | mutex::scoped_lock descriptor_lock(descriptor_data->mutex_);
|
---|
64 |
|
---|
65 | if (descriptor_data->shutdown_) // segfault, line 217
|
---|