Advertisement
Guest User

valgrind-out.txt

a guest
May 19th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.88 KB | None | 0 0
  1. ==778== Memcheck, a memory error detector
  2. ==778== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  3. ==778== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
  4. ==778== Command: ./trab
  5. ==778== Parent PID: 511
  6. ==778==
  7. ==778== Warning: client switching stacks? SP change: 0x1ffefffda0 --> 0x1ffea37f60
  8. ==778== to suppress, use: --max-stackframe=6061632 or greater
  9. ==778== Invalid write of size 8
  10. ==778== at 0x109C8D: main (trab.c:393)
  11. ==778== Address 0x1ffea37f58 is on thread 1's stack
  12. ==778== in frame #0, created by main (trab.c:391)
  13. ==778==
  14. ==778== Invalid write of size 4
  15. ==778== at 0x48C6474: __vfscanf_internal (vfscanf-internal.c:1895)
  16. ==778== by 0x48C1CAA: __isoc99_scanf (isoc99_scanf.c:30)
  17. ==778== by 0x109C91: main (trab.c:393)
  18. ==778== Address 0x1ffea37f60 is on thread 1's stack
  19. ==778== in frame #2, created by main (trab.c:391)
  20. ==778==
  21. ==778== Invalid read of size 8
  22. ==778== at 0x48C1CC2: __isoc99_scanf (isoc99_scanf.c:34)
  23. ==778== by 0x109C91: main (trab.c:393)
  24. ==778== Address 0x1ffea37f58 is on thread 1's stack
  25. ==778== in frame #0, created by __isoc99_scanf (isoc99_scanf.c:25)
  26. ==778==
  27. ==778== Invalid read of size 4
  28. ==778== at 0x109C92: main (trab.c:396)
  29. ==778== Address 0x1ffea37f60 is on thread 1's stack
  30. ==778== in frame #0, created by main (trab.c:391)
  31. ==778==
  32. ==778== Invalid write of size 8
  33. ==778== at 0x10955E: readSentencesWithProducts (trab.c:162)
  34. ==778== by 0x109CA8: main (trab.c:396)
  35. ==778== Address 0x1ffea469d0 is on thread 1's stack
  36. ==778== in frame #1, created by main (trab.c:391)
  37. ==778==
  38. ==778== Invalid write of size 4
  39. ==778== at 0x10957A: readSentencesWithProducts (trab.c:163)
  40. ==778== by 0x109CA8: main (trab.c:396)
  41. ==778== Address 0x1ffea55438 is on thread 1's stack
  42. ==778== in frame #1, created by main (trab.c:391)
  43. ==778==
  44. ==778== Invalid read of size 4
  45. ==778== at 0x1092D1: addSentenceToProduct (trab.c:86)
  46. ==778== by 0x1095CB: readSentencesWithProducts (trab.c:168)
  47. ==778== by 0x109CA8: main (trab.c:396)
  48. ==778== Address 0x1ffea55438 is on thread 1's stack
  49. ==778== in frame #2, created by main (trab.c:391)
  50. ==778==
  51. ==778== Invalid read of size 4
  52. ==778== at 0x1092E0: addSentenceToProduct (trab.c:87)
  53. ==778== by 0x1095CB: readSentencesWithProducts (trab.c:168)
  54. ==778== by 0x109CA8: main (trab.c:396)
  55. ==778== Address 0x1ffea55438 is on thread 1's stack
  56. ==778== in frame #2, created by main (trab.c:391)
  57. ==778==
  58. ==778== Invalid write of size 1
  59. ==778== at 0x483BD98: strcpy (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  60. ==778== by 0x109308: addSentenceToProduct (trab.c:87)
  61. ==778== by 0x1095CB: readSentencesWithProducts (trab.c:168)
  62. ==778== by 0x109CA8: main (trab.c:396)
  63. ==778== Address 0x1ffea469d8 is on thread 1's stack
  64. ==778== in frame #3, created by main (trab.c:391)
  65. ==778==
  66. ==778== Invalid write of size 1
  67. ==778== at 0x483BDA7: strcpy (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  68. ==778== by 0x109308: addSentenceToProduct (trab.c:87)
  69. ==778== by 0x1095CB: readSentencesWithProducts (trab.c:168)
  70. ==778== by 0x109CA8: main (trab.c:396)
  71. ==778== Address 0x1ffea46a07 is on thread 1's stack
  72. ==778== in frame #3, created by main (trab.c:391)
  73. ==778==
  74. ==778== Invalid read of size 4
  75. ==778== at 0x10930D: addSentenceToProduct (trab.c:88)
  76. ==778== by 0x1095CB: readSentencesWithProducts (trab.c:168)
  77. ==778== by 0x109CA8: main (trab.c:396)
  78. ==778== Address 0x1ffea55438 is on thread 1's stack
  79. ==778== in frame #2, created by main (trab.c:391)
  80. ==778==
  81. ==778== Invalid write of size 4
  82. ==778== at 0x10931A: addSentenceToProduct (trab.c:88)
  83. ==778== by 0x1095CB: readSentencesWithProducts (trab.c:168)
  84. ==778== by 0x109CA8: main (trab.c:396)
  85. ==778== Address 0x1ffea55438 is on thread 1's stack
  86. ==778== in frame #2, created by main (trab.c:391)
  87. ==778==
  88. ==778== Invalid read of size 8
  89. ==778== at 0x1094E8: readSentencesWithProducts (trab.c:152)
  90. ==778== by 0x109CA8: main (trab.c:396)
  91. ==778== Address 0x1ffea469d0 is on thread 1's stack
  92. ==778== in frame #1, created by main (trab.c:391)
  93. ==778==
  94. ==778== Invalid write of size 4
  95. ==778== at 0x109CA9: main (trab.c:396)
  96. ==778== Address 0x1ffea37f6c is on thread 1's stack
  97. ==778== in frame #0, created by main (trab.c:391)
  98. ==778==
  99. ==778== Invalid read of size 4
  100. ==778== at 0x109CAF: main (trab.c:399)
  101. ==778== Address 0x1ffea37f64 is on thread 1's stack
  102. ==778== in frame #0, created by main (trab.c:391)
  103. ==778==
  104. ==778== Invalid write of size 1
  105. ==778== at 0x48E1210: _IO_getline_info (iogetline.c:77)
  106. ==778== by 0x48E01AA: fgets (iofgets.c:53)
  107. ==778== by 0x1093B9: readSentences (trab.c:116)
  108. ==778== by 0x109CC5: main (trab.c:399)
  109. ==778== Address 0x1ffea37f70 is on thread 1's stack
  110. ==778== in frame #3, created by main (trab.c:391)
  111. ==778==
  112. ==778== Invalid write of size 1
  113. ==778== at 0x483F8C1: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  114. ==778== by 0x48E1273: _IO_getline_info (iogetline.c:96)
  115. ==778== by 0x48E01AA: fgets (iofgets.c:53)
  116. ==778== by 0x1093B9: readSentences (trab.c:116)
  117. ==778== by 0x109CC5: main (trab.c:399)
  118. ==778== Address 0x1ffea37f71 is on thread 1's stack
  119. ==778== in frame #4, created by main (trab.c:391)
  120. ==778==
  121. ==778== Invalid write of size 8
  122. ==778== at 0x483F950: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  123. ==778== by 0x48E1273: _IO_getline_info (iogetline.c:96)
  124. ==778== by 0x48E01AA: fgets (iofgets.c:53)
  125. ==778== by 0x1093B9: readSentences (trab.c:116)
  126. ==778== by 0x109CC5: main (trab.c:399)
  127. ==778== Address 0x1ffea37f78 is on thread 1's stack
  128. ==778== in frame #4, created by main (trab.c:391)
  129. ==778==
  130. ==778== Invalid write of size 1
  131. ==778== at 0x48E0222: fgets (iofgets.c:60)
  132. ==778== by 0x1093B9: readSentences (trab.c:116)
  133. ==778== by 0x109CC5: main (trab.c:399)
  134. ==778== Address 0x1ffea37f90 is on thread 1's stack
  135. ==778== in frame #2, created by main (trab.c:391)
  136. ==778==
  137. ==778== Invalid read of size 1
  138. ==778== at 0x1093CD: readSentences (trab.c:119)
  139. ==778== by 0x109CC5: main (trab.c:399)
  140. ==778== Address 0x1ffea37f70 is on thread 1's stack
  141. ==778== in frame #1, created by main (trab.c:391)
  142. ==778==
  143. ==778== Invalid read of size 1
  144. ==778== at 0x483BC32: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  145. ==778== by 0x10933F: removeLastChar (trab.c:101)
  146. ==778== by 0x1093F9: readSentences (trab.c:125)
  147. ==778== by 0x109CC5: main (trab.c:399)
  148. ==778== Address 0x1ffea37f70 is on thread 1's stack
  149. ==778== in frame #3, created by main (trab.c:391)
  150. ==778==
  151. ==778== Invalid read of size 1
  152. ==778== at 0x483BC44: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  153. ==778== by 0x10933F: removeLastChar (trab.c:101)
  154. ==778== by 0x1093F9: readSentences (trab.c:125)
  155. ==778== by 0x109CC5: main (trab.c:399)
  156. ==778== Address 0x1ffea37f71 is on thread 1's stack
  157. ==778== in frame #3, created by main (trab.c:391)
  158. ==778==
  159. ==778== Invalid read of size 1
  160. ==778== at 0x109359: removeLastChar (trab.c:102)
  161. ==778== by 0x1093F9: readSentences (trab.c:125)
  162. ==778== by 0x109CC5: main (trab.c:399)
  163. ==778== Address 0x1ffea37f8f is on thread 1's stack
  164. ==778== in frame #2, created by main (trab.c:391)
  165. ==778==
  166. ==778== Invalid write of size 1
  167. ==778== at 0x109371: removeLastChar (trab.c:103)
  168. ==778== by 0x1093F9: readSentences (trab.c:125)
  169. ==778== by 0x109CC5: main (trab.c:399)
  170. ==778== Address 0x1ffea37f8f is on thread 1's stack
  171. ==778== in frame #2, created by main (trab.c:391)
  172. ==778==
  173. ==778== Invalid write of size 4
  174. ==778== at 0x109CC6: main (trab.c:401)
  175. ==778== Address 0x1ffea37f68 is on thread 1's stack
  176. ==778== in frame #0, created by main (trab.c:391)
  177. ==778==
  178. ==778== Invalid read of size 4
  179. ==778== at 0x109D0B: main (trab.c:401)
  180. ==778== Address 0x1ffea37f64 is on thread 1's stack
  181. ==778== in frame #0, created by main (trab.c:391)
  182. ==778==
  183. ==778== Invalid read of size 4
  184. ==778== at 0x109D11: main (trab.c:401)
  185. ==778== Address 0x1ffea37f68 is on thread 1's stack
  186. ==778== in frame #0, created by main (trab.c:391)
  187. ==778==
  188. ==778== Invalid read of size 4
  189. ==778== at 0x109CD9: main (trab.c:402)
  190. ==778== Address 0x1ffea37f68 is on thread 1's stack
  191. ==778== in frame #0, created by main (trab.c:391)
  192. ==778==
  193. ==778== Invalid read of size 4
  194. ==778== at 0x109CEC: main (trab.c:402)
  195. ==778== Address 0x1ffea37f6c is on thread 1's stack
  196. ==778== in frame #0, created by main (trab.c:391)
  197. ==778==
  198. ==778== Invalid read of size 8
  199. ==778== at 0x10963F: findProductIndex (trab.c:187)
  200. ==778== by 0x109A7F: processQuestion (trab.c:345)
  201. ==778== by 0x109D03: main (trab.c:402)
  202. ==778== Address 0x1ffea469d0 is on thread 1's stack
  203. ==778== in frame #2, created by main (trab.c:391)
  204. ==778==
  205. ==778== Invalid read of size 1
  206. ==778== at 0x4840A3E: strstr (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  207. ==778== by 0x109650: findProductIndex (trab.c:187)
  208. ==778== by 0x109A7F: processQuestion (trab.c:345)
  209. ==778== by 0x109D03: main (trab.c:402)
  210. ==778== Address 0x1ffea37f70 is on thread 1's stack
  211. ==778== in frame #3, created by main (trab.c:391)
  212. ==778==
  213. ==778== Invalid read of size 1
  214. ==778== at 0x4840A54: strstr (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  215. ==778== by 0x109650: findProductIndex (trab.c:187)
  216. ==778== by 0x109A7F: processQuestion (trab.c:345)
  217. ==778== by 0x109D03: main (trab.c:402)
  218. ==778== Address 0x1ffea37f71 is on thread 1's stack
  219. ==778== in frame #3, created by main (trab.c:391)
  220. ==778==
  221. ==778== Invalid read of size 1
  222. ==778== at 0x4840A70: strstr (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  223. ==778== by 0x109650: findProductIndex (trab.c:187)
  224. ==778== by 0x109A7F: processQuestion (trab.c:345)
  225. ==778== by 0x109D03: main (trab.c:402)
  226. ==778== Address 0x1ffea37f80 is on thread 1's stack
  227. ==778== in frame #3, created by main (trab.c:391)
  228. ==778==
  229. ==778== Invalid read of size 8
  230. ==778== at 0x483F8F4: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  231. ==778== by 0x109AC5: processQuestion (trab.c:349)
  232. ==778== by 0x109D03: main (trab.c:402)
  233. ==778== Address 0x1ffea63eb0 is on thread 1's stack
  234. ==778== in frame #2, created by main (trab.c:391)
  235. ==778==
  236. ==778== Invalid read of size 8
  237. ==778== at 0x483F8FF: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  238. ==778== by 0x109AC5: processQuestion (trab.c:349)
  239. ==778== by 0x109D03: main (trab.c:402)
  240. ==778== Address 0x1ffea63eb8 is on thread 1's stack
  241. ==778== in frame #2, created by main (trab.c:391)
  242. ==778==
  243. ==778== Invalid read of size 8
  244. ==778== at 0x483F907: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  245. ==778== by 0x109AC5: processQuestion (trab.c:349)
  246. ==778== by 0x109D03: main (trab.c:402)
  247. ==778== Address 0x1ffea63ec0 is on thread 1's stack
  248. ==778== in frame #2, created by main (trab.c:391)
  249. ==778==
  250. ==778== Invalid read of size 8
  251. ==778== at 0x483F90F: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  252. ==778== by 0x109AC5: processQuestion (trab.c:349)
  253. ==778== by 0x109D03: main (trab.c:402)
  254. ==778== Address 0x1ffea63ec8 is on thread 1's stack
  255. ==778== in frame #2, created by main (trab.c:391)
  256. ==778==
  257. ==778== Invalid read of size 8
  258. ==778== at 0x483F94D: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  259. ==778== by 0x109AC5: processQuestion (trab.c:349)
  260. ==778== by 0x109D03: main (trab.c:402)
  261. ==778== Address 0x1ffea72910 is on thread 1's stack
  262. ==778== in frame #2, created by main (trab.c:391)
  263. ==778==
  264. ==778== Invalid read of size 1
  265. ==778== at 0x4840A3E: strstr (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  266. ==778== by 0x10968C: getQuestionIntent (trab.c:202)
  267. ==778== by 0x109AD4: processQuestion (trab.c:350)
  268. ==778== by 0x109D03: main (trab.c:402)
  269. ==778== Address 0x1ffea37f70 is on thread 1's stack
  270. ==778== in frame #3, created by main (trab.c:391)
  271. ==778==
  272. ==778== Invalid read of size 1
  273. ==778== at 0x4840A70: strstr (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  274. ==778== by 0x10968C: getQuestionIntent (trab.c:202)
  275. ==778== by 0x109AD4: processQuestion (trab.c:350)
  276. ==778== by 0x109D03: main (trab.c:402)
  277. ==778== Address 0x1ffea37f71 is on thread 1's stack
  278. ==778== in frame #3, created by main (trab.c:391)
  279. ==778==
  280. ==778== Invalid read of size 1
  281. ==778== at 0x483BC32: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  282. ==778== by 0x10920C: my_strdup (trab.c:41)
  283. ==778== by 0x109B6B: processQuestion (trab.c:364)
  284. ==778== by 0x109D03: main (trab.c:402)
  285. ==778== Address 0x1ffea37f70 is on thread 1's stack
  286. ==778== in frame #3, created by main (trab.c:391)
  287. ==778==
  288. ==778== Invalid read of size 1
  289. ==778== at 0x483BC44: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  290. ==778== by 0x10920C: my_strdup (trab.c:41)
  291. ==778== by 0x109B6B: processQuestion (trab.c:364)
  292. ==778== by 0x109D03: main (trab.c:402)
  293. ==778== Address 0x1ffea37f71 is on thread 1's stack
  294. ==778== in frame #3, created by main (trab.c:391)
  295. ==778==
  296. ==778== Invalid read of size 8
  297. ==778== at 0x483F8F4: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  298. ==778== by 0x109249: my_strdup (trab.c:47)
  299. ==778== by 0x109B6B: processQuestion (trab.c:364)
  300. ==778== by 0x109D03: main (trab.c:402)
  301. ==778== Address 0x1ffea37f70 is on thread 1's stack
  302. ==778== in frame #3, created by main (trab.c:391)
  303. ==778==
  304. ==778== Invalid read of size 8
  305. ==778== at 0x483F8FF: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  306. ==778== by 0x109249: my_strdup (trab.c:47)
  307. ==778== by 0x109B6B: processQuestion (trab.c:364)
  308. ==778== by 0x109D03: main (trab.c:402)
  309. ==778== Address 0x1ffea37f78 is on thread 1's stack
  310. ==778== in frame #3, created by main (trab.c:391)
  311. ==778==
  312. ==778== Invalid read of size 8
  313. ==778== at 0x483F907: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  314. ==778== by 0x109249: my_strdup (trab.c:47)
  315. ==778== by 0x109B6B: processQuestion (trab.c:364)
  316. ==778== by 0x109D03: main (trab.c:402)
  317. ==778== Address 0x1ffea37f80 is on thread 1's stack
  318. ==778== in frame #3, created by main (trab.c:391)
  319. ==778==
  320. ==778== Invalid read of size 8
  321. ==778== at 0x483F90F: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  322. ==778== by 0x109249: my_strdup (trab.c:47)
  323. ==778== by 0x109B6B: processQuestion (trab.c:364)
  324. ==778== by 0x109D03: main (trab.c:402)
  325. ==778== Address 0x1ffea37f88 is on thread 1's stack
  326. ==778== in frame #3, created by main (trab.c:391)
  327. ==778==
  328. ==778== Invalid read of size 4
  329. ==778== at 0x109D04: main (trab.c:401)
  330. ==778== Address 0x1ffea37f68 is on thread 1's stack
  331. ==778== in frame #0, created by main (trab.c:391)
  332. ==778==
  333. ==778== Warning: client switching stacks? SP change: 0x1ffea37f60 --> 0x1ffefffda0
  334. ==778== to suppress, use: --max-stackframe=6061632 or greater
  335. ==778==
  336. ==778== HEAP SUMMARY:
  337. ==778== in use at exit: 293 bytes in 5 blocks
  338. ==778== total heap usage: 7 allocs, 2 frees, 2,341 bytes allocated
  339. ==778==
  340. ==778== 32 bytes in 1 blocks are definitely lost in loss record 1 of 3
  341. ==778== at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  342. ==778== by 0x109220: my_strdup (trab.c:42)
  343. ==778== by 0x109B6B: processQuestion (trab.c:364)
  344. ==778== by 0x109D03: main (trab.c:402)
  345. ==778==
  346. ==778== 58 bytes in 1 blocks are definitely lost in loss record 2 of 3
  347. ==778== at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  348. ==778== by 0x109220: my_strdup (trab.c:42)
  349. ==778== by 0x1096F0: countWordUsage (trab.c:221)
  350. ==778== by 0x109BEA: processQuestion (trab.c:371)
  351. ==778== by 0x109D03: main (trab.c:402)
  352. ==778==
  353. ==778== 203 bytes in 3 blocks are definitely lost in loss record 3 of 3
  354. ==778== at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  355. ==778== by 0x109220: my_strdup (trab.c:42)
  356. ==778== by 0x109480: readSentencesWithProducts (trab.c:144)
  357. ==778== by 0x109CA8: main (trab.c:396)
  358. ==778==
  359. ==778== LEAK SUMMARY:
  360. ==778== definitely lost: 293 bytes in 5 blocks
  361. ==778== indirectly lost: 0 bytes in 0 blocks
  362. ==778== possibly lost: 0 bytes in 0 blocks
  363. ==778== still reachable: 0 bytes in 0 blocks
  364. ==778== suppressed: 0 bytes in 0 blocks
  365. ==778==
  366. ==778== For counts of detected and suppressed errors, rerun with: -v
  367. ==778== ERROR SUMMARY: 7891 errors from 50 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement