Bug #930

Segfault in socket-transport

Added by C. Emmerich about 12 years ago. Updated over 8 years ago.

Status:ClosedStart date:03/07/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:C++
Target version:-

Description

  • C++ logger as server
  • lwrvortexsynchronizer as one client
  • bag-record as second client

After a few seconds with both clients:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb66ffb70 (LWP 16830)]
_int_malloc (av=<value optimized out>, bytes=<value optimized out>) at malloc.c:4304
4304    malloc.c: No such file or directory.
    in malloc.c
(gdb) bt
#0  _int_malloc (av=<value optimized out>, bytes=<value optimized out>) at malloc.c:4304
#1  0x0081ff9c in *__GI___libc_malloc (bytes=38) at malloc.c:3660
#2  0x00732c07 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
#3  0x0070cd06 in std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&) () from /usr/lib/libstdc++.so.6
#4  0x0070d978 in std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned int) () from /usr/lib/libstdc++.so.6
#5  0x0070e6bf in std::string::assign(std::string const&) () from /usr/lib/libstdc++.so.6
#6  0x0032f65a in rsb::protocol::Notification::set_scope (notification=..., event=..., wireSchema=..., data=...)
    at /home/jenkins/workspace/rsb-cpp-trunk-package/label/ubuntu_lucid_32bit/rsb/build/src/rsb/protocol/Notification.pb.h:237
#7  rsb::transport::socket::eventToNotification (notification=..., event=..., wireSchema=..., data=...) at /home/jenkins/workspace/rsb-cpp-trunk-package/label/ubuntu_lucid_32bit/rsb/src/rsb/transport/socket/Serialization.cpp:90
#8  0x002fbd8d in rsb::transport::socket::BusConnection::sendEvent (this=0xb3500878, event=..., wireSchema=...)
    at /home/jenkins/workspace/rsb-cpp-trunk-package/label/ubuntu_lucid_32bit/rsb/src/rsb/transport/socket/BusConnection.cpp:104
#9  0x0030f82f in rsb::transport::socket::BusServer::handleIncoming (this=0x8179060, event=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at /home/jenkins/workspace/rsb-cpp-trunk-package/label/ubuntu_lucid_32bit/rsb/src/rsb/transport/socket/BusServer.cpp:94
#10 0x002febea in rsb::transport::socket::BusConnection::handleReadBody (this=0x817ad98, error=..., bytesTransferred=180, expected=180)
    at /home/jenkins/workspace/rsb-cpp-trunk-package/label/ubuntu_lucid_32bit/rsb/src/rsb/transport/socket/BusConnection.cpp:203
#11 0x00306af8 in call<boost::shared_ptr<rsb::transport::socket::BusConnection>, boost::system::error_code const, unsigned int, unsigned int> (base=0xb6701768) at /usr/include/boost/bind/mem_fn_template.hpp:375
#12 operator()<boost::shared_ptr<rsb::transport::socket::BusConnection> > (base=0xb6701768) at /usr/include/boost/bind/mem_fn_template.hpp:389
#13 operator()<boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, const boost::system::error_code&, unsigned int, unsigned int>, boost::_bi::list2<const boost::system::error_code&, unsigned int&> > (base=0xb6701768)
    at /usr/include/boost/bind/bind.hpp:450
#14 operator()<boost::system::error_code, unsigned int> (base=0xb6701768) at /usr/include/boost/bind/bind_template.hpp:76
#15 boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >::operator() (base=0xb6701768) at /usr/include/boost/asio/impl/read.ipp:154
#16 boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int>::operator() (base=0xb6701768)
    at /usr/include/boost/asio/detail/bind_handler.hpp:96
#17 asio_handler_invoke<boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int> > (base=0xb6701768)
    at /usr/include/boost/asio/handler_invoke_hook.hpp:62
---Type <return> to continue, or q <return> to quit---
#18 invoke<boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int>, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > > (base=0xb6701768) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:39
#19 asio_handler_invoke<boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int>, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > > (
    base=0xb6701768) at /usr/include/boost/asio/impl/read.ipp:197
#20 invoke<boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int>, boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > > > (base=0xb6701768) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:39
#21 asio_handler_invoke<boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int>, boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int> (base=0xb6701768) at /usr/include/boost/asio/detail/bind_handler.hpp:130
#22 invoke<boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int>, boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int> > (base=0xb6701768) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:39
#23 boost::asio::detail::handler_queue::handler_wrapper<boost::asio::detail::binder2<boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >---Type <return> to continue, or q <return> to quit---
, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf3<void, rsb::transport::socket::BusConnection, boost::system::error_code const&, unsigned int, unsigned int>, boost::_bi::list4<boost::_bi::value<boost::shared_ptr<rsb::transport::socket::BusConnection> >, boost::arg<1> (*)(), boost::arg<2> (*)(), boost::_bi::value<unsigned int> > > >, boost::system::error_code, unsigned int> >::do_call (
    base=0xb6701768) at /usr/include/boost/asio/detail/handler_queue.hpp:192
#24 0x003253e7 in boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false> >::run(boost::system::error_code&) () from /usr/lib/librsbcore.so.0.6.0
#25 0x0032592b in boost::asio::io_service::run() () from /usr/lib/librsbcore.so.0.6.0
#26 0x0031cc77 in boost::_mfi::mf0<unsigned int, boost::asio::io_service>::operator() (this=0x8178ef8) at /usr/include/boost/bind/mem_fn_template.hpp:49
#27 operator()<unsigned int, boost::_mfi::mf0<unsigned int, boost::asio::io_service>, boost::_bi::list0> (this=0x8178ef8) at /usr/include/boost/bind/bind.hpp:236
#28 boost::_bi::bind_t<unsigned int, boost::_mfi::mf0<unsigned int, boost::asio::io_service>, boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> > >::operator() (this=0x8178ef8)
    at /usr/include/boost/bind/bind_template.hpp:20
#29 boost::detail::thread_data<boost::_bi::bind_t<unsigned int, boost::_mfi::mf0<unsigned int, boost::asio::io_service>, boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> > > >::run (this=0x8178ef8)
    at /usr/include/boost/thread/detail/thread.hpp:56
#30 0x003a27c5 in thread_proxy () from /usr/lib/libboost_thread.so.1.40.0
#31 0x0066196e in start_thread (arg=0xb66ffb70) at pthread_create.c:300
#32 0x0087da4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

History

#1 Updated by J. Moringen over 8 years ago

  • Status changed from New to Closed

The code has changed a lot in the meantime and it is unclear whether this problem still exists. Please reopen if it does.

Also available in: Atom PDF