Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.63 KB | None | 0 0
  1. k3ungy@Mio-Naruse:~/42_work/graphic_projects/rtv1$ valgrind --track-origins=yes ./rtv1
  2. ==10372== Memcheck, a memory error detector
  3. ==10372== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
  4. ==10372== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
  5. ==10372== Command: ./rtv1
  6. ==10372==
  7. ==10372== Syscall param writev(vector[...]) points to uninitialised byte(s)
  8. ==10372== at 0x59A8950: __writev_nocancel (syscall-template.S:84)
  9. ==10372== by 0x5C7BF28: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
  10. ==10372== by 0x5C7C31C: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
  11. ==10372== by 0x5C7C3A4: xcb_writev (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
  12. ==10372== by 0x508848D: _XSend (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
  13. ==10372== by 0x50885EF: _XReadEvents (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
  14. ==10372== by 0x5086B10: XWindowEvent (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
  15. ==10372== by 0x10CC7E: mlx_int_wait_first_expose (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
  16. ==10372== by 0x10CAC3: mlx_new_window (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
  17. ==10372== by 0x10A132: main (main.c:107)
  18. ==10372== Address 0x64aabdc is 28 bytes inside a block of size 16,384 alloc'd
  19. ==10372== at 0x4C2EB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  20. ==10372== by 0x5078662: XOpenDisplay (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
  21. ==10372== by 0x10C712: mlx_init (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
  22. ==10372== by 0x10A047: main (main.c:100)
  23. ==10372== Uninitialised value was created by a stack allocation
  24. ==10372== at 0x10CBC0: mlx_int_anti_resize_win (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
  25. ==10372==
  26. ==10372== Thread 4:
  27. ==10372== Conditional jump or move depends on uninitialised value(s)
  28. ==10372== at 0x53A65C8: sqrt (w_sqrt.c:27)
  29. ==10372== by 0x10ABE7: vec_length (vec_length.c:17)
  30. ==10372== by 0x10AC70: vec_normalize (vec_normalize.c:18)
  31. ==10372== by 0x10B8A3: lambertian_material (lambertian_material.c:25)
  32. ==10372== by 0x10A357: lights (raytrace.c:21)
  33. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  34. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  35. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  36. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  37. ==10372== Uninitialised value was created by a stack allocation
  38. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  39. ==10372==
  40. ==10372== Conditional jump or move depends on uninitialised value(s)
  41. ==10372== at 0x10A8D5: vec_div_i (vec_div_i.c:17)
  42. ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
  43. ==10372== by 0x10B8A3: lambertian_material (lambertian_material.c:25)
  44. ==10372== by 0x10A357: lights (raytrace.c:21)
  45. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  46. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  47. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  48. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  49. ==10372== Uninitialised value was created by a stack allocation
  50. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  51. ==10372==
  52. ==10372== Conditional jump or move depends on uninitialised value(s)
  53. ==10372== at 0x10A8E0: vec_div_i (vec_div_i.c:17)
  54. ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
  55. ==10372== by 0x10B8A3: lambertian_material (lambertian_material.c:25)
  56. ==10372== by 0x10A357: lights (raytrace.c:21)
  57. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  58. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  59. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  60. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  61. ==10372== Uninitialised value was created by a stack allocation
  62. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  63. ==10372==
  64. ==10372== Conditional jump or move depends on uninitialised value(s)
  65. ==10372== at 0x10A5B8: sphere_hit (sphere_hit.c:27)
  66. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  67. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  68. ==10372== by 0x10A357: lights (raytrace.c:21)
  69. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  70. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  71. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  72. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  73. ==10372== Uninitialised value was created by a stack allocation
  74. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  75. ==10372==
  76. ==10372== Conditional jump or move depends on uninitialised value(s)
  77. ==10372== at 0x53BC4B7: sqrtf (w_sqrtf.c:27)
  78. ==10372== by 0x10AE98: eq_quadratic (eq_quadratic.c:20)
  79. ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
  80. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  81. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  82. ==10372== by 0x10A357: lights (raytrace.c:21)
  83. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  84. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  85. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  86. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  87. ==10372== Uninitialised value was created by a stack allocation
  88. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  89. ==10372==
  90. ==10372== Conditional jump or move depends on uninitialised value(s)
  91. ==10372== at 0x53BC4B7: sqrtf (w_sqrtf.c:27)
  92. ==10372== by 0x10AEC5: eq_quadratic (eq_quadratic.c:21)
  93. ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
  94. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  95. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  96. ==10372== by 0x10A357: lights (raytrace.c:21)
  97. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  98. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  99. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  100. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  101. ==10372== Uninitialised value was created by a stack allocation
  102. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  103. ==10372==
  104. ==10372== Conditional jump or move depends on uninitialised value(s)
  105. ==10372== at 0x10AEF3: eq_quadratic (eq_quadratic.c:22)
  106. ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
  107. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  108. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  109. ==10372== by 0x10A357: lights (raytrace.c:21)
  110. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  111. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  112. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  113. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  114. ==10372== Uninitialised value was created by a stack allocation
  115. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  116. ==10372==
  117. ==10372== Conditional jump or move depends on uninitialised value(s)
  118. ==10372== at 0x10AF02: eq_quadratic (eq_quadratic.c:22)
  119. ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
  120. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  121. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  122. ==10372== by 0x10A357: lights (raytrace.c:21)
  123. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  124. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  125. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  126. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  127. ==10372== Uninitialised value was created by a stack allocation
  128. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  129. ==10372==
  130. ==10372== Conditional jump or move depends on uninitialised value(s)
  131. ==10372== at 0x10AF11: eq_quadratic (eq_quadratic.c:22)
  132. ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
  133. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  134. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  135. ==10372== by 0x10A357: lights (raytrace.c:21)
  136. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  137. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  138. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  139. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  140. ==10372== Uninitialised value was created by a stack allocation
  141. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  142. ==10372==
  143. ==10372== Conditional jump or move depends on uninitialised value(s)
  144. ==10372== at 0x10AF24: eq_quadratic (eq_quadratic.c:24)
  145. ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
  146. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  147. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  148. ==10372== by 0x10A357: lights (raytrace.c:21)
  149. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  150. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  151. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  152. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  153. ==10372== Uninitialised value was created by a stack allocation
  154. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  155. ==10372==
  156. ==10372== Thread 3:
  157. ==10372== Conditional jump or move depends on uninitialised value(s)
  158. ==10372== at 0x10A604: sphere_hit (sphere_hit.c:30)
  159. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  160. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  161. ==10372== by 0x10A357: lights (raytrace.c:21)
  162. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  163. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  164. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  165. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  166. ==10372== Uninitialised value was created by a stack allocation
  167. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  168. ==10372==
  169. ==10372== Conditional jump or move depends on uninitialised value(s)
  170. ==10372== at 0x10A620: sphere_hit (sphere_hit.c:32)
  171. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  172. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  173. ==10372== by 0x10A357: lights (raytrace.c:21)
  174. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  175. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  176. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  177. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  178. ==10372== Uninitialised value was created by a stack allocation
  179. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  180. ==10372==
  181. ==10372== Conditional jump or move depends on uninitialised value(s)
  182. ==10372== at 0x53A65C8: sqrt (w_sqrt.c:27)
  183. ==10372== by 0x10ABE7: vec_length (vec_length.c:17)
  184. ==10372== by 0x10AC70: vec_normalize (vec_normalize.c:18)
  185. ==10372== by 0x10A6BF: sphere_hit (sphere_hit.c:38)
  186. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  187. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  188. ==10372== by 0x10A357: lights (raytrace.c:21)
  189. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  190. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  191. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  192. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  193. ==10372== Uninitialised value was created by a stack allocation
  194. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  195. ==10372==
  196. ==10372== Conditional jump or move depends on uninitialised value(s)
  197. ==10372== at 0x10A8D5: vec_div_i (vec_div_i.c:17)
  198. ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
  199. ==10372== by 0x10A6BF: sphere_hit (sphere_hit.c:38)
  200. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  201. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  202. ==10372== by 0x10A357: lights (raytrace.c:21)
  203. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  204. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  205. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  206. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  207. ==10372== Uninitialised value was created by a stack allocation
  208. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  209. ==10372==
  210. ==10372== Conditional jump or move depends on uninitialised value(s)
  211. ==10372== at 0x10A8E0: vec_div_i (vec_div_i.c:17)
  212. ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
  213. ==10372== by 0x10A6BF: sphere_hit (sphere_hit.c:38)
  214. ==10372== by 0x10A732: check_hit (check_hit.c:25)
  215. ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
  216. ==10372== by 0x10A357: lights (raytrace.c:21)
  217. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  218. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  219. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  220. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  221. ==10372== Uninitialised value was created by a stack allocation
  222. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  223. ==10372==
  224. ==10372== Conditional jump or move depends on uninitialised value(s)
  225. ==10372== at 0x53A65C8: sqrt (w_sqrt.c:27)
  226. ==10372== by 0x10ABE7: vec_length (vec_length.c:17)
  227. ==10372== by 0x10AC70: vec_normalize (vec_normalize.c:18)
  228. ==10372== by 0x10B933: lambertian_material (lambertian_material.c:31)
  229. ==10372== by 0x10A357: lights (raytrace.c:21)
  230. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  231. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  232. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  233. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  234. ==10372== Uninitialised value was created by a stack allocation
  235. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  236. ==10372==
  237. ==10372== Conditional jump or move depends on uninitialised value(s)
  238. ==10372== at 0x10A8D5: vec_div_i (vec_div_i.c:17)
  239. ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
  240. ==10372== by 0x10B933: lambertian_material (lambertian_material.c:31)
  241. ==10372== by 0x10A357: lights (raytrace.c:21)
  242. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  243. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  244. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  245. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  246. ==10372== Uninitialised value was created by a stack allocation
  247. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  248. ==10372==
  249. ==10372== Conditional jump or move depends on uninitialised value(s)
  250. ==10372== at 0x10A8E0: vec_div_i (vec_div_i.c:17)
  251. ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
  252. ==10372== by 0x10B933: lambertian_material (lambertian_material.c:31)
  253. ==10372== by 0x10A357: lights (raytrace.c:21)
  254. ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
  255. ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
  256. ==10372== by 0x10C337: scanline (ray_gen.c:86)
  257. ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
  258. ==10372== Uninitialised value was created by a stack allocation
  259. ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
  260. ==10372==
  261. Rendered !
  262. ^[[A^[[A^C==10372==
  263. ==10372== Process terminating with default action of signal 2 (SIGINT)
  264. ==10372== at 0x59A70BD: ??? (syscall-template.S:84)
  265. ==10372== by 0x5C7BC61: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
  266. ==10372== by 0x5C7D8D6: xcb_wait_for_event (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
  267. ==10372== by 0x5088707: _XReadEvents (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
  268. ==10372== by 0x50776B7: XNextEvent (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
  269. ==10372== by 0x10CB5D: mlx_loop (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
  270. ==10372== by 0x10B73C: render (render.c:90)
  271. ==10372== by 0x10A16F: main (main.c:109)
  272. ==10372==
  273. ==10372== HEAP SUMMARY:
  274. ==10372== in use at exit: 60,060 bytes in 76 blocks
  275. ==10372== total heap usage: 201 allocs, 125 frees, 70,613 bytes allocated
  276. ==10372==
  277. ==10372== LEAK SUMMARY:
  278. ==10372== definitely lost: 0 bytes in 0 blocks
  279. ==10372== indirectly lost: 0 bytes in 0 blocks
  280. ==10372== possibly lost: 0 bytes in 0 blocks
  281. ==10372== still reachable: 60,060 bytes in 76 blocks
  282. ==10372== suppressed: 0 bytes in 0 blocks
  283. ==10372== Rerun with --leak-check=full to see details of leaked memory
  284. ==10372==
  285. ==10372== For counts of detected and suppressed errors, rerun with: -v
  286. ==10372== ERROR SUMMARY: 8238243 errors from 19 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement