I dont know why but my server crashing after 1-2h ... Debian 4.0. In tfs console is spamming errors:
and at the end:
gdb error:
Please help someone...
Code:
[Warning - Server::onAccept] More than 100 listen errors.
and at the end:
Code:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
gdb error:
Code:
#0 0xffffe430 in __kernel_vsyscall ()
#1 0xb7934640 in raise () from /lib/i686/cmov/libc.so.6
#2 0xb7936018 in abort () from /lib/i686/cmov/libc.so.6
#3 0xb7b52988 in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib/libstdc++.so.6
#4 0xb7b50865 in ?? () from /usr/lib/libstdc++.so.6
#5 0xb7b508a2 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0xb7b509da in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xb7b51033 in operator new () from /usr/lib/libstdc++.so.6
#8 0x08073585 in ConnectionManager::createConnection (this=0x821fa40,
io_service=@0xbfdea714) at connection.cpp:58
#9 0x08198982 in Server::accept (this=0xbfdea710) at server.cpp:47
#10 0x08198caf in Server::openListenSocket (this=0xbfdea710) at server.cpp:73
#11 0x08198d31 in Server::onAccept (this=0xbfdea710, connection=0x32a97ea0,
error=@0xbfdea564) at server.cpp:102
#12 0x08199039 in boost::asio::detail::handler_queue::handler_wrapper<boost::asio::detail::binder1<boost::_bi::bind_t<void, boost::_mfi::mf2<void, Server, Connection*, boost::system::error_code const&>, boost::_bi::list3<boost::_bi::value<Server*>, boost::_bi::value<Connection*>, boost::arg<1> (*)()> >, boost::system::error_code> >::do_call (base=0xbfffd250)
at /usr/include/boost/bind/mem_fn_template.hpp:274
#13 0x0815dcad in boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false> >::run (this=0xd349a90, ec=@0xbfdea754)
Please help someone...
Last edited: