Advertisement
Guest User

Valgrind results

a guest
Jul 16th, 2012
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.40 KB | None | 0 0
  1.  
  2. ==7618== Memcheck, a memory error detector
  3. ==7618== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
  4. ==7618== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
  5. ==7618== Command: ./echo_server
  6. ==7618==
  7. --7618-- Valgrind options:
  8. --7618-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
  9. --7618-- --leak-check=full
  10. --7618-- -v
  11. --7618-- Contents of /proc/version:
  12. --7618-- Linux version 3.2.0-26-generic (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012
  13. --7618-- Arch and hwcaps: AMD64, amd64-sse3-cx16
  14. --7618-- Page sizes: currently 4096, max supported 4096
  15. --7618-- Valgrind library directory: /usr/lib/valgrind
  16. --7618-- Reading syms from /home/***/git/websocketpp/tests/echo_server (0x400000)
  17. --7618-- Reading syms from /lib/x86_64-linux-gnu/ld-2.15.so (0x4000000)
  18. --7618-- Considering /lib/x86_64-linux-gnu/ld-2.15.so ..
  19. --7618-- .. CRC mismatch (computed c5d70380 wanted 7d4a76d0)
  20. --7618-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.15.so ..
  21. --7618-- .. CRC is valid
  22. --7618-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux (0x38000000)
  23. --7618-- Considering /usr/lib/valgrind/memcheck-amd64-linux ..
  24. --7618-- .. CRC mismatch (computed b9a585cc wanted 749d1a67)
  25. --7618-- object doesn't have a symbol table
  26. --7618-- object doesn't have a dynamic symbol table
  27. --7618-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
  28. --7618-- Reading suppressions file: /usr/lib/valgrind/default.supp
  29. ==7618== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-7618-by-***-on-???
  30. ==7618== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-7618-by-***-on-???
  31. ==7618== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-7618-by-***-on-???
  32. ==7618==
  33. ==7618== TO CONTROL THIS PROCESS USING vgdb (which you probably
  34. ==7618== don't want to do, unless you know exactly what you're doing,
  35. ==7618== or are doing some strange experiment):
  36. ==7618== /usr/lib/valgrind/../../bin/vgdb --pid=7618 ...command...
  37. ==7618==
  38. ==7618== TO DEBUG THIS PROCESS USING GDB: start GDB like this
  39. ==7618== /path/to/gdb ./echo_server
  40. ==7618== and then give GDB the following command
  41. ==7618== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=7618
  42. ==7618== --pid is optional if only one valgrind process is running
  43. ==7618==
  44. --7618-- REDIR: 0x40189e0 (strlen) redirected to 0x380625c7 (???)
  45. --7618-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so (0x4a25000)
  46. --7618-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
  47. --7618-- .. CRC mismatch (computed c82927cb wanted 1861273b)
  48. --7618-- object doesn't have a symbol table
  49. --7618-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c27000)
  50. --7618-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
  51. --7618-- .. CRC mismatch (computed 72e29ec9 wanted f3ad49da)
  52. --7618-- object doesn't have a symbol table
  53. --7618-- REDIR: 0x4018850 (index) redirected to 0x4c2bc60 (index)
  54. --7618-- REDIR: 0x40188d0 (strcmp) redirected to 0x4c2cc20 (strcmp)
  55. --7618-- Reading syms from /usr/local/lib/libwebsocketpp.so.0.2.0 (0x4e32000)
  56. --7618-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.15.so (0x5051000)
  57. --7618-- Considering /lib/x86_64-linux-gnu/libpthread-2.15.so ..
  58. --7618-- .. CRC mismatch (computed 8e430e5b wanted e619a829)
  59. --7618-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libpthread-2.15.so ..
  60. --7618-- .. CRC is valid
  61. --7618-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 (0x526e000)
  62. --7618-- Considering /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 ..
  63. --7618-- .. CRC mismatch (computed ef748751 wanted e44c0328)
  64. --7618-- object doesn't have a symbol table
  65. --7618-- Reading syms from /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x556e000)
  66. --7618-- Considering /lib/x86_64-linux-gnu/libgcc_s.so.1 ..
  67. --7618-- .. CRC mismatch (computed c8e4b229 wanted 098e39f6)
  68. --7618-- object doesn't have a symbol table
  69. --7618-- Reading syms from /lib/x86_64-linux-gnu/libc-2.15.so (0x5784000)
  70. --7618-- Considering /lib/x86_64-linux-gnu/libc-2.15.so ..
  71. --7618-- .. CRC mismatch (computed 0dfc7f92 wanted 306696b6)
  72. --7618-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.15.so ..
  73. --7618-- .. CRC is valid
  74. --7618-- Reading syms from /lib/x86_64-linux-gnu/libm-2.15.so (0x5b41000)
  75. --7618-- Considering /lib/x86_64-linux-gnu/libm-2.15.so ..
  76. --7618-- .. CRC mismatch (computed 84e90409 wanted 8a8fcc58)
  77. --7618-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.15.so ..
  78. --7618-- .. CRC is valid
  79. --7618-- REDIR: 0x58108c0 (strcasecmp) redirected to 0x4a25610 (_vgnU_ifunc_wrapper)
  80. --7618-- REDIR: 0x580cc60 (strnlen) redirected to 0x4a25610 (_vgnU_ifunc_wrapper)
  81. --7618-- REDIR: 0x5812b90 (strncasecmp) redirected to 0x4a25610 (_vgnU_ifunc_wrapper)
  82. --7618-- REDIR: 0x580e650 (__GI_strrchr) redirected to 0x4c2ba80 (__GI_strrchr)
  83. --7618-- REDIR: 0x580cb80 (__GI_strlen) redirected to 0x4c2bfc0 (__GI_strlen)
  84. --7618-- REDIR: 0x580b040 (strcmp) redirected to 0x4a25610 (_vgnU_ifunc_wrapper)
  85. --7618-- REDIR: 0x58b4610 (__strcmp_sse42) redirected to 0x4c2cb60 (strcmp)
  86. --7618-- REDIR: 0x580cb30 (strlen) redirected to 0x4a25610 (_vgnU_ifunc_wrapper)
  87. --7618-- REDIR: 0x58e53d0 (__strlen_sse2_pminub) redirected to 0x4c2bfa0 (strlen)
  88. --7618-- REDIR: 0x5323dd0 (operator new(unsigned long)) redirected to 0x4c2b160 (operator new(unsigned long))
  89. --7618-- REDIR: 0x5815270 (memcpy@@GLIBC_2.14) redirected to 0x4a25610 (_vgnU_ifunc_wrapper)
  90. --7618-- REDIR: 0x58ca790 (__memcpy_ssse3_back) redirected to 0x4c2cf30 (memcpy@@GLIBC_2.14)
  91. --7618-- REDIR: 0x5807d30 (calloc) redirected to 0x4c29cf0 (calloc)
  92. --7618-- REDIR: 0x580f080 (bcmp) redirected to 0x4a25610 (_vgnU_ifunc_wrapper)
  93. --7618-- REDIR: 0x58dfd00 (__memcmp_sse4_1) redirected to 0x4c2dca0 (bcmp)
  94. Boost version used: 1_50
  95. --7618-- REDIR: 0xffffffffff600000 (???) redirected to 0x380625b3 (???)
  96. --7618-- REDIR: 0x5807010 (free) redirected to 0x4c2a7c0 (free)
  97. --7618-- REDIR: 0x58069d0 (malloc) redirected to 0x4c2b660 (malloc)
  98. --7618-- REDIR: 0x580c510 (__GI_strcpy) redirected to 0x4c2c0b0 (__GI_strcpy)
  99. --7618-- REDIR: 0x580b080 (__GI_strcmp) redirected to 0x4c2cbc0 (__GI_strcmp)
  100. --7618-- REDIR: 0x5322150 (operator delete(void*)) redirected to 0x4c2a450 (operator delete(void*))
  101. Starting WebSocket echo server on port 9002
  102. Starting WSServer thread...
  103.  
  104. Main thread processing...
  105. ==7618== Thread 2:
  106. ==7618== Invalid read of size 1
  107. ==7618== at 0x429F84: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  108. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  109. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  110. ==7618== by 0x58764BC: clone (clone.S:112)
  111. ==7618== Address 0x5e3c7f3 is 355 bytes inside a block of size 368 free'd
  112. ==7618== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  113. ==7618== by 0x40FC78: boost::detail::shared_count::~shared_count() (in /home/***/git/websocketpp/tests/echo_server)
  114. ==7618== by 0x422BDF: websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>::~endpoint() (in /home/***/git/websocketpp/tests/echo_server)
  115. ==7618== by 0x40C2E9: main (in /home/***/git/websocketpp/tests/echo_server)
  116. ==7618==
  117. ==7618== Invalid write of size 2
  118. ==7618== at 0x429F8B: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  119. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  120. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  121. ==7618== by 0x58764BC: clone (clone.S:112)
  122. ==7618== Address 0x5e3c7f0 is 352 bytes inside a block of size 368 free'd
  123. ==7618== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  124. ==7618== by 0x40FC78: boost::detail::shared_count::~shared_count() (in /home/***/git/websocketpp/tests/echo_server)
  125. ==7618== by 0x422BDF: websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>::~endpoint() (in /home/***/git/websocketpp/tests/echo_server)
  126. ==7618== by 0x40C2E9: main (in /home/***/git/websocketpp/tests/echo_server)
  127. ==7618==
  128. ==7618== Invalid read of size 2
  129. ==7618== at 0x41C8EB: websocketpp::log::logger<unsigned short>::print() (in /home/***/git/websocketpp/tests/echo_server)
  130. ==7618== by 0x429F9D: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  131. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  132. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  133. ==7618== by 0x58764BC: clone (clone.S:112)
  134. ==7618== Address 0x5e3c7f2 is 354 bytes inside a block of size 368 free'd
  135. ==7618== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  136. ==7618== by 0x40FC78: boost::detail::shared_count::~shared_count() (in /home/***/git/websocketpp/tests/echo_server)
  137. ==7618== by 0x422BDF: websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>::~endpoint() (in /home/***/git/websocketpp/tests/echo_server)
  138. ==7618== by 0x40C2E9: main (in /home/***/git/websocketpp/tests/echo_server)
  139. ==7618==
  140. ==7618== Invalid read of size 2
  141. ==7618== at 0x41C8F2: websocketpp::log::logger<unsigned short>::print() (in /home/***/git/websocketpp/tests/echo_server)
  142. ==7618== by 0x429F9D: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  143. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  144. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  145. ==7618== by 0x58764BC: clone (clone.S:112)
  146. ==7618== Address 0x5e3c7f0 is 352 bytes inside a block of size 368 free'd
  147. ==7618== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  148. ==7618== by 0x40FC78: boost::detail::shared_count::~shared_count() (in /home/***/git/websocketpp/tests/echo_server)
  149. ==7618== by 0x422BDF: websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>::~endpoint() (in /home/***/git/websocketpp/tests/echo_server)
  150. ==7618== by 0x40C2E9: main (in /home/***/git/websocketpp/tests/echo_server)
  151. ==7618==
  152. --7618-- REDIR: 0x580cd80 (__GI_strncmp) redirected to 0x4c2c480 (__GI_strncmp)
  153. --7618-- REDIR: 0x5810760 (__GI_stpcpy) redirected to 0x4c2de10 (__GI_stpcpy)
  154. --7618-- REDIR: 0x5816790 (strchrnul) redirected to 0x4c2e3b0 (strchrnul)
  155. --7618-- REDIR: 0x5807110 (realloc) redirected to 0x4c2b730 (realloc)
  156. echo_server: /usr/local/boost_1_50_0/libbin/include/boost/thread/pthread/recursive_mutex.hpp:105: void boost::recursive_mutex::lock(): Assertion `!pthread_mutex_lock(&m)' failed.
  157. ==7618==
  158. ==7618== Process terminating with default action of signal 6 (SIGABRT)
  159. ==7618== at 0x57BA445: raise (raise.c:64)
  160. ==7618== by 0x57BDBAA: abort (abort.c:91)
  161. ==7618== by 0x57B310D: __assert_fail_base (assert.c:94)
  162. ==7618== by 0x57B31B1: __assert_fail (assert.c:103)
  163. ==7618== by 0x40BCC7: _ZN5boost15recursive_mutex4lockEv.part.99 (in /home/***/git/websocketpp/tests/echo_server)
  164. ==7618== by 0x429CCF: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(boost::asio::ip::basic_endpoint<boost::asio::ip::tcp> const&, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  165. ==7618== by 0x429FDE: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  166. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  167. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  168. ==7618== by 0x58764BC: clone (clone.S:112)
  169. ==7618==
  170. ==7618== HEAP SUMMARY:
  171. ==7618== in use at exit: 2,258 bytes in 15 blocks
  172. ==7618== total heap usage: 54 allocs, 39 frees, 10,059 bytes allocated
  173. ==7618==
  174. ==7618== Searching for pointers to 15 not-freed blocks
  175. ==7618== Checked 8,603,680 bytes
  176. ==7618==
  177. ==7618== Thread 1:
  178. ==7618== 45 bytes in 1 blocks are possibly lost in loss record 5 of 15
  179. ==7618== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  180. ==7618== by 0x530CA88: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  181. ==7618== by 0x530E494: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  182. ==7618== by 0x530E5E2: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  183. ==7618== by 0x4E3D5AC: _GLOBAL__sub_I_uri.cpp (in /usr/local/lib/libwebsocketpp.so.0.2.0)
  184. ==7618== by 0x400F305: call_init.part.0 (dl-init.c:85)
  185. ==7618== by 0x400F3DE: _dl_init (dl-init.c:52)
  186. ==7618== by 0x40016E9: ??? (in /lib/x86_64-linux-gnu/ld-2.15.so)
  187. ==7618==
  188. ==7618== 45 bytes in 1 blocks are possibly lost in loss record 6 of 15
  189. ==7618== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  190. ==7618== by 0x530CA88: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  191. ==7618== by 0x530E494: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  192. ==7618== by 0x530E5E2: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  193. ==7618== by 0x4E3D645: _GLOBAL__sub_I_hybi_header.cpp (in /usr/local/lib/libwebsocketpp.so.0.2.0)
  194. ==7618== by 0x400F305: call_init.part.0 (dl-init.c:85)
  195. ==7618== by 0x400F3DE: _dl_init (dl-init.c:52)
  196. ==7618== by 0x40016E9: ??? (in /lib/x86_64-linux-gnu/ld-2.15.so)
  197. ==7618==
  198. ==7618== 45 bytes in 1 blocks are possibly lost in loss record 7 of 15
  199. ==7618== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  200. ==7618== by 0x530CA88: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  201. ==7618== by 0x530E494: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  202. ==7618== by 0x530E5E2: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  203. ==7618== by 0x4E3D68B: _GLOBAL__sub_I_hybi_util.cpp (in /usr/local/lib/libwebsocketpp.so.0.2.0)
  204. ==7618== by 0x400F305: call_init.part.0 (dl-init.c:85)
  205. ==7618== by 0x400F3DE: _dl_init (dl-init.c:52)
  206. ==7618== by 0x40016E9: ??? (in /lib/x86_64-linux-gnu/ld-2.15.so)
  207. ==7618==
  208. ==7618== 45 bytes in 1 blocks are possibly lost in loss record 8 of 15
  209. ==7618== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  210. ==7618== by 0x530CA88: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  211. ==7618== by 0x530E494: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  212. ==7618== by 0x530E5E2: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  213. ==7618== by 0x4E3D6CC: _GLOBAL__sub_I_data.cpp (in /usr/local/lib/libwebsocketpp.so.0.2.0)
  214. ==7618== by 0x400F305: call_init.part.0 (dl-init.c:85)
  215. ==7618== by 0x400F3DE: _dl_init (dl-init.c:52)
  216. ==7618== by 0x40016E9: ??? (in /lib/x86_64-linux-gnu/ld-2.15.so)
  217. ==7618==
  218. ==7618== 45 bytes in 1 blocks are possibly lost in loss record 9 of 15
  219. ==7618== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  220. ==7618== by 0x530CA88: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  221. ==7618== by 0x530E494: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  222. ==7618== by 0x530E5E2: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  223. ==7618== by 0x40C4B5: _GLOBAL__sub_I_main (in /home/***/git/websocketpp/tests/echo_server)
  224. ==7618== by 0x46195C: __libc_csu_init (in /home/***/git/websocketpp/tests/echo_server)
  225. ==7618== by 0x57A56FF: (below main) (libc-start.c:185)
  226. ==7618==
  227. ==7618== 89 bytes in 1 blocks are possibly lost in loss record 12 of 15
  228. ==7618== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  229. ==7618== by 0x530CA88: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  230. ==7618== by 0x530E494: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  231. ==7618== by 0x530E5E2: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  232. ==7618== by 0x4E3D565: _GLOBAL__sub_I_base64.cpp (in /usr/local/lib/libwebsocketpp.so.0.2.0)
  233. ==7618== by 0x400F305: call_init.part.0 (dl-init.c:85)
  234. ==7618== by 0x400F3DE: _dl_init (dl-init.c:52)
  235. ==7618== by 0x40016E9: ??? (in /lib/x86_64-linux-gnu/ld-2.15.so)
  236. ==7618==
  237. ==7618== 288 bytes in 1 blocks are possibly lost in loss record 13 of 15
  238. ==7618== at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  239. ==7618== by 0x4012074: _dl_allocate_tls (dl-tls.c:297)
  240. ==7618== by 0x5059ABC: pthread_create@@GLIBC_2.2.5 (allocatestack.c:571)
  241. ==7618== by 0x43BE1C: boost::thread::start_thread() (in /home/***/git/websocketpp/tests/echo_server)
  242. ==7618== by 0x4185E7: boost::thread::thread<boost::_bi::bind_t<void, boost::_mfi::mf2<void, websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >, unsigned short, unsigned long>, boost::_bi::list3<boost::_bi::value<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>*>, boost::_bi::value<unsigned short>, boost::_bi::value<int> > > >(boost::_bi::bind_t<void, boost::_mfi::mf2<void, websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >, unsigned short, unsigned long>, boost::_bi::list3<boost::_bi::value<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>*>, boost::_bi::value<unsigned short>, boost::_bi::value<int> > >, boost::disable_if<boost::is_convertible<boost::_bi::bind_t<void, boost::_mfi::mf2<void, websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >, unsigned short, unsigned long>, boost::_bi::list3<boost::_bi::value<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>*>, boost::_bi::value<unsigned short>, boost::_bi::value<int> > >&, boost::detail::thread_move_t<boost::_bi::bind_t<void, boost::_mfi::mf2<void, websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >, unsigned short, unsigned long>, boost::_bi::list3<boost::_bi::value<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>*>, boost::_bi::value<unsigned short>, boost::_bi::value<int> > > > >, boost::thread::dummy*>::type) (in /home/***/git/websocketpp/tests/echo_server)
  243. ==7618== by 0x40C290: main (in /home/***/git/websocketpp/tests/echo_server)
  244. ==7618==
  245. ==7618== LEAK SUMMARY:
  246. ==7618== definitely lost: 0 bytes in 0 blocks
  247. ==7618== indirectly lost: 0 bytes in 0 blocks
  248. ==7618== possibly lost: 602 bytes in 7 blocks
  249. ==7618== still reachable: 1,656 bytes in 8 blocks
  250. ==7618== suppressed: 0 bytes in 0 blocks
  251. ==7618== Reachable blocks (those to which a pointer was found) are not shown.
  252. ==7618== To see them, rerun with: --leak-check=full --show-reachable=yes
  253. ==7618==
  254. ==7618== ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 2 from 2)
  255. ==7618==
  256. ==7618== 1 errors in context 1 of 11:
  257. ==7618== Thread 2:
  258. ==7618== Invalid read of size 2
  259. ==7618== at 0x41C8F2: websocketpp::log::logger<unsigned short>::print() (in /home/***/git/websocketpp/tests/echo_server)
  260. ==7618== by 0x429F9D: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  261. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  262. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  263. ==7618== by 0x58764BC: clone (clone.S:112)
  264. ==7618== Address 0x5e3c7f0 is 352 bytes inside a block of size 368 free'd
  265. ==7618== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  266. ==7618== by 0x40FC78: boost::detail::shared_count::~shared_count() (in /home/***/git/websocketpp/tests/echo_server)
  267. ==7618== by 0x422BDF: websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>::~endpoint() (in /home/***/git/websocketpp/tests/echo_server)
  268. ==7618== by 0x40C2E9: main (in /home/***/git/websocketpp/tests/echo_server)
  269. ==7618==
  270. ==7618==
  271. ==7618== 1 errors in context 2 of 11:
  272. ==7618== Invalid read of size 2
  273. ==7618== at 0x41C8EB: websocketpp::log::logger<unsigned short>::print() (in /home/***/git/websocketpp/tests/echo_server)
  274. ==7618== by 0x429F9D: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  275. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  276. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  277. ==7618== by 0x58764BC: clone (clone.S:112)
  278. ==7618== Address 0x5e3c7f2 is 354 bytes inside a block of size 368 free'd
  279. ==7618== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  280. ==7618== by 0x40FC78: boost::detail::shared_count::~shared_count() (in /home/***/git/websocketpp/tests/echo_server)
  281. ==7618== by 0x422BDF: websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>::~endpoint() (in /home/***/git/websocketpp/tests/echo_server)
  282. ==7618== by 0x40C2E9: main (in /home/***/git/websocketpp/tests/echo_server)
  283. ==7618==
  284. ==7618==
  285. ==7618== 1 errors in context 3 of 11:
  286. ==7618== Invalid write of size 2
  287. ==7618== at 0x429F8B: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  288. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  289. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  290. ==7618== by 0x58764BC: clone (clone.S:112)
  291. ==7618== Address 0x5e3c7f0 is 352 bytes inside a block of size 368 free'd
  292. ==7618== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  293. ==7618== by 0x40FC78: boost::detail::shared_count::~shared_count() (in /home/***/git/websocketpp/tests/echo_server)
  294. ==7618== by 0x422BDF: websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>::~endpoint() (in /home/***/git/websocketpp/tests/echo_server)
  295. ==7618== by 0x40C2E9: main (in /home/***/git/websocketpp/tests/echo_server)
  296. ==7618==
  297. ==7618==
  298. ==7618== 1 errors in context 4 of 11:
  299. ==7618== Invalid read of size 1
  300. ==7618== at 0x429F84: websocketpp::role::server<websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger> >::listen(unsigned short, unsigned long) (in /home/***/git/websocketpp/tests/echo_server)
  301. ==7618== by 0x43AE87: thread_proxy (in /home/***/git/websocketpp/tests/echo_server)
  302. ==7618== by 0x5058E99: start_thread (pthread_create.c:308)
  303. ==7618== by 0x58764BC: clone (clone.S:112)
  304. ==7618== Address 0x5e3c7f3 is 355 bytes inside a block of size 368 free'd
  305. ==7618== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  306. ==7618== by 0x40FC78: boost::detail::shared_count::~shared_count() (in /home/***/git/websocketpp/tests/echo_server)
  307. ==7618== by 0x422BDF: websocketpp::endpoint<websocketpp::role::server, websocketpp::socket::plain, websocketpp::log::logger>::~endpoint() (in /home/***/git/websocketpp/tests/echo_server)
  308. ==7618== by 0x40C2E9: main (in /home/***/git/websocketpp/tests/echo_server)
  309. ==7618==
  310. --7618--
  311. --7618-- used_suppression: 2 dl-hack3-cond-1
  312. ==7618==
  313. ==7618== ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 2 from 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement