Advertisement
chrisasl

valgrind output

Jan 12th, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.32 KB | None | 0 0
  1. ==7600== Memcheck, a memory error detector
  2. ==7600== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
  3. ==7600== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for copyright info
  4. ==7600== Command: ./out
  5. ==7600==
  6. --7600-- Valgrind options:
  7. --7600-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
  8. --7600-- -v
  9. --7600-- --leak-check=full
  10. --7600-- --track-origins=yes
  11. --7600-- Contents of /proc/version:
  12. --7600-- Linux version 3.0.0-14-generic (buildd@allspice) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011
  13. --7600-- Arch and hwcaps: AMD64, amd64-sse3-cx16
  14. --7600-- Page sizes: currently 4096, max supported 4096
  15. --7600-- Valgrind library directory: /usr/lib/valgrind
  16. --7600-- Reading syms from /home/chris/OOP/Assignment_2/version1/out (0x400000)
  17. --7600-- Reading syms from /lib/x86_64-linux-gnu/ld-2.13.so (0x4000000)
  18. --7600-- Considering /lib/x86_64-linux-gnu/ld-2.13.so ..
  19. --7600-- .. CRC mismatch (computed 9c0dec43 wanted 780b0451)
  20. --7600-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.13.so ..
  21. --7600-- .. CRC is valid
  22. --7600-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux (0x38000000)
  23. --7600-- object doesn't have a dynamic symbol table
  24. --7600-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
  25. --7600-- Reading suppressions file: /usr/lib/valgrind/default.supp
  26. --7600-- REDIR: 0x4017660 (strlen) redirected to 0x3803f45b (vgPlain_amd64_linux_REDIR_FOR_strlen)
  27. --7600-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so (0x4a23000)
  28. --7600-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c25000)
  29. ==7600== WARNING: new redirection conflicts with existing -- ignoring it
  30. --7600-- new: 0x04017660 (strlen ) R-> 0x04c29763 strlen
  31. --7600-- REDIR: 0x40174d0 (index) redirected to 0x4c2942f (index)
  32. --7600-- REDIR: 0x4017550 (strcmp) redirected to 0x4c2a07b (strcmp)
  33. --7600-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 (0x4e2f000)
  34. --7600-- Considering /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 ..
  35. --7600-- .. CRC mismatch (computed 0897570d wanted 816d0d07)
  36. --7600-- object doesn't have a symbol table
  37. --7600-- Reading syms from /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x5136000)
  38. --7600-- Considering /lib/x86_64-linux-gnu/libgcc_s.so.1 ..
  39. --7600-- .. CRC mismatch (computed d46494c8 wanted 768844ac)
  40. --7600-- object doesn't have a symbol table
  41. --7600-- Reading syms from /lib/x86_64-linux-gnu/libc-2.13.so (0x534c000)
  42. --7600-- Considering /lib/x86_64-linux-gnu/libc-2.13.so ..
  43. --7600-- .. CRC mismatch (computed c7fc9bc5 wanted e97c5d1f)
  44. --7600-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.13.so ..
  45. --7600-- .. CRC is valid
  46. --7600-- Reading syms from /lib/x86_64-linux-gnu/libm-2.13.so (0x56eb000)
  47. --7600-- Considering /lib/x86_64-linux-gnu/libm-2.13.so ..
  48. --7600-- .. CRC mismatch (computed 4e6b4dc1 wanted 1e79dafa)
  49. --7600-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.13.so ..
  50. --7600-- .. CRC is valid
  51. --7600-- REDIR: 0x53d4440 (strncasecmp) redirected to 0x4a2360a (_vgnU_ifunc_wrapper)
  52. --7600-- REDIR: 0x53d2180 (strcasecmp) redirected to 0x4a2360a (_vgnU_ifunc_wrapper)
  53. --7600-- REDIR: 0x53d0210 (__GI_strrchr) redirected to 0x4c292ad (__GI_strrchr)
  54. --7600-- REDIR: 0x53ce710 (__GI_strlen) redirected to 0x4c2972f (__GI_strlen)
  55. --7600-- REDIR: 0x53ccc90 (strcmp) redirected to 0x4a2360a (_vgnU_ifunc_wrapper)
  56. --7600-- REDIR: 0x546a980 (__strcmp_sse42) redirected to 0x4c29fe7 (strcmp)
  57. --7600-- REDIR: 0xffffffffff600400 (???) redirected to 0x3803f451 (vgPlain_amd64_linux_REDIR_FOR_vtime)
  58. ==7600== Conditional jump or move depends on uninitialised value(s)
  59. ==7600== at 0x400D28: random_products::search_AM(int const&, int const&) (in /home/chris/OOP/Assignment_2/version1/out)
  60. ==7600== by 0x400BE5: random_products::random_products() (in /home/chris/OOP/Assignment_2/version1/out)
  61. ==7600== by 0x400A99: main (in /home/chris/OOP/Assignment_2/version1/out)
  62. ==7600== Uninitialised value was created by a stack allocation
  63. ==7600== at 0x400A77: main (in /home/chris/OOP/Assignment_2/version1/out)
  64. ==7600==
  65. --7600-- REDIR: 0x4ee94b0 (operator new(unsigned long)) redirected to 0x4c28ab3 (operator new(unsigned long))
  66. ==7600== Invalid write of size 1
  67. ==7600== at 0x400E7C: Student::Student(random_products&) (in /home/chris/OOP/Assignment_2/version1/out)
  68. ==7600== by 0x400AC1: main (in /home/chris/OOP/Assignment_2/version1/out)
  69. ==7600== Address 0x596f050 is 0 bytes after a block of size 16 alloc'd
  70. ==7600== at 0x4C28B35: operator new(unsigned long) (vg_replace_malloc.c:261)
  71. ==7600== by 0x400AAC: main (in /home/chris/OOP/Assignment_2/version1/out)
  72. ==7600==
  73. --7600-- REDIR: 0x53ce6d0 (strlen) redirected to 0x4a2360a (_vgnU_ifunc_wrapper)
  74. --7600-- REDIR: 0x5474be0 (__strlen_sse42) redirected to 0x4c29715 (strlen)
  75. --7600-- REDIR: 0x53d6b10 (memcpy) redirected to 0x4a2360a (_vgnU_ifunc_wrapper)
  76. --7600-- REDIR: 0x5482eb0 (__memcpy_ssse3_back) redirected to 0x4c2a14f (memcpy)
  77. --7600-- REDIR: 0x53d0970 (bcmp) redirected to 0x4a2360a (_vgnU_ifunc_wrapper)
  78. --7600-- REDIR: 0x548f610 (__memcmp_sse4_1) redirected to 0x4c2ab87 (bcmp)
  79. To AM tou foithth einai: 1115201000022
  80. Den exei kanei thn 1h ergasia!
  81. Den exei kanei thn 2h ergasia!
  82. Exei kanei thn 3h ergasia!
  83. Den exei kanei to project!
  84.  
  85. To AM tou foithth einai: 1115201000002
  86. Exei kanei thn 1h ergasia!
  87. Exei kanei thn 2h ergasia!
  88. Exei kanei thn 3h ergasia!
  89. Den exei kanei to project!
  90.  
  91. To AM tou foithth einai: 1115201000023
  92. Exei kanei thn 1h ergasia!
  93. Den exei kanei thn 2h ergasia!
  94. Exei kanei thn 3h ergasia!
  95. Exei kanei to project me ton -1!
  96.  
  97. To AM tou foithth einai: 1115201000004
  98. Den exei kanei thn 1h ergasia!
  99. Exei kanei thn 2h ergasia!
  100. Exei kanei thn 3h ergasia!
  101. Exei kanei to project me ton -1!
  102.  
  103. To AM tou foithth einai: 1115201000024
  104. Den exei kanei thn 1h ergasia!
  105. Exei kanei thn 2h ergasia!
  106. Exei kanei thn 3h ergasia!
  107. Exei kanei to project me ton -1!
  108.  
  109. To AM tou foithth einai: 1115201000001
  110. Den exei kanei thn 1h ergasia!
  111. Den exei kanei thn 2h ergasia!
  112. Den exei kanei thn 3h ergasia!
  113. Exei kanei to project me ton -1!
  114.  
  115. To AM tou foithth einai: 1115201000005
  116. Exei kanei thn 1h ergasia!
  117. Exei kanei thn 2h ergasia!
  118. Exei kanei thn 3h ergasia!
  119. Exei kanei to project me ton -1!
  120.  
  121. To AM tou foithth einai: 1115201000014
  122. Den exei kanei thn 1h ergasia!
  123. Exei kanei thn 2h ergasia!
  124. Exei kanei thn 3h ergasia!
  125. Exei kanei to project me ton -1!
  126.  
  127. To AM tou foithth einai: 1115201000019
  128. Exei kanei thn 1h ergasia!
  129. Den exei kanei thn 2h ergasia!
  130. Exei kanei thn 3h ergasia!
  131. Den exei kanei to project!
  132.  
  133. To AM tou foithth einai: 1115201000012
  134. Exei kanei thn 1h ergasia!
  135. Den exei kanei thn 2h ergasia!
  136. Den exei kanei thn 3h ergasia!
  137. Exei kanei to project me ton -1!
  138.  
  139. To AM tou foithth einai: 1115201000007
  140. Exei kanei thn 1h ergasia!
  141. Exei kanei thn 2h ergasia!
  142. Den exei kanei thn 3h ergasia!
  143. Den exei kanei to project!
  144.  
  145. To AM tou foithth einai: 1115201000016
  146. Exei kanei thn 1h ergasia!
  147. Den exei kanei thn 2h ergasia!
  148. Exei kanei thn 3h ergasia!
  149. Exei kanei to project me ton -1!
  150.  
  151. To AM tou foithth einai: 1115201000008
  152. Exei kanei thn 1h ergasia!
  153. Den exei kanei thn 2h ergasia!
  154. Den exei kanei thn 3h ergasia!
  155. Exei kanei to project me ton -1!
  156.  
  157. To AM tou foithth einai: 1115201000018
  158. Den exei kanei thn 1h ergasia!
  159. Den exei kanei thn 2h ergasia!
  160. Exei kanei thn 3h ergasia!
  161. Exei kanei to project me ton -1!
  162.  
  163. To AM tou foithth einai: 1115201000021
  164. Den exei kanei thn 1h ergasia!
  165. Exei kanei thn 2h ergasia!
  166. Exei kanei thn 3h ergasia!
  167. Den exei kanei to project!
  168.  
  169. To AM tou foithth einai: 1115201000009
  170. Exei kanei thn 1h ergasia!
  171. Exei kanei thn 2h ergasia!
  172. Exei kanei thn 3h ergasia!
  173. Den exei kanei to project!
  174.  
  175. To AM tou foithth einai: 1115201000015
  176. Exei kanei thn 1h ergasia!
  177. Den exei kanei thn 2h ergasia!
  178. Den exei kanei thn 3h ergasia!
  179. Exei kanei to project me ton -1!
  180.  
  181. To AM tou foithth einai: 1115201000006
  182. Den exei kanei thn 1h ergasia!
  183. Exei kanei thn 2h ergasia!
  184. Den exei kanei thn 3h ergasia!
  185. Den exei kanei to project!
  186.  
  187. To AM tou foithth einai: 1115201000011
  188. Exei kanei thn 1h ergasia!
  189. Den exei kanei thn 2h ergasia!
  190. Exei kanei thn 3h ergasia!
  191. Exei kanei to project me ton -1!
  192.  
  193. To AM tou foithth einai: 1115201000017
  194. Den exei kanei thn 1h ergasia!
  195. Exei kanei thn 2h ergasia!
  196. Exei kanei thn 3h ergasia!
  197. Den exei kanei to project!
  198.  
  199. To AM tou foithth einai: 1115201000003
  200. Exei kanei thn 1h ergasia!
  201. Den exei kanei thn 2h ergasia!
  202. Den exei kanei thn 3h ergasia!
  203. Den exei kanei to project!
  204.  
  205. To AM tou foithth einai: 1115201000025
  206. Exei kanei thn 1h ergasia!
  207. Exei kanei thn 2h ergasia!
  208. Exei kanei thn 3h ergasia!
  209. Exei kanei to project me ton -1!
  210.  
  211. To AM tou foithth einai: 1115201000010
  212. Den exei kanei thn 1h ergasia!
  213. Den exei kanei thn 2h ergasia!
  214. Exei kanei thn 3h ergasia!
  215. Den exei kanei to project!
  216.  
  217. To AM tou foithth einai: 1115201000020
  218. Den exei kanei thn 1h ergasia!
  219. Exei kanei thn 2h ergasia!
  220. Den exei kanei thn 3h ergasia!
  221. Exei kanei to project me ton -1!
  222.  
  223. To AM tou foithth einai: 1115201000013
  224. Exei kanei thn 1h ergasia!
  225. Exei kanei thn 2h ergasia!
  226. Den exei kanei thn 3h ergasia!
  227. Den exei kanei to project!
  228.  
  229. Just completed creation of students
  230. --7600-- REDIR: 0x53c8d10 (free) redirected to 0x4c28259 (free)
  231. ==7600==
  232. ==7600== HEAP SUMMARY:
  233. ==7600== in use at exit: 400 bytes in 25 blocks
  234. ==7600== total heap usage: 25 allocs, 0 frees, 400 bytes allocated
  235. ==7600==
  236. ==7600== Searching for pointers to 25 not-freed blocks
  237. ==7600== Checked 188,488 bytes
  238. ==7600==
  239. ==7600== 400 bytes in 25 blocks are definitely lost in loss record 1 of 1
  240. ==7600== at 0x4C28B35: operator new(unsigned long) (vg_replace_malloc.c:261)
  241. ==7600== by 0x400AAC: main (in /home/chris/OOP/Assignment_2/version1/out)
  242. ==7600==
  243. ==7600== LEAK SUMMARY:
  244. ==7600== definitely lost: 400 bytes in 25 blocks
  245. ==7600== indirectly lost: 0 bytes in 0 blocks
  246. ==7600== possibly lost: 0 bytes in 0 blocks
  247. ==7600== still reachable: 0 bytes in 0 blocks
  248. ==7600== suppressed: 0 bytes in 0 blocks
  249. ==7600==
  250. ==7600== ERROR SUMMARY: 327 errors from 3 contexts (suppressed: 4 from 4)
  251. ==7600==
  252. ==7600== 1 errors in context 1 of 3:
  253. ==7600== Conditional jump or move depends on uninitialised value(s)
  254. ==7600== at 0x400D28: random_products::search_AM(int const&, int const&) (in /home/chris/OOP/Assignment_2/version1/out)
  255. ==7600== by 0x400BE5: random_products::random_products() (in /home/chris/OOP/Assignment_2/version1/out)
  256. ==7600== by 0x400A99: main (in /home/chris/OOP/Assignment_2/version1/out)
  257. ==7600== Uninitialised value was created by a stack allocation
  258. ==7600== at 0x400A77: main (in /home/chris/OOP/Assignment_2/version1/out)
  259. ==7600==
  260. ==7600==
  261. ==7600== 325 errors in context 2 of 3:
  262. ==7600== Invalid write of size 1
  263. ==7600== at 0x400E7C: Student::Student(random_products&) (in /home/chris/OOP/Assignment_2/version1/out)
  264. ==7600== by 0x400AC1: main (in /home/chris/OOP/Assignment_2/version1/out)
  265. ==7600== Address 0x596f050 is 0 bytes after a block of size 16 alloc'd
  266. ==7600== at 0x4C28B35: operator new(unsigned long) (vg_replace_malloc.c:261)
  267. ==7600== by 0x400AAC: main (in /home/chris/OOP/Assignment_2/version1/out)
  268. ==7600==
  269. --7600--
  270. --7600-- used_suppression: 4 dl-hack3-cond-1
  271. ==7600==
  272. ==7600== ERROR SUMMARY: 327 errors from 3 contexts (suppressed: 4 from 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement