Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. ==11691== Memcheck, a memory error detector
  2. ==11691== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
  3. ==11691== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
  4. ==11691== Command: build/server
  5. ==11691==
  6. ==11691== Mismatched free() / delete / delete []
  7. ==11691== at 0x4C2C83C: operator delete[](void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  8. ==11691== by 0x40D3EE: TcpClient::sendHandler(boost::system::error_code const&, unsigned long) (TcpClient.cpp:114)
  9. ==11691== by 0x411248: boost::asio::detail::write_op<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::mf2<void, TcpClient, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<TcpClient*>, boost::arg<1> (*)(), boost::arg<2> (*)()> > >::operator()(boost::system::error_code const&, unsigned long, int) (mem_fn_template.hpp:280)
  10. ==11691== by 0x4114F6: boost::asio::detail::reactive_socket_send_op<boost::asio::mutable_buffers_1, boost::asio::detail::write_op<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::mf2<void, TcpClient, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<TcpClient*>, boost::arg<1> (*)(), boost::arg<2> (*)()> > > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) (bind_handler.hpp:127)
  11. ==11691== by 0x41607E: boost::asio::detail::task_io_service::run(boost::system::error_code&) (task_io_service_operation.hpp:37)
  12. ==11691== by 0x4122E4: TcpServer::run() (io_service.ipp:66)
  13. ==11691== by 0x4080DC: main (main.cpp:11)
  14. ==11691== Address 0x62cc490 is 0 bytes inside a block of size 16 alloc'd
  15. ==11691== at 0x4C2B0E0: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  16. ==11691== by 0x421D41: CommandErr::setParam(std::vector<std::string, std::allocator<std::string> >*) (CommandErr.cpp:19)
  17. ==11691== by 0x422142: HandleCmd::packCmd(ICommand::Instruction, std::vector<std::string, std::allocator<std::string> >&) (HandleCmd.cpp:45)
  18. ==11691== by 0x41A059: BabelServer::sendStateCommand(Client*, int, ICommand::Instruction) const (BabelServer.cpp:146)
  19. ==11691== by 0x41BC9F: BabelServer::onReg(Client*, std::vector<std::string, std::allocator<std::string> >&, ICommand::Instruction) (BabelServer.cpp:275)
  20. ==11691== by 0x416A7F: Client::onSocketReadable(IClientSocket*, unsigned int) (Client.cpp:36)
  21. ==11691== by 0x40D93A: boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, TcpClient::startRecv()::{lambda(boost::system::error_code const&, unsigned long)#1}>::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) (TcpClient.cpp:57)
  22. ==11691== by 0x41607E: boost::asio::detail::task_io_service::run(boost::system::error_code&) (task_io_service_operation.hpp:37)
  23. ==11691== by 0x4122E4: TcpServer::run() (io_service.ipp:66)
  24. ==11691== by 0x4080DC: main (main.cpp:11)
  25. ==11691==
  26. ==11691== Invalid write of size 8
  27. ==11691== at 0x41F560: CommandAdd::getParam(IClientSocket*) (string3.h:84)
  28. ==11691== by 0x421EDF: HandleCmd::unPackCmd() (HandleCmd.cpp:25)
  29. ==11691== by 0x416A61: Client::onSocketReadable(IClientSocket*, unsigned int) (Client.cpp:35)
  30. ==11691== by 0x40D93A: boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, TcpClient::startRecv()::{lambda(boost::system::error_code const&, unsigned long)#1}>::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) (TcpClient.cpp:57)
  31. ==11691== by 0x41607E: boost::asio::detail::task_io_service::run(boost::system::error_code&) (task_io_service_operation.hpp:37)
  32. ==11691== by 0x4122E4: TcpServer::run() (io_service.ipp:66)
  33. ==11691== by 0x4080DC: main (main.cpp:11)
  34. ==11691== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  35. ==11691==
  36. ==11691==
  37. ==11691== Process terminating with default action of signal 11 (SIGSEGV)
  38. ==11691== Access not within mapped region at address 0x0
  39. ==11691== at 0x41F560: CommandAdd::getParam(IClientSocket*) (string3.h:84)
  40. ==11691== by 0x421EDF: HandleCmd::unPackCmd() (HandleCmd.cpp:25)
  41. ==11691== by 0x416A61: Client::onSocketReadable(IClientSocket*, unsigned int) (Client.cpp:35)
  42. ==11691== by 0x40D93A: boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, TcpClient::startRecv()::{lambda(boost::system::error_code const&, unsigned long)#1}>::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) (TcpClient.cpp:57)
  43. ==11691== by 0x41607E: boost::asio::detail::task_io_service::run(boost::system::error_code&) (task_io_service_operation.hpp:37)
  44. ==11691== by 0x4122E4: TcpServer::run() (io_service.ipp:66)
  45. ==11691== by 0x4080DC: main (main.cpp:11)
  46. ==11691== If you believe this happened as a result of a stack
  47. ==11691== overflow in your program's main thread (unlikely but
  48. ==11691== possible), you can try to increase the size of the
  49. ==11691== main thread stack using the --main-stacksize= flag.
  50. ==11691== The main thread stack size used in this run was 8388608.
  51. ==11691==
  52. ==11691== HEAP SUMMARY:
  53. ==11691== in use at exit: 25,166 bytes in 181 blocks
  54. ==11691== total heap usage: 665 allocs, 484 frees, 160,766 bytes allocated
  55. ==11691==
  56. ==11691== LEAK SUMMARY:
  57. ==11691== definitely lost: 3,476 bytes in 29 blocks
  58. ==11691== indirectly lost: 0 bytes in 0 blocks
  59. ==11691== possibly lost: 1,908 bytes in 29 blocks
  60. ==11691== still reachable: 19,782 bytes in 123 blocks
  61. ==11691== suppressed: 0 bytes in 0 blocks
  62. ==11691== Rerun with --leak-check=full to see details of leaked memory
  63. ==11691==
  64. ==11691== For counts of detected and suppressed errors, rerun with: -v
  65. ==11691== ERROR SUMMARY: 9 errors from 2 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement