Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(gdb) r
Starting program: /projects/cheerp/cheerp-utils/tests/server/async_chat
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
1456442248 INFO pion.http.plugin_server : Added request handler for HTTP resource:
1456442248 INFO pion.http.plugin_server : Loaded web service plug-in for resource (): FileService.so
1456442248 INFO pion.http.plugin_server : Set web service option for resource (/): directory=.
1456442248 INFO pion.http.plugin_server : Added request handler for HTTP resource: /cheerp_call
1456442248 INFO pion.http.plugin_server : Starting server on port 1987
1456442248 INFO pion.scheduler : Starting thread scheduler
[New Thread 0x7ffff2abf700 (LWP 2554)]
[New Thread 0x7ffff22be700 (LWP 2555)]
[New Thread 0x7ffff1abd700 (LWP 2563)]
[New Thread 0x7ffff12bc700 (LWP 2564)]
[New Thread 0x7ffff0abb700 (LWP 2573)]
[New Thread 0x7ffff02ba700 (LWP 2583)]
[New Thread 0x7fffefab9700 (LWP 2585)]
[New Thread 0x7fffef2b8700 (LWP 2586)]
[New Thread 0x7fffeeab7700 (LWP 2587)]
[New Thread 0x7fffee2b6700 (LWP 2588)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff2abf700 (LWP 2554)]
0x000000000041d6e9 in boost::asio::detail::reactive_socket_service_base::start_op(boost::asio::detail::reactive_socket_service_base::base_implementation_type&, int, boost::asio::detail::reactor_op*, bool, bool, bool) ()
(gdb) bt
#0 0x000000000041d6e9 in boost::asio::detail::reactive_socket_service_base::start_op(boost::asio::detail::reactive_socket_service_base::base_implementation_type&, int, boost::asio::detail::reactor_op*, bool, bool, bool) ()
#1 0x000000000041d4de in void boost::asio::detail::reactive_socket_service_base::async_send<boost::asio::detail::consuming_buffers<boost::asio::const_buffer, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> > >, boost::asio::detail::write_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> >, boost::asio::detail::transfer_all_t, boost::function2<void, boost::system::error_code const&, unsigned long> > >(boost::asio::detail::reactive_socket_service_base::base_implementation_type&, boost::asio::detail::consuming_buffers<boost::asio::const_buffer, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> > > const&, int, boost::asio::detail::write_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> >, boost::asio::detail::transfer_all_t, boost::function2<void, boost::system::error_code const&, unsigned long> >&) ()
---Type <return> to continue, or q <return> to quit---
cp> >, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> >, boost::asio::detail::transfer_all_t, boost::function2<void, boost::system::error_code const&, unsigned long> > >(boost::asio::detail::reactive_socket_service<boost::asio::ip::tcp>::implementation_type&, boost::asio::detail::consuming_buffers<boost::asio::const_buffer, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> > > const&, int, boost::asio::detail::write_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> >, boost::asio::detail::transfer_all_t, boost::function2<void, boost::system::error_code const&, unsigned long> > const&) ()
#3 0x000000000041cf83 in boost::asio::async_result<boost::asio::handler_type<boost::function2<void, boost::system::error_code const&, unsigned long>, void (boost::system::error_code, unsigned long)>::type>::type boost::asio::async_write<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> >, boost::function2<void, boost::system::error_code const&, unsigned long> >(boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >&, std::vector<boost::asio::const_buffer, std::allocator<boost::asio::const_buffer> > const&, boost::function2<void, boost::system::error_code const&, unsigned long> const&) ()
#4 0x000000000041bdd1 in void pion::http::writer::send_more_data<boost::function2<void, boost::system::error_code const&, unsigned long> >(bool, boost::function2<void, boost::system::error_code const&, unsigned long>) ()
#5 0x00007ffff2af0689 in pion::http::writer::send (this=0x7fffe8017630) at ../include/pion/http/writer.hpp:167
#6 pion::plugins::FileService::operator() (this=<optimized out>, http_request_ptr=..., tcp_conn=...) at FileService.cpp:415
#7 0x00007ffff79896a4 in boost::function2<void, boost::shared_ptr<pion::http::request>&, boost::shared_ptr<pion::tcp::connection>&>::operator() (this=<optimized out>, a0=..., a1=...) at /usr/include/boost/function/function_template.hpp:772
#8 pion::http::server::handle_request (this=0x6799a0, http_request_ptr=..., tcp_conn=..., ec=...) at http_server.cpp:103
#9 0x00007ffff798fc56 in boost::function3<void, boost::shared_ptr<pion::http::request>&, boost::shared_ptr<pion::tcp::connection>&, boost::system::error_code const&>::operator() (a0=..., a1=..., this=<optimized out>, a2=...)
at /usr/include/boost/function/function_template.hpp:772
#10 pion::http::request_reader::finished_reading (this=<optimized out>, ec=...) at ../include/pion/http/request_reader.hpp:96
#11 0x00007ffff79885db in pion::http::reader::consume_bytes (this=0x7fffe8015df0) at http_reader.cpp:110
#12 0x00007ffff7988921 in pion::http::reader::consume_bytes (this=0x7fffe8015df0, read_error=..., bytes_read=459) at http_reader.cpp:62
#13 0x00007ffff79902d4 in boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, pion::http::reader, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<pion::http::request_reader> >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, pion::http::reader, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<pion::http::request_reader> >, boost::arg<1> (*)(), boost::arg<2> (*)()> > > (function=<error reading variable: Cannot access memory at address 0x5200000032>, context=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#14 boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::_bi::bind_t<void, boost::_mfi::mf2<void, pion::http::reader, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<pion::http::request_reader> >, boost::arg<1> (*)(), boost::arg<2> (*)()> > >::do_complete (owner=<optimized out>, base=<optimized out>) at /usr/include/boost/asio/detail/reactive_socket_recv_op.hpp:110
#15 0x00007ffff79537c3 in boost::asio::detail::task_io_service_operation::complete (this=<optimized out>, owner=..., ec=..., bytes_transferred=<optimized out>) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:38
#16 boost::asio::detail::task_io_service::do_run_one (this=0x679780, lock=..., this_thread=..., ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:372
#17 0x00007ffff7953220 in boost::asio::detail::task_io_service::run (this=0x679780, ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:149
#18 0x00007ffff794967e in boost::asio::io_service::run (this=<optimized out>) at /usr/include/boost/asio/impl/io_service.ipp:59
#19 pion::scheduler::process_service_work (this=0x7fffffffdc60, service=...) at scheduler.cpp:111
#20 0x00007ffff76bcbc5 in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0
#21 0x00007ffff5ded6aa in start_thread (arg=0x7ffff2abf700) at pthread_create.c:333
#22 0x00007ffff5b22eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment