Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.27 KB | None | 0 0
  1. ➜ server git:(debug_server) ✗ valgrind build/server
  2. ==10561== Memcheck, a memory error detector
  3. ==10561== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
  4. ==10561== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
  5. ==10561== Command: build/server
  6. ==10561==
  7.  
  8. ____ _ _
  9. | _ \ | | | |
  10. | |_) | __ _ | |__ ___ | |
  11. | _ < / _` || '_ \ / _ \| |
  12. | |_) || (_| || |_) || __/| |
  13. |____/ \__,_||_.__/ \___||_|
  14.  
  15. [DATABASE] try import users already created
  16. [DATABASE] empty
  17. [TCP SERVER] listening on port 4243
  18. [TCP CLIENT] inserted on address 127.0.0.1
  19. # UNPACK # 0x1
  20. # PACKCMD [0x1] [ICommand::REG]
  21. # PACKCMD [0x14] [ICommand::ERR]
  22. errorCode= '0'
  23. [REG] OK
  24. ==10561== Mismatched free() / delete / delete []
  25. ==10561== at 0x4C2C83C: operator delete[](void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  26. ==10561== by 0x40D3EE: TcpClient::sendHandler(boost::system::error_code const&, unsigned long) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  27. ==10561== 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) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  28. ==10561== 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) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  29. ==10561== by 0x41607E: boost::asio::detail::task_io_service::run(boost::system::error_code&) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  30. ==10561== by 0x4122E4: TcpServer::run() (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  31. ==10561== by 0x4080DC: main (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  32. ==10561== Address 0x62c99e0 is 0 bytes inside a block of size 16 alloc'd
  33. ==10561== at 0x4C2B0E0: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  34. ==10561== by 0x421D41: CommandErr::setParam(std::vector<std::string, std::allocator<std::string> >*) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  35. ==10561== by 0x422142: HandleCmd::packCmd(ICommand::Instruction, std::vector<std::string, std::allocator<std::string> >&) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  36. ==10561== by 0x41A059: BabelServer::sendStateCommand(Client*, int, ICommand::Instruction) const (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  37. ==10561== by 0x41BC9F: BabelServer::onReg(Client*, std::vector<std::string, std::allocator<std::string> >&, ICommand::Instruction) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  38. ==10561== by 0x416A7F: Client::onSocketReadable(IClientSocket*, unsigned int) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  39. ==10561== 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) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  40. ==10561== by 0x41607E: boost::asio::detail::task_io_service::run(boost::system::error_code&) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  41. ==10561== by 0x4122E4: TcpServer::run() (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  42. ==10561== by 0x4080DC: main (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  43. ==10561==
  44. [TCP CLIENT] inserted on address 127.0.0.1
  45. # UNPACK # 0x1
  46. # PACKCMD [0x1] [ICommand::REG]
  47. # PACKCMD [0x14] [ICommand::ERR]
  48. errorCode= '0'
  49. [REG] OK
  50. # UNPACK # 0x2
  51. # PACKCMD [0x2] [ICommand::LOG]
  52.  
  53. [DISPLAY] Attributes of a client 'simon'
  54. - account: 'simon'
  55. - pseudo: 'simon'
  56. - status: '1'
  57. - statusCall: '0'
  58. - isConnected: '0'
  59. - lastPingTime: '1414785676'
  60. - contacts: '
  61. * Empty Contact List
  62.  
  63. -----------
  64. # PACKCMD [0x14] [ICommand::ERR]
  65. errorCode= '0'
  66. [LOG] OK
  67. # UNPACK # 0x4
  68. # PACKCMD [0x4] [ICommand::SHOW]
  69. # PACKCMD [0x14] [ICommand::ERR]
  70. errorCode= '0'
  71. [SHOW] OK
  72. # PACKCMD [0x4] [ICommand::SHOW]
  73. # UNPACK # 0x2
  74. # PACKCMD [0x2] [ICommand::LOG]
  75.  
  76. [DISPLAY] Attributes of a client 'ninon'
  77. - account: 'ninon'
  78. - pseudo: 'ninon'
  79. - status: '1'
  80. - statusCall: '0'
  81. - isConnected: '0'
  82. - lastPingTime: '1414785684'
  83. - contacts: '
  84. * Empty Contact List
  85.  
  86. -----------
  87. # PACKCMD [0x14] [ICommand::ERR]
  88. errorCode= '0'
  89. [LOG] OK
  90. # UNPACK # 0x4
  91. # PACKCMD [0x4] [ICommand::SHOW]
  92. # PACKCMD [0x14] [ICommand::ERR]
  93. errorCode= '0'
  94. [SHOW] OK
  95. # PACKCMD [0x4] [ICommand::SHOW]
  96. # UNPACK # 0x5
  97. # PACKCMD [0x5] [ICommand::ADD]
  98. ==10561== Invalid write of size 8
  99. ==10561== at 0x41F560: CommandAdd::getParam(IClientSocket*) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  100. ==10561== by 0x421EDF: HandleCmd::unPackCmd() (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  101. ==10561== by 0x416A61: Client::onSocketReadable(IClientSocket*, unsigned int) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  102. ==10561== 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) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  103. ==10561== by 0x41607E: boost::asio::detail::task_io_service::run(boost::system::error_code&) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  104. ==10561== by 0x4122E4: TcpServer::run() (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  105. ==10561== by 0x4080DC: main (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  106. ==10561== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  107. ==10561==
  108. ==10561==
  109. ==10561== Process terminating with default action of signal 11 (SIGSEGV)
  110. ==10561== Access not within mapped region at address 0x0
  111. ==10561== at 0x41F560: CommandAdd::getParam(IClientSocket*) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  112. ==10561== by 0x421EDF: HandleCmd::unPackCmd() (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  113. ==10561== by 0x416A61: Client::onSocketReadable(IClientSocket*, unsigned int) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  114. ==10561== 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) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  115. ==10561== by 0x41607E: boost::asio::detail::task_io_service::run(boost::system::error_code&) (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  116. ==10561== by 0x4122E4: TcpServer::run() (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  117. ==10561== by 0x4080DC: main (in /home/simon/Babel-VOIP-Epitech/Babel/server/build/server)
  118. ==10561== If you believe this happened as a result of a stack
  119. ==10561== overflow in your program's main thread (unlikely but
  120. ==10561== possible), you can try to increase the size of the
  121. ==10561== main thread stack using the --main-stacksize= flag.
  122. ==10561== The main thread stack size used in this run was 8388608.
  123. ==10561==
  124. ==10561== HEAP SUMMARY:
  125. ==10561== in use at exit: 25,166 bytes in 181 blocks
  126. ==10561== total heap usage: 643 allocs, 462 frees, 151,326 bytes allocated
  127. ==10561==
  128. ==10561== LEAK SUMMARY:
  129. ==10561== definitely lost: 3,476 bytes in 29 blocks
  130. ==10561== indirectly lost: 0 bytes in 0 blocks
  131. ==10561== possibly lost: 1,908 bytes in 29 blocks
  132. ==10561== still reachable: 19,782 bytes in 123 blocks
  133. ==10561== suppressed: 0 bytes in 0 blocks
  134. ==10561== Rerun with --leak-check=full to see details of leaked memory
  135. ==10561==
  136. ==10561== For counts of detected and suppressed errors, rerun with: -v
  137. ==10561== ERROR SUMMARY: 9 errors from 2 contexts (suppressed: 0 from 0)
  138. [1] 10561 segmentation fault (core dumped) valgrind build/server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement